Link to home
Start Free TrialLog in
Avatar of jampost
jampostFlag for United States of America

asked on

Is there any way of creating Visual Basic "Windows Form" 1200 wide by 1100 height?

I want to print the form using "Print Form". I am printing on a sheet of labels 8-1/2" x 11"  The extra width is for buttons (Links to other forms), etc.  
ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jampost

ASKER

The code below is what I tried.  The result after typing 1200, 1100  in the size property  is 1200, 1036.


Public Class prt

    Public Sub New()

        Dim Normal As Object

        ' This call is required by the Windows Form Designer.
        InitializeComponent()

        ' Add any initialization after the InitializeComponent() call.
        Me.WindowState = Normal
        Me.Size = New Size(1200, 1100)

    End Sub

   
Avatar of jampost

ASKER

Thank you  CodeCruiser for helping me    --      I tried this also:    same result.


Public Class prt

    Public Sub New()

        Dim Normal As Integer
        ' This call is required by the Windows Form Designer.
        InitializeComponent()

        ' Add any initialization after the InitializeComponent() call.
        Me.WindowState = Normal
        Me.Size = New Size(1200, 1100)

    End Sub
Try using something else like 1300, 1100 and see what happens.
Avatar of jampost

ASKER

It gives me  1292, 1036
So the height is being restricted. Try hiding the taskbar.
Avatar of jampost

ASKER

        I tried moving the task bar from the bottom to left side, got the same results. I just got home and tried this on my home computer which has a shorter, but wider monitor. The max height on my home system is 916. Obviously the monitor controls the Windows form size.  
         I think I am going to have to try coming at this from another angle or something. Thank you for your help.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jampost

ASKER

Thank you for your help. I think it's time for me to learn WPF.