Regarding the code on http://vbnet.mvps.org/code/system/, I contacted the author asking him how to get it to work in VB.NET (which it supposedly does), and he replied:
Hmm... you've got me there. I don't develop with .net, so have not tested
the code in that tool. However, I'd be surprised...
This function looks great but always returns FALSE for me. I've got my own Desktop set at 1280 x 1024 with SMALL fonts. That means that is should return TRUE.
Using the debugger, I see the variables have values that seem way, way off:
hWndDesk = 5326858958733322
hDCDesk =...
Brian,
Wait a second. I think we're on different channels. I am referring to the setting one can change when doing the following:
Right-click on the Desktop (not .NET related at all) then: Properties | Settings | Advanced
You know - the Display Properties for one's computer - there's...
How do I detect whether the font size set is to "LARGE font" (125% normal size - 120 dpi) or "SMALL font"? I am referring to the setting one can change when doing the following:
Right-click on the Desktop then: Properties | Settings | Advanced
Thanks!
Lazer
Brian,
I get a 'System.NullReferenceException' when I use that line.
And just to clarify - I am referring to the screen properties that one sets by right clicking on the Desktop, etc.
Thanks,
Lazer
But one more question on the topic...
Aside from the enduser's 1280 x 1024 screen size - they also have the screen properties set to LARGE font size (125% normal size - 120 dpi).
How do I detect that?
Thanks very much,
Lazer
Thanks, guys, for your help. One more related question...
When I try to go ahead and resize the form, it doesn't seem to work:
Sub screen_size(ByVal form_name As Form)
If Screen.PrimaryScreen.WorkingArea.Width() = 1280 Then
'resize form to 90,70...
Brian - that's what I was looking for!
RiverGuy - Great ideas. I might look into AutoScale, actually - now that you got me looking at those properties...
Thanks very much - stars for both!!!
Lazer
I was all ready to deploy an app onto a couple endusers' machines. I went over to the first one's computer to watch the big launch of my app with the marching band and balloons to celebrate ...well, maybe the band and balloons part is a bit exaggerated. In any case, after she ran the install...
Chiph / all,
I now call Dispose() on all "suspect" objects and it seems much better. Without Dispose, out of about 30 times, it crashed 5 times. With Dispose, out of 30 times, it didn't crash at all.
Now don't get me wrong - I do not understand how a garbage collection issue leads to a NULL...
Chiph,
Thanks for your reply.
No, I'm not currently doing that. Which object should I dispose - the CrystalReportsViewer?
But even if I need to call Dispose, how would you explain why replicating the same scenario repeatedly - on completely static data sometimes be null and almost all of the...
I have a VB.NET Windows form that I've been developing for about a month. The app consists of several forms. Aside from all of the usual Windows Forms controls manipulation (i.e. the GUI), it executes some simple SQL statements against a SQL Server 2000 database that is on the network, and...
It's not writing a routine like you asked, but the first thing that comes to mind is to use the Import Wizard to make a DTS (from Enterprise Manager) to do it. It can parse text files into SQL Server.
Lazer
After packaging my app for distribution, I ran it on my enduser's computer.
Question #1
Although I set the "Add/Remove Program" icon with an icon that I already have in the project, the actual "Add/Remove Program" icon itself is not the icon I chose, but rather that of a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.