Recent content by TomPhillips

  1. T

    Screen Res or aspect ratio problem

    I develope on a Del laptop with the screen set at 1400x1050, 120 DPI. My users, typicaly are on CRTs set at 1024x768,96 DPI. My problem is that even if I set my LCD screen to 1024x768 and 96 DPI (which it complains about) to size and position my windows and controls, what I see is not what they...
  2. T

    Single Instance of Application

    I use this to see if the app is already running: Private Function PrevInstance() As Boolean Dim c As Integer Dim pr As Diagnostics.Process Try c = UBound(Diagnostics.Process.GetProcessesByName(Diagnostics.Process.GetCurrentProcess.ProcessName)) If c > 0 Then Dim FoundSame As...
  3. T

    Check Only One!

    How about this: Private Sub ListView1_ItemCheck( _ ByVal sender As Object, _ ByVal e As System.Windows.Forms.ItemCheckEventArgs) _ Handles ListView1.ItemCheck Dim i As Int16 For i = 0 To Me.ListView1.Items.Count - 1 Try If e.Index <> i Then...
  4. T

    Check Only One!

    OK, I'm not seeing it. How do I tell if the item is not the one that triggered the event? Private Sub ListView1_ItemCheck( _ ByVal sender As Object, _ ByVal e As System.Windows.Forms.ItemCheckEventArgs) _ Handles ListView1.ItemCheck Dim i As Int16 For i = 0 To...
  5. T

    Check Only One!

    Thanks I'll give that a try.
  6. T

    Check Only One!

    Check Only One! RESOLVED I need a way to make the check boxes in a ListView act like radio buttons. Only one can be checked at a time and if a new one is checked, any other one is cleared.
  7. T

    File in use by another process.

    Thanks. Seems to work now. I added some dispose methods in places I'd missed.
  8. T

    File in use by another process.

    File in use by another process. RESOLVED I have an app that moves files around, renames, selects and deletes JPEGs. It uses a thread to copy groups of up to 200 files of 50 to 100K each. While The thread is running, it updates a form to let the user know when a group of files has been copied to...
  9. T

    System.ArgumentOutOfRangeException

    Nevermind thanks. When I put .beginupdate / .endupdate around my .add and .subitem.add the problem went away.
  10. T

    System.ArgumentOutOfRangeException

    Tred that. I have not been able to catch the exception in try/catch. If I set the preference to 'continue' in the Debug->Exceptions... menu for 'System.ArgumentOutOfRange' it will avoid the problem and it doesn't have the problem when I run the .exe outside of VS. Another symptom is that the...
  11. T

    System.ArgumentOutOfRangeException

    System.ArgumentOutOfRangeException[RESOLVED] My application has a form with a button that starts a thread to load data from an SQL database and then update a SYBASE database. As it progresses, it updates listboxes on the form. The problem is that at some point it errors with: Now if I click...
  12. T

    Exception from HRESULT: 0xC0000005

    It's a bug! Turns out this is a Microsoft bug. I spent 4 hours on the phone with them and they acknowledged it and endorsed the work around. I got my alloted credit back.
  13. T

    Exception from HRESULT: 0xC0000005

    Found the problem. I had the assignment to MachineName: Public Class frmForm1 Public Shared MachineName As String = System.Net.Dns.GetHostName.ToUpper().TrimEnd() #Region " Windows Form Designer generated code " in the wrong place. When I broke it up and put the assignment inside the...
  14. T

    Exception from HRESULT: 0xC0000005

    Oops! sorry in my frustration, it just slipped out (what?). Hmm. Operating System XP Pro, Visual Studio.NET 2003. No com objects, just buttons, text boxes, and listboxes. Since my last post, I tried to build a new form from scratch, but when I tried to place the SQLDataAdapter, I got the...
  15. T

    Exception from HRESULT: 0xC0000005

    Exception from HRESULT: 0xC0000005[RESOLVED] Help, I can't see my form in Design mode. Everything was fine till this showed up. The app still runs, but I can no longer see the form to modify it. What happened? And more Important, how do I fix it? I get an icon, red ball with X and the...
Top Bottom