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.

flow layout properties

this is where I am I am getting margin and padding set 0. I also set margin and padding on 0 on each controller.

new transit

And here is the code for the sake of continuity Adding a picture box 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)

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:

  newPic.Margin = new padding (0)   < / Div> 

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -