1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| MyButton = New Button
MyButton.ForeColor = Couleur
MyButton.Font = New System.Drawing.Font(Me.Label_Exemple.Font, FontStyle.Bold)
MyButton.Text = "Valider"
MyButton.Name = "MyVal_" & Req.Fields("id").Value
MyButton.Location = New Point(xPos, yPos)
MyButton.Width = 57
MyButton.Height = 22
AddHandler MyButton.Click, AddressOf MyButton_ActionClick
Me.MonPanel.Controls.Add(MyButton)
MyLabel = New Label
MyLabel.ForeColor = Couleur
MyLabel.Font = New System.Drawing.Font(Me.Label_Exemple.Font, FontStyle.Bold)
MyLabel.Text = MyNZ(Req.Fields("dt").Value, "")
MyLabel.Name = "MyDt_" & Req.Fields("id").Value
MyLabel.Location = New Point(xPos, yPos)
MyLabel.AutoSize = True
MyLabel.Width = 110
AddHandler MyLabel.Click, AddressOf MyButton_ActionClick
Me.MonPanel.Controls.Add(MyLabel) |
Partager