How to resize my vb6 program so that it automatically matches any screen resolution?

How can I get the vb6 program that opens correctly in 1280 * 1024, but when switching to other resolutions they say 640 * 480, I can only see half the screen. how to resize my vb6 program so that it automatically fits into any screen resolution?

+3
source share
9 answers

You need to use the Screen object , this will always give you the current resolution in pixels:

Dim screenwidth,screenheight As Single

screenwidth = Screen.Width \ Screen.TwipsPerPixelX
screenheight = Screen.Height \ Screen.TwipsPerPixelY
+2
source

, , , . - TextBox, .., . , , (, ) , ..

, " ", . , .

"" , .. , , .

. . , , .

0

VB6 , .Net. . , .


: -, VB6 , Resize , .

0

- ? (), , , : -

ActiveResize Control Lite - , , , !

, , .. , .

, , , , , / - . , , , ( ) .

0

ComponentOne SizerOne

C1Elastic , , .

, , .

0
Form1.Height = Screen.Height
Form1.Width = Screen.Width

.

0

"ActiveResize Control Lite". ActiveX 20 .

0

, .

• - - 640 x 480, 800 x 600, 1024 x 768 1600 x 1200.

• , - !

• Third-party controls that resize controls based on screen resolution are very effective. In general, however, it is best to simply avoid such a problem if you can. For example, see Creating Flexible Forms in Visual Basic (Flexi-Forms) at codeguru.com

0
source

To automatically select a screen resolution, you need to load the active x, drag it to your match. Search for "veg gold vb6.0 screen Resize".

-1
source

Source: https://habr.com/ru/post/1754752/


All Articles