vb.net - Decrease space between controls in FlowLayoutPanel -
How can I reduce the space between controls? I have set all the margins and padding to 0, but there is still room between my controllers.
this is where I am I am getting margin and padding set 0. I also set margin and padding on 0 on each controller.
And here is the code for the sake of continuity Adding a picture box You are not setting the margin property on the image box adding . Default 3,3,3,3 To fix the problem, add this line of code: Dim box as newPic = new image box (newPic.Image = p.Image newPic.Size = new system. Drawing Size (New Point (p.Size.Width * 2, p.Size .ite * 2)) newPic.SizeMode = p.SizeMode Laytt.SetToolTip (newPic, ttstring) AddHandler newPic.Click, AddressOf layoutprint_lickard layoutflow layout. Control Add (newPic)
newPic.Margin = new padding (0) < / Div>
Comments
Post a Comment