Thursday, January 25, 2007

(More) Codes for Visual Basic .NET

For the toolbar: You click cut, and the text in the textbox disappears. If you click paste after that, the text will appear, over and over again.
Private Sub ToolBar1_ButtonClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ToolBarButtonClickEventArgs) Handles ToolBar1.ButtonClick
If e.Button Is ToolBar1.Buttons(0) Then
TextBox1.Cut()
ElseIf e.Button Is ToolBar1.Buttons(1) Then
TextBox1.Paste()
End If

3 pokes:

Anonymous said...

I couldn't resist commenting. Perfectly written!

Feel free to visit my web page: Wesley Issac

Anonymous said...

I'm gone to tell my little brother, that he should also go to see this web site on regular basis to take updated from latest gossip.

Feel free to surf to my web site :: Nehemiah Jamal

Anonymous said...

I like the helpful information you provide in your articles.
I'll bookmark your blog and check again here regularly. I'm quite sure I will learn many new stuff right here!
Best of luck for the next!

Here is my blog Tony Jamie