Thread: VB.net help
-
October 9th, 2004, 07:00 PM #1
VB.net help
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 code
Hey 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 ...
when i first read it i thought something with the tags on the radio buttons. but again, i'm not really sure how i would go about doing that either.Dim MDCintCount As Integer = 1
Do While MDCintCount <= 3
MDCintCount += 1
Loop
played around with it alitte and i'm at least not making it yell about bad code..
i think that might do it, except it'll do every radio button on the form i think. i'd like to just have it do the ones in the group box.Dim MDCintCount As Integer
Dim MDCobjRadio As RadioButton
Do While MDCintCount < Me.Controls.Count
If TypeOf Controls.Item(MDCintCount) Is RadioButton Then
End If
MDCintCount += 1
Loop
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
Exit For
End If
Next
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Mail Server though router....
By FreakyOCR in forum Networking and InternetReplies: 11Last Post: March 20th, 2011, 08:40 PM -
what is ADO.NET??
By rex028 in forum Webmastering and ProgrammingReplies: 3Last Post: October 7th, 2004, 01:55 PM -
what does it mean ????
By rex028 in forum Technical SupportReplies: 3Last Post: September 28th, 2004, 02:14 PM -
Is this possible-> Network Dos 2 WinXP?
By Doot in forum Networking and InternetReplies: 6Last Post: May 7th, 2004, 04:56 PM -
Visual J#.Net
By Rhino in forum Webmastering and ProgrammingReplies: 6Last Post: July 5th, 2002, 04:06 AM



LinkBack URL
About LinkBacks




Reply With Quote

Watch The Hangover 3 Online: Hangover 3 Was a massive hit, making symmetric solon currency than the ordinal celluloid. It got mixed reviews though because, critics argued, it had essentially the...
Watch The Hangover 3 Online full...