Search results for query: *

  1. P

    Problem with using resource files for localisation

    We are writing apps to run on PDAs, which get shipped to different countries. When the users get them, they like to set the locale to their own language settings. So I have made the app localisable. If I deploy it from Visual Studio (2003) IDE, it works fine, but if I build CAB files and install...
  2. P

    Trying to understand calls to an external .dll

    I have a 3rd-party product (as a .dll) for which I declare the functions in a similar way to the way it is done for the Windows API, eg "declare function Function_name lib "lib_name" (....) For string variables, it seems to need them passed ByVal - if they are passed ByRef, it causes an error...
  3. P

    How can I reference TARGETDIR in an installer class?

    I have an app which needs to do some custom processing in the installer, so I have included a Custom Action and an Installer Class, with the CustomActionData set to /From=ADir /To=Bdir, where ADir exists and I want BDir to be the application's installation folder under Program Files. I can hard...
  4. P

    How can I conditionally install a file?

    Hello, I have a deployment project and I have a file in it which goes in the user's data folder. This file gets modified by the application, so I don't want to overwrite it when re-installing - for an update, say - if it already exists. I have tried some stuff with the Condition property for...
  5. P

    Error I don't understand

    Can anyone help with this? I have an app running continuously which occasionally gives the following error (the text is from the Exception.StackTrace property): Item has already been added. Key in dictionary: "-1" Key being added: "-1" text = at System.Collections.Hashtable.Insert(Object...
  6. P

    Closed form keeps executing

    Another reply to Ed Ed, someone on the microsoft.dotnet usergroup thinks that setting the variable used to hold the form (when it does "dim frm as new form1") to Nothing will do the trick. Does this free up the memory we have gobbled up? And get round the potential errors you described...
  7. P

    Losing image on a form

    Brilliant reply!! Thanks, Paszt! That has solved the problem described, plus a couple of other related ones that I didn't mention, 'cos I suspected they were all basically caused by the same thing. Thanks again, Peter
  8. P

    Losing image on a form

    I have a form which has a PictureBox (pbMap) containing an image, and a grid of data to the side. The image has been painted using this code: Private mypic As System.Drawing.Bitmap Private g As Graphics mypic = New System.Drawing.Bitmap(strDataDir & "\" & strMapName) g = pbMap.CreateGraphics...
  9. P

    Handling errors in a thread

    I have a program that runs a loop in a thread. Occasionally, it seems to hang. Last time, after a lot of investigation, I identified a line of code that could, under certain conditions, cause an error. In debug mode, I get an error. In normal execution - nothing. It just hangs. Is there any way...
  10. P

    Closed form keeps executing

    Ed, thanks, that's really helpful - not!! But it's not your fault. Do you know the old Chinese curse, "may you live in interesting times"? I think it should be re-worked to "may you work in an interesting development environment" . Cheers, anyway, Peter
  11. P

    Closed form keeps executing

    I have a form which carries out some tasks in response to a timer. Under certain circumstances, after closing the form, the timer continues to run and the tasks it triggers are still being carried out. The Help says that if a form is closed, all resources related to it are disposed of - so how...
Back
Top