473,396 Members | 1,875 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Option Box Help

2
I am writing a program that works on the selection of one of three option boxes on one form.

When one is selected the verious tasks are carried out.

However, when I return to the option box form, the box that the user selected last time is still highlighted - it has the black circle in it.

Is there anyway of clearing this so that no box is already pre-selected when the form loads?
Mar 25 '07 #1
7 2879
Killer42
8,435 Expert 8TB
I am writing a program that works on the selection of one of three option boxes on one form.

When one is selected the verious tasks are carried out.

However, when I return to the option box form, the box that the user selected last time is still highlighted - it has the black circle in it.

Is there anyway of clearing this so that no box is already pre-selected when the form loads?
What version of VB is this?
Mar 25 '07 #2
3092
2
Visual Basic 6
Mar 25 '07 #3
SammyB
807 Expert 512MB
I am writing a program that works on the selection of one of three option boxes on one form.

When one is selected the verious tasks are carried out.

However, when I return to the option box form, the box that the user selected last time is still highlighted - it has the black circle in it.

Is there anyway of clearing this so that no box is already pre-selected when the form loads?
You create another option button, I usually call it OptClear and have it checked in the design mode. Then, set the location so that it is outside of the group box so that the button cannot be seen by the users. You can then "clear" the user's option buttons whenever you want by setting OptClear. A little tricky, but SOP (standard operating procedures).
Mar 26 '07 #4
Killer42
8,435 Expert 8TB
You create another option button, I usually call it OptClear and have it checked in the design mode. Then, set the location so that it is outside of the group box so that the button cannot be seen by the users. You can then "clear" the user's option buttons whenever you want by setting OptClear. A little tricky, but SOP (standard operating procedures).
Sounds like a useful technique. I have a couple of questions, though:
  • Do you need to turn off TabStop property, or doesn't that apply to option buttons? (I know you can't tab between them, you have to press arrows).
  • How do you deal with the user "arrowing" to the hidden option button?
Mar 26 '07 #5
SammyB
807 Expert 512MB
Sounds like a useful technique. I have a couple of questions, though:
  • Do you need to turn off TabStop property, or doesn't that apply to option buttons? (I know you can't tab between them, you have to press arrows).
  • How do you deal with the user "arrowing" to the hidden option button?
Actually, I never thought about anyone using the keyboard to navigate. I don't think it would mess anyone up to allow that because they would never know that the Clear option button was there. However, if it bothers you, you can set TabStop to False and Enabled to False and then they cannot touch it.
Mar 26 '07 #6
Dököll
2,364 Expert 2GB
I am writing a program that works on the selection of one of three option boxes on one form.

When one is selected the verious tasks are carried out.

However, when I return to the option box form, the box that the user selected last time is still highlighted - it has the black circle in it.

Is there anyway of clearing this so that no box is already pre-selected when the form loads?
If you are returning to the option box form anyway, why not use:

Expand|Select|Wrap|Line Numbers
  1.  
  2. Unload Me
  3. MyOptionBoxForm.Show
  4.  
  5.  
MyOptionBoxForm being your option form name. This way, the option box form gets back to its original state, thus clearing the last selected user entry. Assuming this what this you hope to achieve...
Mar 27 '07 #7
Killer42
8,435 Expert 8TB
Actually, I never thought about anyone using the keyboard to navigate. I don't think it would mess anyone up to allow that because they would never know that the Clear option button was there. However, if it bothers you, you can set TabStop to False and Enabled to False and then they cannot touch it.
I've finally had some time to play with this. The TabStop property doesn't appear to make any difference unless the option button is on its own rather than inside a container, so you can probably just ignore it. I thought that disabling the option button would prevent you setting the value in code, but apparently I've just been using MS Access too much lately. (In Access VBA, you can hardly do anything to a disabled control - it's a real pain).

This seems like a nice, elegant solution. Good one!
Mar 27 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: julian | last post by:
hi I was wondering if anyone can help me out on this.... I have dynamcally populated a drop down menu with data from an access database using ASP. The values seem fine, however when i pass...
4
by: mr_burns | last post by:
hi, using javascript, how do i select an option in a combo box? i have tried looking on the internet but dont really know what i should be searching for. what i want to happen is that when a...
9
by: Gianni | last post by:
I have to insert in a html select the last 10 years <select name="year" onChange="month()" size=5> <option value="1994">1994</option> <option value="1995">1995</option> <option...
16
by: | last post by:
Hi , We have a lot of code which runs fine under VC++ 6.0. We have to move to ..NET becasue one of the librairies uses .NET classes. Does every library(including those which do not use .NET...
11
by: Daylor | last post by:
hi. im using option strict on. im doing in ,from the simple reason ,to be warn when there are implict conversion like string to int ,int to string. BUT. the price ,(now i see ), is very bad....
8
by: Rich | last post by:
Hello, If I leave Option Strict Off I can use the following syntax to read data from a Lotus Notes application (a NotesViewEntry object represents a row of data from a Lotus Notes View - like a...
9
by: Ritesh Raj Sarraf | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I'm using optparse module to parse all options and arguments. My program uses mostly "option arguments" hence my len(args) value is always...
4
by: glady | last post by:
Please help I saw the posted forum, the one i exactly want, could you just help me, here is the code... <td width="24%"><div align="right">Select Area:</div></td> <td...
2
by: rpeterson84 | last post by:
Hi, Thanks in advance to for the help!!!!! When the page loads, "Application Inventory" is selected by default --- I want to use a mouse.click to select "Systems Compliance", BUT HOW? I'm...
3
by: Venturini | last post by:
I am trying to put together a web page where the customer makes choices of products and is then given a total. I am extremely new to Javascript and have managed to get as far as I have from web...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.