home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

VB.net help

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1709
Discussions: 200,990, Posts: 2,379,883, Members: 246,359
Old October 9th, 2004, 08:00 PM   Digg it!   #1 (permalink)
Ultimate Member
 
BobOmega's Avatar
 
Join Date: May 2002
Location: Youngstown (well nea
Posts: 1,102
Send a message via ICQ to BobOmega
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
BobOmega is offline   Reply With Quote
Old October 9th, 2004, 08:22 PM     #2 (permalink)
Ultimate Member
 
HeadBand's Avatar
 
Join Date: Dec 2003
Posts: 3,991
yes it would help to see the code
__________________
Hey who turned sigs on?
HeadBand is offline   Reply With Quote
Old October 9th, 2004, 08:29 PM     #3 (permalink)
Ultimate Member
 
BobOmega's Avatar
 
Join Date: May 2002
Location: Youngstown (well nea
Posts: 1,102
Send a message via ICQ to BobOmega
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 ...

Quote:
Dim MDCintCount As Integer = 1

Do While MDCintCount <= 3

MDCintCount += 1
Loop

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.


played around with it alitte and i'm at least not making it yell about bad code..
Quote:
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

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.

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 11:23 PM.
BobOmega is offline   Reply With Quote
Old October 10th, 2004, 02:41 PM     #4 (permalink)
Ultimate Member
 
BobOmega's Avatar
 
Join Date: May 2002
Location: Youngstown (well nea
Posts: 1,102
Send a message via ICQ to BobOmega
well. after several glazed doughnuts, half gallon of green tea with ginsing, some Mountian Dew and a few pizzas. i got it.

Quote:
For Each MDCobjRadio In Me.MDCgrpAvailable.Controls
If MDCobjRadio.Checked = True Then
MDCobjRadio.Checked = False
Exit For
End If
Next

BobOmega is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Server though router.... FreakyOCR Networking and Internet 10 April 24th, 2008 08:13 PM
what is ADO.NET?? rex028 Webmastering and Programming 3 October 7th, 2004 02:55 PM
what does it mean ???? rex028 Technical Support 3 September 28th, 2004 03:14 PM
Is this possible-> Network Dos 2 WinXP? Doot Networking and Internet 6 May 7th, 2004 05:56 PM
Visual J#.Net Rhino Webmastering and Programming 6 July 5th, 2002 05:06 AM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3073)
Charges against non-tippers dropped.. (20)
Health Care Rationing (12)
Delete an OS (17)
Nvidia GTX 260 problem (10)
Laptop with wireless problem. (12)
windows vista security holes (19)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
Point and Shoot Camera Suggestions. (8)
windows 7 problem (7)
[F@H SPAM 11/16/09] ! 1/2 months to.. (39)
Internet Lost (5)
Recent Discussions
Foxconn Blackops x48 MoBo (2)
Q9650 vs. Q9550 (0)
Desktop Calendar Application (2)
Looking for new motherboard (1)
soundmon.exe (8)
Jedi Academy Problem (3)
Can a page file be "too big".. (1)
Nvidia GTX 260 problem (10)
Point and Shoot Camera Suggestions. (8)
Size after cutting 700Mb file is 2.5 .. (0)
Delete an OS (17)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (39)
windows vista security holes (19)
updating BIOS via winflash, claims fi.. (1)
New Server Configuration Suggestions (0)
cheap gaming laptop? (12)
Unallocated Space (2)
help me pls laptop just stopped worki.. (1)
C# + LINQ Help (7)
Dynex DX E-402 (3)
EVGA 9800 gtx help with finding a goo.. (12)
Multiple Restarts Required at Boot (5)
cell phone won't work (0)
Is the PSU I received dead? (15)
Can't open Word (12)


All times are GMT -4. The time now is 08:24 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28