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.

[210 byte] By [DanMikkelsen] at [2007-12-28]
# 1

Hello,

Public Class Form1

Sub New()

' This call is required by the Windows Form Designer.

InitializeComponent()

' Add any initialization after the InitializeComponent() call.

Dim ts As New ToolStrip

Dim tst As New ToolStripSeparator

Dim tsb As New ToolStripButton

Dim tsb1 As New ToolStripButton

tsb.Text = "0"

tsb1.Text = "0"

With ts

.Parent = Me

.Enabled = True

End With

Dim marg As New Padding(5, 0, 0, 0)

With tst

.Margin = marg

End With

ts.Items.AddRange(New ToolStripItem() {tsb, tst, tsb1})

End Sub

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

End Sub

End Class

aybe at 2007-9-4 > top of Msdn Tech,Visual Basic,Visual Basic General...