Results 1 to 3 of 3

Thread: [02/03] Button check.

  1. #1

    Thread Starter
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    [02/03] Button check.

    Hi All,

    This could be very easy, but it's very late this moment and I'm stuck with this.
    What I'm trying to do is to check if there's a Button clicked and then execute an event in another button_click event.

    For example:

    ButtonNumbers is clicked then you clicked another buttonOK to let the user only put some numbers in to a TextBox.

    When he clicked ButtonLetters after clicking the OKbutton then he can only put some lettersd into the TextBox.

    I prefere to use regular buttons instead of radiobuttons.
    Can I use something simular like the checkevent for radiobuttons for buttons?

    Thanks in advance,

    sparrow1
    Last edited by sparrow1; May 8th, 2006 at 05:03 PM.
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: [02/03] Button check.

    You may be interested to know that if you set the Appearance property of a RadioButton to Button it will look exactly like a regular Button control but it will work as a toggle. When you click the button it will remain depressed until you click it a second time. The depressed state is equivalent to (Checked = True). The CheckBox control has a similar property. The difference is that when you depress a RadioButton with this Appearance it will popup all other RadioButtons.
    Attached Images Attached Images  
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: [02/03] Button check.

    Hi jm,

    Thanks for the explanation.
    I didn't know that.


    Wkr,

    sparrow1
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

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