Click here to Skip to main content
15,916,945 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VB Slowdown after compilation Pin
Dave Kreskowiak28-Aug-03 9:01
mveDave Kreskowiak28-Aug-03 9:01 
Generalone stupid question.. Pin
pnpfriend27-Aug-03 9:45
pnpfriend27-Aug-03 9:45 
Generalforget it.. got it Pin
pnpfriend27-Aug-03 10:25
pnpfriend27-Aug-03 10:25 
General.NET Web Service with VB6 and Soap Toolkit 3 Pin
cory_baker27-Aug-03 4:38
cory_baker27-Aug-03 4:38 
Generalbundling VB.net runtime Pin
Jcg3127-Aug-03 4:21
Jcg3127-Aug-03 4:21 
GeneralLoop thru in string Pin
Member 53357326-Aug-03 22:42
Member 53357326-Aug-03 22:42 
GeneralAutomation server problem Pin
clone_21226-Aug-03 21:21
clone_21226-Aug-03 21:21 
Generalafter change the display resolution with VB6 Pin
ChinhChua26-Aug-03 18:25
ChinhChua26-Aug-03 18:25 
Hi!

I have a problem with the center of the form in relating to the changing of the screen resolution and I would like to have aide. Please help!
In my application, I change the screen resolution to 800x600 when the app is started and will restore to the original state when quit. About the code of changing the screen resolution, it like the code in the sample of the www.AllAPI.net: http://www.mentalis.org/apilist/ChangeDisplaySettings.shtml

My problem is that if I change the screen resolution and then in my app, I use a procedure to center the form like this:
Sub centerForm(ByRef theForm As Form)
theForm.Left = (Screen.Width - theForm.ScaleWidth) / 2
theForm.Top = (Screen.Height - theForm.ScaleHeight) / 2
End Sub

but I always have a problem that the form nerver be centered correctly
I case I don't change the screen resolution, I don't have this problem

This is the thing that I would like to need you help

Thanks in advanced!

Chua
QuestionHow to add Macromedia Flash to My VB.Net Form?? Pin
MJay26-Aug-03 16:49
MJay26-Aug-03 16:49 
Questionhow to control msword in my program? Pin
fftongzhi26-Aug-03 15:49
fftongzhi26-Aug-03 15:49 
QuestionHow to associate a cursor with my App Pin
elmahdy26-Aug-03 15:26
elmahdy26-Aug-03 15:26 
AnswerRe: How to associate a cursor with my App Pin
Hesham Amin27-Aug-03 22:00
Hesham Amin27-Aug-03 22:00 
GeneralRe: How to associate a cursor with my App Pin
Anonymous28-Aug-03 2:28
Anonymous28-Aug-03 2:28 
GeneralRe: How to associate a cursor with my App Pin
Hesham Amin28-Aug-03 4:12
Hesham Amin28-Aug-03 4:12 
Generalneed good books for GUI design Pin
Anonymous26-Aug-03 14:54
Anonymous26-Aug-03 14:54 
GeneralRe: need good books for GUI design Pin
Ray Cassick26-Aug-03 16:42
Ray Cassick26-Aug-03 16:42 
GeneralRe: need good books for GUI design Pin
J. Dunlap26-Aug-03 16:56
J. Dunlap26-Aug-03 16:56 
Generaltrouble with msbind.dll Pin
Marcel Härry26-Aug-03 14:12
Marcel Härry26-Aug-03 14:12 
GeneralTranslation needed Pin
oliver_twistor26-Aug-03 11:24
oliver_twistor26-Aug-03 11:24 
GeneralRe: Translation needed Pin
Ian Darling27-Aug-03 0:01
Ian Darling27-Aug-03 0:01 
GeneralRe: Translation needed Pin
oliver_twistor27-Aug-03 4:03
oliver_twistor27-Aug-03 4:03 
GeneralRe: Translation needed Pin
Ian Darling27-Aug-03 4:27
Ian Darling27-Aug-03 4:27 
GeneralRe: Translation needed Pin
oliver_twistor27-Aug-03 22:31
oliver_twistor27-Aug-03 22:31 
GeneralAbout Shaped forms in vb.NET Pin
Romein25-Aug-03 22:52
Romein25-Aug-03 22:52 
GeneralRe: About Shaped forms in vb.NET Pin
Johannes Hansen27-Aug-03 16:49
Johannes Hansen27-Aug-03 16:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.