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...
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...
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...
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...
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...
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
I declare a Public Shared variable strX as string in Form frm1 and set it's value = "X".
Dim frm2 as new Form2
In Form2 see frm1.strX as "X"
change frm1.strX = "Y"
Why is strX still = "X" when I get back to frm1?
Work around: In Form2 declare Public Shared...
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...
In a stored procedure, if I declare @myDate DateTime
set @myDate = '7/4/2005'
How do I determine if @myDate is a Tuesday?
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.
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 = DateTime.now()
Dim isHoliday as Boolean = False
Dim strSQL as...
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...