Thread: VB.net help
October 9th, 2004, 07:00 PM #1
so i decided to ask for help here on my homework...
i'm working on coding the assignment, but this part of the instructions is throwing me
Loop (your choice of looping structures) through the Seminar radio buttons and clear all of them.
i dont see how i would make it go thru all the buttons and set them to false.
it makes much more sence to me to just write the 3 lines of code where it sets them to false.
i don't know if you'd need to see the code i have or anything. i'm not really asking for someone to write this for me. i just need a shove.. or 2 in the right direction here
seeing as to get a 100% i need to do another one that i have a little bit more of an idea on. if i can't get it might ask here again..
Much thanks if anyone can help
October 9th, 2004, 07:22 PM #2
yes it would help to see the codeHey who turned sigs on?
October 9th, 2004, 07:29 PM #3
well, for that loop. i dont have any code.. except for the other things its supposed to do.
about as far as i got was diming a varible as integer to count but then i couldn't figure out how that would do anything other then run it a specific ammount of times.
maybe i can explain the code i have. the 3 buttons are in a groupbox. they are the only ones that need to be cleared.
but again, i dont see how you'd tell it to look at the individual buttons and clear them.
so i dont really have code.. just the ... i have no idea what i'm suppsoed to do going on ...
Dim MDCintCount As Integer = 1
Do While MDCintCount <= 3
MDCintCount += 1
played around with it alitte and i'm at least not making it yell about bad code..
Dim MDCintCount As Integer
Dim MDCobjRadio As RadioButton
Do While MDCintCount < Me.Controls.Count
If TypeOf Controls.Item(MDCintCount) Is RadioButton Then
MDCintCount += 1
how would i say to set me.MDCradSeminar3.checked = false and so on with the other names. while its running the loop?
the current issue is i am looking at other code i wrote, but it did something else and not clear.
edit edit, i think i'm going in the wrong direction. maybe i should be using a for loop? i got the one i wrote to count, but it wouldn't go into the radio buttons.
i can asign intgers to the buttons in the tag, but then i am not sure how to make it do it that way either...
me and visual studio help arn't getting along, and my book dosn't have any exaples of this, that i've found yet.
Last edited by BobOmega; October 9th, 2004 at 10:23 PM.
October 10th, 2004, 01:41 PM #4
well. after several glazed doughnuts, half gallon of green tea with ginsing, some Mountian Dew and a few pizzas. i got it.
For Each MDCobjRadio In Me.MDCgrpAvailable.Controls
If MDCobjRadio.Checked = True Then
MDCobjRadio.Checked = False
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By FreakyOCR in forum Networking and InternetReplies: 11Last Post: March 20th, 2011, 08:40 PM
By rex028 in forum Webmastering and ProgrammingReplies: 3Last Post: October 7th, 2004, 01:55 PM
By rex028 in forum Technical SupportReplies: 3Last Post: September 28th, 2004, 02:14 PM
By Doot in forum Networking and InternetReplies: 6Last Post: May 7th, 2004, 04:56 PM
By Rhino in forum Webmastering and ProgrammingReplies: 6Last Post: July 5th, 2002, 04:06 AM