T
tim
VB 6: frame1.width = form1.width - 200
VB .NET: ?
Can someone please help with this simple line of code...thanks..
VB .NET: ?
Can someone please help with this simple line of code...thanks..
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Forms have a Width property, its inherited from Control.No, it doesn't seem to work.
tim said:VB 6: frame1.width = form1.width - 200
VB .NET: ?
tim said:VB 6: frame1.width = form1.width - 200
VB .NET: ?
Phill. W said:tim said:VB 6: frame1.width = form1.width - 200
VB .NET: ?
Private Sub Form_Layout( ... ) Handles Form1.Layout
Me.Frame1.Width = Me.ClientSize.Width - 13 ' roughly
End Sub
Forms have an overall Size (including borders and title bar) and
a ClientSize, that just includes the "inner" bit that you can
[normally] play with.
Your 200 has shrunk to 13 because all measurements in VB.Net
are now in Pixels; Twips are dead and buried (and good riddance),
so all your offsets, like this, need to be 1/15th their previous size
(Screen.TwipsPerPixelX/Y notwithstanding).
HTH,
Phill W.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.