Search results

  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

    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.
  3. 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...
  4. T


    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...
  5. 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...
  6. T

    Printing a screen

    Printing a screen RESOLVED To print a form from the screen, I borrowed the following from ms-help: Private Declare Function BitBlt Lib "gdi32.dll" Alias "BitBlt" (ByVal _ hdcDest As IntPtr, ByVal nXDest As Integer, ByVal nYDest As _ Integer, ByVal nWidth As Integer, ByVal nHeight As...
  7. T

    Removing all controls of a type.

    Removing all controls of a type. RESOLVED I am placing ListBox controls on a form in rows and columns. I then want to remove them and replace them with new ones. When I use code like this: For Each ctrl As Control In Me.Controls If TypeOf ctrl Is ListBox Then ctrl.Dispose() End If Next only...
  8. T

    Scope of Public Shared

    I declare a Public Shared variable strX as string in Form frm1 and set it's value = "X". Dim frm2 as new Form2 frm2.showdialog() In Form2 see frm1.strX as "X" change frm1.strX = "Y" Close frm2 Why is strX still = "X" when I get back to frm1? Work around: In Form2 declare Public Shared...
  9. T

    Screen Res variation

    I do my development on a lap top with 1400 x 1050. When I install on user machines, I run into any number of different resolution settings. Often my forms look very crude at these settings. Is there any way or methodology for compensating for these variations. I don't know in advance what res my...
  10. T

    Datagrid column styles

    Datagrid column styles. Nevermind Nevermind, I see the problem.
  11. T

    stored procedure datetime question.

    In a stored procedure, if I declare @myDate DateTime and set @myDate = '7/4/2005' How do I determine if @myDate is a Tuesday? or How do I find out what DayOfWeek it is? This is easy in VB.NET but I can't see how to do it in an sp. In MSSQL, btw.
  12. T

    Record exists?

    What is the simplest and quickest code to determine if a record exists? Say I have a table of holidays and dates. I have a date I want to see is a holiday. Yes, No, thats all. So I try something like: Dim myDate as DateTime = Dim isHoliday as Boolean = False Dim strSQL as...
  13. T

    Calendar in VB like in ASP?

    So, the boss says build us a shipping plan calendar. I look at calendar controls in VB and not finding what I want there, I discover the Calendar control in ASP.NET. I build a nice web app that does what I want, i.e. displays the shipping calendar and shows dates for ship, delivery and show in...
Top Bottom