CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: quick question

  1. #1
    Join Date
    Dec 2008
    Posts
    27

    quick question

    i am rather new to visual C++ and i want to know how i would make one button act as two
    (i.e button "open" then would carry out the operation then switch to second function "close".
    Last edited by twistedmike; April 17th, 2009 at 07:33 PM.

  2. #2
    Join Date
    Apr 2009
    Posts
    3

    Re: quick question

    hi
    u can make it using toggle effect
    use flag or static int i = 0;
    if(i % 2== 0)
    {
    code for open
    i++;
    }
    else
    {
    code for close
    i++;
    }
    so it will alternately open and close the application.

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

Featured