Skip to content

Commit

Permalink
Update getting-started.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dessyordanova authored Oct 17, 2024
1 parent f0d2102 commit 7b2737c
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions controls/buttons/button/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,15 @@ To programmatically add a __RadButton__ to a form, create a new instance of a _

#### Adding a RadButton at runtime


{{source=..\SamplesCS\Buttons\Button.cs region=creatingbutton}}
{{source=..\SamplesVB\Buttons\Button.vb region=creatingbutton}}

````C#


````
````VB.NET
Dim myNewRadButton As New RadButton()
myNewRadButton.Text = "My New RadButton"
myNewRadButton.Width = 150
myNewRadButton.Height = 50
Me.Controls.Add(myNewRadButton)
AddHandler myNewRadButton.Click, AddressOf myNewRadButton_Click


````

Expand All @@ -48,16 +43,11 @@ AddHandler myNewRadButton.Click, AddressOf myNewRadButton_Click
{{source=..\SamplesVB\Buttons\Button.vb region=ButtonClick}}

````C#
private void myNewRadButton_Click(object sender, EventArgs e)
{
RadMessageBox.Show("Clicked");
}


````
````VB.NET
Private Sub myNewRadButton_Click(sender As Object, e As EventArgs)
RadMessageBox.Show("Clicked")
End Sub


````

Expand Down

0 comments on commit 7b2737c

Please sign in to comment.