jampost
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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.
ASKER
It gives me 1292, 1036
So the height is being restricted. Try hiding the taskbar.
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.
I think I am going to have to try coming at this from another angle or something. Thank you for your help.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you for your help. I think it's time for me to learn WPF.
ASKER
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