Welcome to Dream.In.Code
Become a VB Expert!

Join 137,230 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,859 people online right now. Registration is fast and FREE... Join Now!




Button Click Events

 
Reply to this topicStart new topic

Button Click Events

eadams20
13 Feb, 2007 - 03:34 PM
Post #1

D.I.C Head
**

Joined: 30 Aug, 2006
Posts: 65


My Contributions
CODE


    Private Sub clearButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
        'clear previous amounts from the form.

        With Me
            .sellingPriceTextBox.Clear()
            .costValueText.Clear()
            .commissionText.Clear()
            With .nameTextBox
                .Clear()
                .Focus()
            End With
        End With
    End Sub


    Private Sub exitButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
        'Exit the Project

        Me.Close()

    End Sub
End Class



The Exit and Clear buttons do not work.. and I have no errors... can anyone tell me if I have an issue and what is it..

Thanks

This post has been edited by eadams20: 13 Feb, 2007 - 05:09 PM
User is offlineProfile CardPM
+Quote Post

eadams20
RE: Button Click Events
13 Feb, 2007 - 04:15 PM
Post #2

D.I.C Head
**

Joined: 30 Aug, 2006
Posts: 65


My Contributions
Should I ad that I did write this code, and that it ins't for a test... LOL

I really need some advice though... TIA

Should I ad that I did write this code, and that it ins't for a test... LOL

I really need some advice though... TIA
User is offlineProfile CardPM
+Quote Post

brottmayer
RE: Button Click Events
13 Feb, 2007 - 04:28 PM
Post #3

D.I.C Head
**

Joined: 21 Jan, 2007
Posts: 67


My Contributions
QUOTE(eadams20 @ 13 Feb, 2007 - 05:15 PM) *

Should I ad that I did write this code, and that it ins't for a test... LOL

I really need some advice though... TIA

Should I ad that I did write this code, and that it ins't for a test... LOL

I really need some advice though... TIA



Although I am new at this and my way may be simplistic, but in my program I use this function to clear out the information:

CODE

sellingPriceBox.Text = ""


And as far as the exit goes, I use this within the Click field:

CODE

End


Hope this helps! biggrin.gif
User is offlineProfile CardPM
+Quote Post

Jayman
RE: Button Click Events
13 Feb, 2007 - 04:49 PM
Post #4

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 6,984



Thanked: 44 times
Dream Kudos: 500
Expert In: C#, VB.NET, Java

My Contributions
You seem to have lost the Handle for each of those methods.
CODE

Private Sub clearButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles clearButton.Click

Private Sub exitButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles exitButton.Click

User is offlineProfile CardPM
+Quote Post

eadams20
RE: Button Click Events
13 Feb, 2007 - 05:09 PM
Post #5

D.I.C Head
**

Joined: 30 Aug, 2006
Posts: 65


My Contributions
QUOTE(jayman9 @ 13 Feb, 2007 - 05:49 PM) *

You seem to have lost the Handle for each of those methods.
CODE

Private Sub clearButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles clearButton.Click

Private Sub exitButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles exitButton.Click




Thanks sooo much that did it!
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/4/08 03:18PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month