Results 1 to 5 of 5

Thread: Single Button To Start and Stop?[RESOLVED]

Threaded View

  1. #1

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

    Resolved Single Button To Start and Stop?[RESOLVED]

    I was woundering can you get a Single button to peform 2 Actions :

    Start on First Click and then Stop when RE Clicked again??

    Code:
     private void command4_Click(object eventSender, System.EventArgs eventArgs)
    {
    if (toolStripStatusLabel1.Text = "blah blah blah";_
        Timer1.Enabled = true);
    }
    else
    {
        PacketsLabel.Text = "0";
        Timer1.Enabled = false;
    }
    I know that not Correct above but I think you get the Idea of what i'm trying to do.This should be Much easier than the last one...LOL

    Thxs in advance..
    Last edited by Rattlerr; Feb 3rd, 2006 at 03:03 PM.

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