Results 1 to 5 of 5

Thread: [2.0] using 1 Button for 2 Functions[RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member Rattlerr's Avatar
    Join Date
    Jul 2005
    Location
    FloralCity,Florida
    Posts
    269

    Smile [2.0] using 1 Button for 2 Functions[RESOLVED]

    I need to get one Button to both Start and Stop...Now for some reason i cant remember this for the life of me..lol
    But this is what i have I think its correct but i cant remember

    VB Code:
    1. private void button1_Click(object sender, EventArgs e)
    2. if (button1.Capture == true)
    3. {
    4. toolStripStatusLabel2.Text = " Sending Message";
    5. timer1.Enabled = true
    6. }
    7. else
    8. {
    9. if(button1.Capture == false)
    10. toolStripStatusLabel2.Text = "";
    11. timer1.Enabled = false
    12. }
    13. }
    Am i correct?? and is their a shorter version of this..lol
    Last edited by Rattlerr; Jul 24th, 2006 at 03:31 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width