Jon Liperi's Q&A profile
Windows Forms installState file is not removed by the uninstall action
Hello there! I have the following problem: I created a custom install class that is accessed by a setup project. So far so good. The problem appears after I uninstall my application ... the file named myCustomInstallClassName.installstate is not removed by the uninstall action. Is there any way I can solve this What is that installstate file usefull for anyway Thanks a lot. Sweet! :) Makes complete sense now. I had only called my custom action for the Install not Uninstall. I added it to all the other events and it worked fine. My directory and all the files were uninstalle ...Show All
SQL Server retrieve SQL Server version using SMO
How can I retrieve SQL Server version (SQL Server 2000 or 2005) using SMO , same manner as SERVERPROPERTY('ProductVersion') Also take a look at the Server.Information class. This also carries a few properties, such as Version and VersionString, but also ProductLevel, and Edition. ...Show All
Software Development for Windows Vista Error while installing the platform SDK
Hi, while installing the platform SDK I encounter an error: Error 1606. Could not access network location http://download.microsoft.com/download/a/5/f/a5f0d781-e201-4ab6-8c6a-9bb4efed1e1a/PSDK-SDK_Core_BIN-common.0.cab . It gives me the option to retry or cancel - retry doesn't work, and when I hit cancel, it rolls back and uninstalls all files that it had installed of the SDK till that point. Any clue how to get around this Thanks, Yoel http://support.microsoft.com/default.aspx scid=kb;en-us;330766 Have you tried following the instructions in there. ...Show All
.NET Development Developping a Real-Time Application
Hello NG! I have to develop a Real-Time application. Computer A writes a message to computer B and computer B should get the message in real time (or almost real time). The message should be stored in a SQL-Database. One way is that computer A stores the message in the database and computer B is looking every 5 or 10 seconds if there is a new message. But I think there are better ways to do this, aren't they Is it possible to develop a Real-Time Application with .NET If yes, what is better winform or a web-application What kind of methods are out there Are there any samples out there Thank you for every idea! Mike Hi, I am ...Show All
Visual Studio 2008 (Pre-release) How to asynchronously display an image
If in my window xaml I have something like: ... <Image Source="http://www.slowserver/image.jpg" Width="20" Height="20" /> The window will be loaded and suddendly the application will freeze while the image is downloaded. After the image is displayed the application becomes responsive once again. How can I workaround this issue Is there an easy way to load the image in the background Thanks ! While trying to find a workaround myself I may have stumble on a WPF bug. This is what I have tried: I have an Image control in my XAML, which works fine if I set the source in XAML. ...Show All
Smart Device Development error retrieving information from user datastore
hello guys, i am writing a pocket pc project using vb.net 2005. just this morning i opened up my project and I got the following error.. error retrieving information from user datastore. and then "the project could not be opened because it refers to a device platform that does not exist in your datastore." I haver been unsuccessful at fixing this problem. so far I have tried deleting the contents of the Corecon directory in both the user store and the all user store as outlined http: / / msdn2. microsoft. com/ en- us/ library/ ms184403. aspx i have also tried re-installing the program and re-installing the windows mobile 5.0 s ...Show All
Software Development for Windows Vista How to create custom state activity with StateInitializationActivity?
Hi, I created the following custom activity MyState MyState : StateActiivty {} The problem is I can not add "StateInitialization" activity to my custom state activity. I tried to create "StateInitialization" in code but the compiler gives me errror saying "Cannot modify activities collection ..." If I use MyState activity in a state machine workflow, then it allows me to add "StateInitialization" activity. Basically, What I want is to put logic inside StateInitialization of my custom activity so the MyState activity can be used by the customer without any change. Please let me know ...Show All
Windows Forms Determining max size of Image in PictureBox (.NET 2.0)
I have a PictureBox with Docking set to Fill. I would like to find the dimensions of the rectangle that the PictureBox "Fills". In .NET 1.1, pictureBox1.height and pictureBox1.width properties define those dimensions. In .NET 2.0, I find that the the height and width properties of the PictureBox defines the height and width of the image itself. In other words, the height and width properties no longer reflects the maximum space availiable to display the image. How do I find those dimensions in .NET 2.0 It can't be the height width of the parent control, as Anchoring instead ...Show All
Visual Basic Arrays and Listboxes
I am porting my vb6 code to vb.net, but I'm having difficulty changing the array and listbox code. Below is my newer vb.net code. It is pretty selfexplanitory: Dim arrappnames() ReDim arrappnames(lstAppNames.Items.Count) 'LOAD THE DATA FROM BOTH LISTBOXES INTO EACH ARRAY For xNames = 0 To UBound(arrappnames) arrappnames(xNames) = lstAppNames.Items.Item(xNames) Next xNames First when I add an item to the listbox and I step throught the code ...Show All
Visual Studio Team System Remote debugger
When connecting to TE (Tools|Connect to Team Explorer) we get the following errors: 1. Event Viewer: .NET Runtime version 2.0.50727.42 - Fatal Execution Engine Error (7A05E2B3) (80131506) 2. Dialog Box: --------------------------- Microsoft Visual Studio --------------------------- External component has thrown an exception. --------------------------- OK --------------------------- Win XP, No legacy versions have been installed on the box - just Beta3 Refresh on TFS and RTM on the client. We are running Beta 3 Refresh on TFS with RTM on Visual Studio Hi Jean-Pierre, When this issue occurs, do you see any errors ...Show All
Visual C++ calling a WINAPI function from a managed main creates linker error
OK, here is the latest saga from this newbie: Whenever I try to call EnumDesktopWindows or GetWindowsText the linker vomits out the following: LocateWindow.obj : error LNK2028: unresolved token (0A00000D) "int __stdcall EnumDesktopWindows(struct HDESK__ *,int (__stdcall*)(struct HWND__ *,long),long)" ( EnumDesktopWindows@@$$J212YGHPAUHDESK__@@P6GHPAUHWND__@@J@ZJ@Z) referenced in function "public: void __thiscall LocateWindow::setPopulateWindowArray(void)" ( setPopulateWindowArray@LocateWindow@@$$FQAEXX Here is the code: (Yeah, its ugly. I am coming at this slow so I get as much of the concepts down as I can) // LocateWindow.cpp : main pr ...Show All
Visual FoxPro [noob questions] Arrays..
Aaaaaaaaaaaaaaaarrrrgggghhhhhgadsfhasdjhf 1. Is foxpro incapable of returning an array from a function by using the return statement 2. Does foxpro have a function that merges 2 arrays 3. How do you pass an array as an argument to a function in a class when the array is a class variable For example: define class test as Custom dimension Arr(1) procedure asdf(tmpArray, tmpString) * do stuff endproc .. etc etc How do I call the procedure asdf (from some other procedure in this class) using Arr as a ...Show All
Software Development for Windows Vista Vista install help
I know a lot of people have asked for this, but what do i need to download and install Vista and how do i install Vista I have downloaded the 6.0.5308.0.9.WindowsSDK_Vista_idw.DVD.Rel.img file and mounted it as an drive. What do i else need to download and install Please:D The current releases are not yet publicly available. We will announce when and if a pre-release version is opened up to the public. jeff ...Show All
Visual Studio satellite dll not found in RC1
I recently upgraded to release candidate 1, and now when I run my addin, AddNamedCommand2(..false, 1,....) throws the following exception: System.IO.FileNotFoundException: Could not load file or assembly 'MyAddin.resources, Version=1.0.2125.31379, Culture=en, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. File name: 'MyAddin.resources, Version=1.0.2125.31379, Culture=en, PublicKeyToken=null' at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, ...Show All
Smart Device Development how to remove "+" before a tree node
hi, My project is built on windows mobile 5.0 pocket pc,vs2005.I use the following code insert a tree node: TVINSERTSTRUCT InsertStruct; InsertStruct.hParent = hParent; InsertStruct.hInsertAfter = TVI_LAST; InsertStruct.item.mask = TVIF_TEXT |TVIF_IMAGE |TVIF_CHILDREN; InsertStruct.item.pszText = FileData.cFileName; InsertStruct.item.iImage = 0; InsertStruct.item.cChildren = 1; InsertIte ...Show All
