<p>I have a VB6.0 project and I want to convert it in VB.Net.</p>

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

<p>How can I increase form size with same resolution?</p>

<p>Also I want to print this from so, I can not use auto scroll property of vb.net forms.</p>

<p>Thaks</p>

[{'answer_id': 35852, 'author': 'jfs', 'author_id': 718, 'author_profile': 'https://Stackoverflow.com/users/718', 'pm_score': 0, 'selected': False, 'text': '<p>I think the VB6 units are not the same with the VB.Net one. So you have to do a conversion.</p>\n'}, {'answer_id': 36103, 'author': 'Matt Dawdy', 'author_id': 232, 'author_profile': 'https://Stackoverflow.com/users/232', 'pm_score': 3, 'selected': False, 'text': '<p>Your classic VB units are in what are called "twips".  You will most likely be able to divide those numbers by 12 or 15 (depending on if you are using large or small fonts) and you will get a certain number of pixels.</p>\n'}, {'answer_id': 36110, 'author': 'Rob Cooper', 'author_id': 832, 'author_profile': 'https://Stackoverflow.com/users/832', 'pm_score': 1, 'selected': False, 'text': '<p>I done some Googling on this, and came across <a href="http://www.devnewsgroups.net/group/microsoft.public.dotnet.framework.windowsforms/topic17193.aspx" rel="nofollow noreferrer">this</a>..</p>\n\n<blockquote>\n  <p>Yes, this size of the form is limited\n  to the size of the desktop (more\n  specifcally\n  SystemInformation.MaxWindowTrackSize).\n  This is done in the Form.SetBoundsCore\n  protected virtual method. This\n  behaviour cannot be changes or at\n  least without a great deal of work and\n  using PInvoke.</p>\n</blockquote>\n\n<p>Also supported <a href="http://www.themssforum.com/VB/Maximum-Form/" rel="nofollow noreferrer">here</a></p>\n\n<blockquote>\n  <p>The size of the form in the designer\n  is limited by your screen size.</p>\n  \n  <p>It sounds like you have your display\n  at 1600x1200, hence the designer won\'t\n  let you go larger then 1212.</p>\n  \n  <p>If you had your display at 1280x1024,\n  then the designer wouldn\'t let you go\n  larger then 1036.</p>\n  \n  <p>I\'m not really sure why the size of\n  the form in the designer is limited to\n  the screen size, as I may deploy on a\n  machine that has a larger screen size\n  them my development machine...</p>\n</blockquote>\n\n<p>So looks like it cannot be done.. Thats some strange behaviour since it looks like you are limited to whatever your dev machine is..</p>\n\n<p>I think the only way to do it is to size to the maximum resolution possible, set the form size, then revert back, but never touch the size again.</p>\n'}, {'answer_id': 154479, 'author': 'Eduardo Molteni', 'author_id': 2385, 'author_profile': 'https://Stackoverflow.com/users/2385', 'pm_score': 1, 'selected': False, 'text': "<p>You are limited in the designer, but not in code:</p>\n\n<pre><code>Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load\n    Me.Height = 17000 'or whatever you need\n    Me.Width = 13000\nEnd Sub\n</code></pre>\n"}]
['https://Stackoverflow.com/questions/35848', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2528/']