esposito Posted November 25, 2003 Posted November 25, 2003 Hello, I can't translate into VB.NET the following simple VB6 line of code: Form1.Width = Screen.Width As you know, this way you could set the width of Form1 equal to that of the screen. Can anybody help me? TIA Quote Pasquale Esposito Perugia - Italy http://www.geocities.com/espositosoftware
*Experts* mutant Posted November 25, 2003 *Experts* Posted November 25, 2003 Me.Width = Windows.Forms.Screen.PrimaryScreen.Bounds.Width This will return the width of the screen for you. Quote
esposito Posted November 25, 2003 Author Posted November 25, 2003 Thank you, mutant. I really envy your knowledge! Me.Width = Windows.Forms.Screen.PrimaryScreen.Bounds.Width This will return the width of the screen for you. Quote Pasquale Esposito Perugia - Italy http://www.geocities.com/espositosoftware
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.