"tim" <ti*@hello.com> wrote in message
news:WC***********@fe2.columbus.rr.com...
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.