VB.NET Form Height Question

I have a VB6.0 project and I want to convert it to VB.Net.

In my VB6.0 application, some of the forms of the MDI Child form are 17000 and the width is 13000. Now I want to set the same size of the form in VB.Net forms, but it allows the maximum form width = 1036, height = 780 for a resolution of 1024x768.

How to increase the size of the form with the same resolution?

I also want to print this, so I cannot use the vb.net form auto scroll property.

Thaks

+3
source share
4 answers

VB . , 12 15 ( , ), .

+5

- Google, .

, ( specifcally SystemInformation.MaxWindowTrackSize). Form.SetBoundsCore . PInvoke.

.

, 1600x1200, , 1212.

1280x1024, 1036.

, , ...

, , . , , , .

, - , , , .

+1

You are limited in the designer, but not in the code:

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    Me.Height = 17000 'or whatever you need
    Me.Width = 13000
End Sub
+1
source

I think VB6 modules do not match VB.Net. So you need to do the conversion.

0
source

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


All Articles