cant set toolstripseparator margin with code
For some reason i cant set the value of toolstripseparator.margin.left by code
When i try i get the following error:
Expression is a value and therefore cannot be the target of an assignment.
For some reason i cant set the value of toolstripseparator.margin.left by code
When i try i get the following error:
Expression is a value and therefore cannot be the target of an assignment.
Hello,
Public
Class Form1Sub New()' This call is required by the Windows Form Designer.InitializeComponent()
' Add any initialization after the InitializeComponent() call.Dim ts As New ToolStripDim tst As New ToolStripSeparatorDim tsb As New ToolStripButtonDim tsb1 As New ToolStripButtontsb.Text =
"0"tsb1.Text =
"0"With ts.Parent =
Me.Enabled =
TrueEnd WithDim marg As New Padding(5, 0, 0, 0)With tst.Margin = marg
End Withts.Items.AddRange(
New ToolStripItem() {tsb, tst, tsb1})End SubPrivate Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.LoadEnd SubEnd
Class
![]()