Software Development Network Logo
  • Visual C++
  • VS Team System
  • Visual Basic
  • Audio and Video
  • SQL Server
  • Smart Devicet
  • Visual Studio
  • Visual FoxPro
  • Game Technologies
  • Windows Vista
  • Microsoft ISV
  • Windows Forms
  • IE Development
  • Visual C#
  • .NET Development

Software Development Network >> Mykhaylo Blishch's Q&A profile

Mykhaylo Blishch

Member List

Docpro777
bhavu
vicky_dceian
Ravi Awasthi
flash.tato
CrowWu
Kenneth973
ozitraveller
R0nda
parreg
louis murray
Paul Bradley
dLloydm
jayakhanna
Mike_25
Forgon
Thomas Frohberg
Blast
Masoud Farahani
Grayson Peddie
Only Title

Mykhaylo Blishch's Q&A profile

  • .NET Development TransactedInstaller to remove an old service and install a new one

    I currently am designing a service that will need to upgrade itself without rebooting. The design I have been basing all of my work off of is when an update to said service is available I will download it and install it as a new service with a different version # appended to the end. I will then start remove the exiting service and start the new one.. I am using the TransactedInstaller class to install the new service and remove the old service however these steps cannot be done as one transaction. I have tried overriding the ServiceInstaller and ServiceProcessInstaller class and redirecting the call from install to uninstall and visa versa. This does not works as it corrupts the install state for some reason. Does anyone have an idea abou ...Show All

  • SQL Server Problem with multiple measure groups

    Hello! I have two measure groups (MG1, MG2) with measures called M1 (inside MG1) and M2 (insideMG2). For example M1 and M2 are sales amount. The total for M1 is 150 and for M2 100. If I start my analyses with a dimension that is only related to measure group M1 I see the following behavior. Dimension M1 M2 Product A 25 100 Product B 75 100 Product C 50 100 Question 1: How can I avoid AS 2005 to repeat the total value for M2 Question 2: If I define a calculated measure that brings the value from M1 and M2 together. How can I avoid that AS 2005 calculates each cell for M2 even though M2 has no realtion to the dimension Thanks in advance ! Ole You can assign that to all measures inside a ...Show All

  • Visual Studio 2008 (Pre-release) TreeViewItem: hide item when it is the last node in the tree level

    I have a TreeView and for the TreeViewItem I have created a style with a ControlTemplate in it. One of the elements is a line to connect all the tree nodes (visually, that is). But for the last node in the tree level it should hide this line, because there is no other node to connect to. The way I was thinking to do this, is to set the Visibility of the line element by using a Binding string/statement/whatever it is called: Visibility="{Binding Path=..., RelativeSource={...}}" RelativeSource should then point to a property of some sorts which tells me if the current TreeViewItem is the last node in that level. Is there such a property available Or has anyone done something like this before and knows how to do it ...Show All

  • Visual C# Exporting and Importing RSA Keys in Binary!!!

    Hello, RSACryptoServiceProvider class provides 3 different ways to import and export Crypto keys. To and from XML To and from BLOB (Binary) To and from RSAParamters I have worked fine with XML implementaion, I Export and save XML based key pair and use it later when I need. For some reason I want to use Binary implementation, The simplest solution seems that I use following: RSACryptoServiceProvider rsaCryptoServiceProvidesCipher; rsaCryptoServiceProvidesCipher = new RSACryptoServiceProvider (2048); byte [] key = this .rsaCryptoServiceProvidesCipher.ExportCspBlob( true ); now I hardcode this key in the assembly and use it later. Now the problem is what if someone decompiles the assembly and knows ...Show All

  • Visual Studio 2008 (Pre-release) Forcing Update of UI before my function exits

    I know this question has been asked before, but none of the answers given work for me. I have a function that performs a long operation. Before that function does all its work, I want to set a Status message in my Status bar. The problem is that UI updates don't seem to occur until the function has exited, by which time the Status Message is no longer relevant. What can I do to force the UI to update I've tried calling UpdateLayout(). I've tried calling InvalidateRender(); I've tried setting the Status Bar properties within a delegate passed to Dispatcher.Invoke with DispatcherPriority.Render. None of these work. I have, elsewhere in my App succesfully used Background worker to perform longer running operations asynchronusly. I ju ...Show All

  • Visual C# VB.NET 2.0 to C#.NET 2.0 (Help Please)

    I'm working on Converting a VB.NET 2.0 Project to C#.NET 2.0 and need a bit of help with this... Here is the VB.NET Code i'm coverting:: statz.Items.Item(2).Text = "0" For i = 0 To CInt (ClientList.Text) ClientID(i) = ListView1.Items.Item(i).SubItems(1).Text Socket(i).Close() Socket(i).Connect(ServerList.Text, 5050) If ServerList.SelectedIndex = ServerList.Items.Count + 1 Then ServerList.SelectedIndex = 1 Else ServerList.SelectedIndex = ServerList.SelectedIndex + 1 End If /****************************************************/ ListView1.Items.Item(i).SmallIcon = 2 Brendan Grant wrote: That main block would become: statz. ...Show All

  • SQL Server SQL Server 2005 Installation Failure on Vista

    Help! I'm trying to install SQL Server 2005 on 32-bit Vista RTM. Have tried several editions (Developer, Standard, Enterprise). Have tried installing while logged in as domain user account in machine administrator group as well as built-in Administrator user. Running SETUP program with elevated privilges. Certain portions (Analysis services, Notification services) install correctly, but never the database engine. Always fails consistently with the same error reported. Machine has Visual Studio 2005 installed already, but NOT SQL Server 2005 Express Edition. Error logs reports are below ({computer name} is the name of my machine) UI error reported: TITLE: Microsoft SQL Server 2005 Setup ------------------------------ SQL Server Set ...Show All

  • Visual Studio System.TypeInitializationException was unhandled

    I have recently put Crystal Reports XI Release 2 onto my PC, after having installed CR XI SP 2. I had an older Visual Studio .NET 2003 WinForms app, written in C#, that I decided to convert to VS .NET 2005. I went through that process and VS.NET 2005 noticed the newer Crystal Reports and so it updated everything. I changed absolutely nothing in the code , just did the update. Then when I go to run it I get an error which is the following: Error is coming as dlls required to run Crystal report are not registered in the m/c. Because of this reason only, Busiobj recommends to create websetup for crystal report deployment. Instead of going for this long process, i would recommend to create one windows application with one single fo ...Show All

  • Windows Forms cause a property to display "builder" button to browse for folder ?

    I'm writing a custom control. One of its properties is a directory name. I'd like the property sheet to display a "build" button that--when clicked, displays the standard Browse for Folder dialog. I have no idea how to do this. Any help getting started is appreciated. Sorry about that. I totally forgot to post that. Put the following attribute right above your property declaration. [ DesignerAttribute ( typeof ( GenericDesigner ))] Just change the text GenericDesigner to the name of the designer you create. If you check out the post Extending Design Time Support here , it goes over all this stuff really well. Ken ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. lame....

    Well....finally downloaded it about 30 min ago and all its good for is making u mad.....doesnt know how to do anything but crash.....biggest disappointment ever. i know i was dealing with that a**hole........anyways......i cant run spacewars for example..if i run it with debugging it says nosuitablegraphicsdevice which i dont understand cause im pretty sure my graphics card supports shader model 2 or whatever.....and if i run without debugging it just says spacewars has encountered an error.... ...Show All

  • SQL Server How can VB look something up in an SQL Table?

    How can a Visual Basic Application Lookup information from an SQL table database (all of this in the Code Window, not with the Application User seeing this). e.g.: Making a VB Application verify that the text in a TextBox is the same as the text in an SQL Table/Row (Like when verifying a password.) Hmm... Perhaps this could have been the error. I am using both VB Express 2005 and SQL Express 2005. All the database tables that I have made are in 1 folder. Perhaps it could be that because I am using an Express edition, and all the databases / tables are in 1 folder, the application is trying to access them all at once. ...Show All

  • Visual C# abstract properties : get; vs. set; vs. get; set;

    I would like to define an abstract property where the deriver is forced to implement the get acessor for that property but is free to implement the set acessor. It seems that C# 2.0 has no way of declaring this. Either the deriver has to implement both acessors (get; set;), or the deriver is not allowed to implement the acessor that was not declared in the abstract base class. I am suprised that acessors abstractness can not be controlled separately since the ultimately end up as methods anyway. Why is that so Let's try a variation of Michael's design: public abstract class ReadOnly { public abstract string PropertyR { get; } } public abstract class ReadWrite : ReadOnly { public abstract string Property { get; set ...Show All

  • Visual C# Moving from procedural to OO

    I have been coding in C for upwards of 4 years now and a friend of mine has brought to my attention that a lot of employers now want their programmers to use OO instead of procedural. I have gotten a book on Java and 2 on C# (one on the basics and one on network programming), but I must say this OO thing isn't really catching with me. I am still in high school, so I don't have much time on my hands, but do any of you have any good resources on how to relate OO to procedural, or to just make it a bit understandable Thanks its not always necessary but make it meaning and short and sweet. like if we have a private member (variable) called "name" then the property should be "TheName" or "Name". The choice ...Show All

  • Visual Studio Sandcastle: How do I create seealso links to external Hxs files

    I am creating help for a set of libraries that extend a library provided by a third party (actually MS in this case but the Hxs files are not part of the standard SDK stuff they are an additional add-on) I need to add see also links to the base classes which are not part of my help conent but are part of the other content. DocumentX! has a means of doing this via the seealso doc comment element (cref=!:ms-help:...) and I can't seem to find any way to do it with SandCastle. No matter what I try it ends up as just bold text. THe XSL files all transform seealso tags into an undocumented <referenceLink> tag but I have no idea how that tag gets transformed to the final HTML seen in the help. Any idea or pointers on how to make a link to a ...Show All

  • Software Development for Windows Vista Multiple NTVDM.exe

    I work for a corporation(TimeManagement Corporation) that uses a 16 bit application that runs in the virtual dos machine. Two years ago Microsoft released a security patch(MS04-012) that caused each new 16-bit file to open in it's own ntvdm thus not allowing our 16-bit application to communicate with other files that it calls. We contacted Microsoft about this but it was not taken care of until we posted on a forum. They then released a hotfix(KB841559) to fix this issue. We are now having the same problem with MS Windows Vista and would like to know if we can get a fix for this issue to allow our program to be compatable again. Hi I have tested with UAC off, it makes no difference. I also wrote a wi ...Show All

©2008 Software Development Network