Results 1 to 9 of 9

Thread: OptionButton(Resolved)

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    81

    Thumbs up OptionButton(Resolved)

    hi,

    i want to display a form with some textbox and some optionbuttons. i make the optionbutton.enabled = false since i want it for display only. But the label for the option button also in unabled mode. is it any way i can unabled the optionbutton but the label for the option button is in normal mode.( it will look nicer).
    thanks.
    Last edited by vivian2u; May 17th, 2005 at 06:06 AM.

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: OptionButton

    What you can do vivian is to create option button WITHOUT caption and shrink its width down to minimal so only "radio button" part is shown and then put regular label next to it.
    But the question I'd like to ask is - what's the purpose of having disabled options ?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    81

    Re: OptionButton

    thanks for the reply. i dont want the user change the option if the option buttons are not in disabled mode.(even though they cant change the original value).

  4. #4
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: OptionButton

    Then simply use lables instead to display "available" options.
    On the other hand you're the designer so I guess it's upto you what to use.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    81

    Re: OptionButton

    Hi,

    Once you click on the option button, you only allow to select other options but cant leave the option buttons unselected. Is it any other ways that i can leave the option buttons unselected?
    Thanks

  6. #6
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: OptionButton

    I'm trying to understand what is it that you want but I can't, sorry.
    Perhaps you can show me some picture of what you speak.
    Also, Option buttuns can be groupped by moving (cut/paste) them to an individual containers such frames and/or pictureboxes so selecting one option from one group wouldn't affect any option from the other group ...

  7. #7
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Re: OptionButton

    Quote Originally Posted by vivian2u
    hi,

    i want to display a form with some textbox and some optionbuttons. i make the optionbutton.enabled = false since i want it for display only. But the label for the option button also in unabled mode. is it any way i can unabled the optionbutton but the label for the option button is in normal mode.( it will look nicer).
    thanks.
    Why not put the option buttons in a frame then you can disable the frame abd change the forecolor of the option buttons from black to blue. See the attached images and the project.
    Attached Images Attached Images  
    Attached Files Attached Files
    Last edited by Mark Gambo; May 15th, 2005 at 11:47 AM.
    Regards,

    Mark

    Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."


  8. #8
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: OptionButton

    you could just use code in the clickevent of all the option buttons

    Option1.Value = True

    pete

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Feb 2005
    Posts
    81

    Re: OptionButton

    Hi,
    thank you for all your reply and the attached file. Its exactly what i want and the problem solved. Thanks.

    vivian

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