Results 1 to 3 of 3

Thread: Newbie Needs Help

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    1

    Red face

    hi, I have only been using visual basic for a short time and I am building my first program etc.

    Anyway I am using the code on http://www.vbsquare.com/tips/tip397.html

    to control two forms using two option buttons, eg when one is selected one form is dissabled and vice versa, but when the first option button is selected the other form disables but so also does the menu bar at the top, this does not happen when the other button is selected.

    I would love any idea as this is really bugging me.


    Thanks all


    Oliver Simmons

  2. #2
    Guest
    How about using a Checkbox?

    Code:
    Private Sub Check1_Click()
    Form2.Enabled = Not Form2.Enabled
    End Sub
    If you want to stick with the Option buttons, you can use this:

    Code:
    Private Sub Option1_Click()
    Form2.Enabled = True
    End Sub
    
    Private Sub Option2_Click()
    Form2.Enabled = False
    End Sub
    Is this what you mean?

  3. #3
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    could you post the code the tips I go to with that http: is on concerning frames.
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

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