|
-
April 13th, 2010, 10:39 AM
#1
Deevelopment Issues
I am working with VB 6.0 and am somewhat new to the developing and distributing side. I packaged and installed a project with the deployment wizard. I have two issues with the results, one is the forms are not centered on the screen, and the other is the color of the background (white) came out black after installation.
Thank you for your time...
-
April 13th, 2010, 12:20 PM
#2
Re: Deevelopment Issues
The monitor of your developement system seemed to have a different size as the target system's screen.
To avoid misplacement, you should take care of centering your form yourself.
You could put a little code in your Form_Load() event like:
Code:
Private Sub Form_Load()
Me.Move (Screen.Width - Me.Width) / 2, (Screen.Height - Me.Height) / 2
End Sub
This window will always appear in the center of the screen no matter how big.
As for the BackColor: look if the BackColor property is set to a system color. If so, explicitly select your BackColor from the pallette to be white.
A system color is defined in the windows settings and may vary from system to system.
You can also set the BackColor property during Form_Load() like
[code]
Me.BackColor = vbWhite
[/color]
but selecting from the pallete when changing the BackColor in the property list should do it.
-
April 13th, 2010, 01:11 PM
#3
Re: Deevelopment Issues
You can also set the form startupposition property to center screen.
-
April 13th, 2010, 01:48 PM
#4
Re: Deevelopment Issues
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|