First off, I'm completely new to the world of Visual Basic. I took a little break from programming for about 20 years :) What a change... and THANK GAWD!
I'm trying to keep current in my studies and am using VB.NET 2005 beta 2 at the moment and training with App Dev's VB .NET course...
I've got the basics down, nagivation, understanding of objects, properties, etc... but for the life of me, i can't find what i'm looking for... and what I THOUGHT may have been a slight change in naming of properties... was not the solution to my dilemna...
at anyrate... My question is....
Does the 2005 version support the radio check boxes as it did in 2003
I'm trying to follow the app dev course by following their programming step by step... Basically I setup a menu, with a language option. The obvious intent from this example is to setup a menu choice - allowing a user to select ONE language.
However, it appears that the 2005 version of VB does not have a radio style choice built in... so essentially a user could select ALL of the listed choices that I gave them... this could present a slight problem :)
Help... please... in beginners lingo if you would :) Thanks in advance.

Radio Check Options in Menu Strip?
Scott Johnson
I suppose I haven't quite made it to control arrays at this point. I figured that if Radio Checks were now an item of the past, that my only choice was to create something on my own...
I suppose if there were new controls, I wouldn't know if they were new. :) and really, I haven't made it as far as really knowing too many of the controls either.
When I say I'm new...i'm fresh picked and green off the tree :) To give you some idea how new... I'm on CD 1... section 5.1... out of 16 CD's and a lot of introduction to start...
I suppose what I was trying to accomplish by posting my message is to find out if I am searching for properties that don't exist any longer...
You've given me the impression that I will in time learn how to make radio checks on my own... or something similar at least... so I suppose at this point I will just resume my studies... and know there is a logic error in my first program until such time as I am knowledgable enough to correct the logic on my own :)
compucv621
I guess I just took for granted the underscores on menus... because apparently I was snoozing when they removed them and set them to ONLY display AFTER the ALT key has been pressed... *shakes head in embarrasment*
I think after being up since 5:15am... it's time to take a break...
*sits in corner with my dunce cap until 2morrow morning*
*yawn*
Peter Larsen
mnuEnglish.Checked =
TruemnuFrench.Checked =
Falseand visa versa... :) for the other click event :)
I guess I just needed to be more patient... :)
okay, flame away at the newblette ... LoL
neetu_fzr
Yeah, certainly I'd appreciate the code. It may not make much sense to me now, but perhaps after a little more studying... I'll figure it out.
I'm expecting to be mid way through the 3rd of 16 training discs by the end of today. So far, so good. I don't know if I'm setting my goals too high, but as I told my wife, I hope to be able to consider myself reasonably well versed after 3 months of full time studying.
I'm thinking it would be wise to invest in a good encyclopedia if you will that would explain a complete list of the built in classes and controls(I think is what I'm referring to - for example when you type Me. the wizard pops up with a huge list of options) ... something that had a complete listing and explaination of each of those would be handy...
again, thanks for taking the time to assist me with my new venture. :)
sniwas24x7
birth for me ;) LoL
I started programming on my *cough* Commodore *cough* Vic 20 *cough* when I was 11... was great... but after typing about 3000 lines of code... You too could have a little dot on the screen! ... wasn't my cup of tea at the time but was also the most my dad was going to spend on what he called a video game box... I wanted to make games so I could stop dropping quarters into arcade games... Did okay with that for a while, made some silly choose your own adventure games, and a donkey kong goes lode runner style of game... but in time, and 4k of memory... I found other diversions... ended up in pre-internet modem communications... BBS's... then found myself selling these darn things... then onto global networks... now back to programming... and go figure... I still want to make games. LoL I've had this itch to make a game that's never been done for a few years now... and I think I can really make a go of it... although I still don't know what a control array is, I can read the code you wrote above and it makes complete sense to me... as well as half the code that I am finding as I'm studying this fine art... It's just a matter of continuing my studies, which have really only gone on for about a week or two... and applying what I'm learning to my idea...
Thanks for all your help... I'm sure I'll be back... but this time... I'll be sure to study on a bit more before posting for help :)
Lorry Craig
I'm terribly sorry, we've have checkboxes for a long time. They used to be in "control arrays" which would be banks of them.
Can you make your own Sure
dim chkbx as new checkbox ' create a text box
me.controls.add(chkbx) ' Add it to the mainform
dim left as integer = 100 'I'm writing this for illustration- I wouldn't write it this way
dim top as integer = 80
chkbx.location = new point(left,top)
jhobitz
Menu options: View | Object Browser
Or in my RC1 IDE it's in a toolbar and has an icon the is a book with pink objects.
(I love the pink!)
Alvin Chardon
If I understand your real question correctly, you (like me) are looking for some way to take advantage of native abilities in VS to implement a mutually-exclusive set of options in a menu rather than having to write something on your own. Manually unchecking all of the "other" options or automating this functionality somehow would work in a pinch, but there seems to be a fatal flaw to that approach. You still end up with a check next to your item rather than a dot.
Maybe someone with an prior version of VS can confirm this, but I could swear that you could have radio-type buttons (i.e. dots) in menus before VS05. It would just seem inconsistant to denote "mutual exclusivity" everywhere else with a dot, but throw that rule out the door when it came to menus.
I'm sorry I don't have an answer for you, but maybe the feature we're looking for really is in there somewhere and keeping this thread alive will help us find an answer so we don't need a kludgy workaround. I'll keep my fingers crossed.
- Mitchell S. Honnert
Rick Bunnell
This code won't make a lot of sense. I've been programming or 35 years now. I've been doing OOL for only about six months and six months ago what I about to give you would not have made sense which is why I have consternation about this.
There are good resources however. You asked about all classes. VS2005 has the most wonderful object browser that show the organization of all the classes. It's built right into your IDE.
Which product are you running anyway
A second resource that's really good is that MS has put out a free book. I think it's to teach VB6 people .DOT net. It's somewhere on the MS site, perhaps with the Express product downloads. It's really excellent.
OK, now to the code:
Well darn...... I must have closed it. Here's how to it process it anyway.
Create a class for making checkboxes. Central to this class is the creation of a checkbox as a friend with the events.
Friend withevents chkbx as new Checkbox
Also this class should have an event for when a checkbox is checked. I had this event call a routine in the main form propagating sender information. Initalize the checkbox class in the main form. Make a routine that creates checkboxes dynamically by calling the chkbx class. Another routine calls this routine N times adding each new checkbox to the main form. This routine puts a checkbox number 0 - (N-1) in the checkboxes tag.
The mainform routine that was called by the event in the chkbx class should clear all checkboxes but the one described by sender. Remember that you will have its number in the tag. This was where my bug was. Because this routine is also called when you clear the other checkboxes.
You may find another weirdness here Titanium. Since these checkboxes are beig created and added to the form dynamically, you never reference them directly but you really don't need to. They are really just an array of flags.
Good luck!
Range_Finder
I did a lot on this. There isn't a huge amount of code but it has its complexities.
The thing is I've run out of time and I haven't solved everything.
Much of what I'm going to say may not make much sense.
I made a checkbox class with a checkbox as a friend with events with a state change event informing the form class.
The thing is the event is called several times unchecking the boxes.
I haven't had time to debug this but the rest of the code is there.
If you're interested, I'll supply the code.
AnilMenon
What would stop you from making control array and doing your own logic
Could there be any newer alternative controls that may interest you
Erik B.
Frankly to me I don't care if it's a 'radio button' a check box, or an upside down exclamation mark that's displayed... It does appear to be a mistaken omission... short of writing code, which I have now done to my satisfaction, the option of only selecting ONE display type for language or any other type of single choice style menu doesn't appear to be covered in the 2005 version of VB... perhaps I will write a little 'reminder' to MS before the final release :) I MAY have written a control array, and don't know it... but when I figure out what one of those is... I'll be sure to take note that i may need to pay close attention so I can write code for workarounds...
Thanks for writing me back... I had the impression that I found something missing... just wasn't sure if I was too new to know it...
Hope you like my sense of humour... Although I'm feeling a little bit confused about some of the terms and such... I'm really disappointed that I gave up programming so long ago... *sheds a tear* ... I can't believe the drive I have to learn this stuff and get back in the saddle...
Simon dotnet convert
*looks in mailbox for MS-Beta Tester T-Shirt* They do have those right :)
While configuring a menu strip... and using the & sign to display an underscore under the appropriate letter... while the underscore does display perfectly fine in design mode... no underscores are displayed while in runtime mode... :)
Deepak Juneja
Again, being so new to this... where is it in the IDE that I will find the object browser
What i'm looking for is a means of finding full lists, meanings and purpose of:
classes
scopes
procedures
I'm sure i've left a few things off, being as I don't know the all the terms yet... :)
basically what I'm looking for is an encylopedia of all the syntax that pops up when you are writing code, the long lists of options that you can scroll through and tab to select when in the code view...
I'm finding a LOT of training material assumes you have knowledge of VB or programming in general... when i'm following some of these courses, i'm a bit baffled... I'm thinking maybe I'll step back to my VB 6.0 studies, see if I pickup some of these terms... then proceed back to VB. Net
I'm using the VS 2005 Team Suite beta 2... I have VB.Net 2003 Std but I wanted to test out tomorrows programming suite so i can be prepared for what is to come.
This is what I ended up using to cover the 'radio check' options that I needed... it works perfectly actually... I know nothing of arrays at this stage or dyanmic code... but my objective has been reached with this code:
Private Sub lblInstruction_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblInstruction.Click
End Sub
Private Sub mnuFrancais_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuFrancais.ClickmnuEnglish.Checked =
FalsemnuFrancais.Checked =
TruemnuEspaniol.Checked =
False End Sub Private Sub mnuEnglish_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuEnglish.ClickmnuEnglish.Checked =
TruemnuFrancais.Checked =
FalsemnuEspaniol.Checked =
False End Sub Private Sub mnuEspaniol_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuEspaniol.ClickmnuEnglish.Checked =
FalsemnuFrancais.Checked =
FalsemnuEspaniol.Checked =
True End Sub