hello, i'm making a program in which i need to place the controls relative to the size of the form..so could anyone tell me how to get a form's height and width form a code???
cool_zephyr
7
Junior Poster in Training
Recommended Answers
Jump to PostUse the reserved word "Me" to refer to the form; then use the ScaleWidth and ScaleHeight properties. Since those numbers are dependent on the ScaleMode, you will have to make sure you translate (e.g. from twips to pixels) if necessary to get the proportions right.
Then, in the Form_Resize …
All 4 Replies
BitBlt
452
Practically a Master Poster
Featured Poster
cool_zephyr
7
Junior Poster in Training
BitBlt
452
Practically a Master Poster
Featured Poster
cool_zephyr
7
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.