|
This page is dedicated to the free exchange of software, ideas, and information. If you have suggestions, comments or criticism about this page, or ideas about how it can be more useful, please Email me
Everybody is invited to share their own VB tips and tricks .
Table of Contents
Trips and Tricks(Visual Basic)
What will happen if you design a form on a 640X480 Resolution and the screen is adjusted to 1024X780? The proportions of the form and controls change, right? if the monitor is too small, they may be far too tiny! Heres the solution to this problem. Dealing with screen resolution changes Me.Height=Screen.height/2 me.width=screen.width/2 me.top=(screen.height/2)-(me.height)/2 me.left=(screen.width/2)-(me.left)/2 This will make the form centered, dimension half of the screen regardless of resolution Its up to you now to decide on where and what size you want your form to be relative to the screen size. Tip: just think of the form as having certain proportions relative to the screen.
Want those 3D underline on menus just like those in Visual C++ . Follow these steps:
frame1.width=screen.width+100 frame1.move-50,0 Run the program and see. Back to top
Acknowledgements
| HOME |
|
If you have any comments, questions, suggestions or any problems with the content of this page, Pls.let me know
|