View Single Post
Old 04-24-2015, 10:46 AM
Oswald Oswald is offline
Join Date: Apr 2005
Posts: 63
Default Picturebox size in design phase & while running MISMATCH

how is this possible? I'm new to .net, but I know it doesnt scale at all like vb6.

see the attachment for picturebox size and what the output was (on form title).

its set to 200 in the IDE, and form_load returns 150, without doing anything else, this was a blank project to make sure everything is default

Public Class Form1

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Me.Text = CStr(PictureBox1.Width)
    End Sub
End Class
Attached Images
File Type: png b1.png (12.5 KB, 3 views)
File Type: png b2.png (2.8 KB, 3 views)
Reply With Quote