Click here to Skip to main content
16,005,281 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: continue in VBScript Pin
Anonymous16-Feb-05 9:09
Anonymous16-Feb-05 9:09 
GeneralRe: continue in VBScript Pin
davedoc16-Feb-05 13:04
davedoc16-Feb-05 13:04 
GeneralRe: continue in VBScript Pin
Dave Kreskowiak17-Feb-05 2:07
mveDave Kreskowiak17-Feb-05 2:07 
Questionweb service limitations? Pin
detroitboy16-Feb-05 6:30
detroitboy16-Feb-05 6:30 
AnswerRe: web service limitations? Pin
Dave Kreskowiak16-Feb-05 7:03
mveDave Kreskowiak16-Feb-05 7:03 
GeneralLooping through a form... Pin
DaveFish16-Feb-05 2:44
DaveFish16-Feb-05 2:44 
GeneralRe: Looping through a form... Pin
Just Greeky Creek16-Feb-05 3:03
Just Greeky Creek16-Feb-05 3:03 
GeneralRe: Looping through a form... Pin
Jim Matthews16-Feb-05 3:11
Jim Matthews16-Feb-05 3:11 
i've never actually had to do this myself, but something like this should work:
Private Sub Button1_Click(Byval sender as Object, byval e as System.EventArgs) handles Button1.Click

for each currentControl as control in me.controls

   messagebox.show(currentControl.Name)

   if ((typeof currentcontrol is groupbox) orelse (typeof currentcontrol is panel)) then

      for each subControl as control in directcast(currentcontrol, groupbox).controls

        messagebox.show(subcontrol.Name)  

      next

   end if

next

end sub
by the way, just as a general rule, try to avoid the calls to legacy vb functions such as MsgBox as much as you can. most everything you can do (i can't think of anything offhand that can't be) with the legacy calls has been replaced by managed class functionality. i.e. Use the system.windows.forms.messagebox class instead of MsgBox function, and String.Substring instead of Instr etc.

hope this helps.



-jim
GeneralRe: Looping through a form... Pin
DaveFish16-Feb-05 3:48
DaveFish16-Feb-05 3:48 
GeneralRe: Looping through a form... Pin
Jim Matthews16-Feb-05 4:01
Jim Matthews16-Feb-05 4:01 
GeneralRe: Looping through a form... Pin
DaveFish16-Feb-05 4:11
DaveFish16-Feb-05 4:11 
GeneralRe: Looping through a form... Pin
DaveFish17-Feb-05 2:42
DaveFish17-Feb-05 2:42 
GeneralBUG In DateTimePicker Pin
Mohamed Ishak16-Feb-05 2:26
professionalMohamed Ishak16-Feb-05 2:26 
GeneralRe: BUG In DateTimePicker Pin
Dave Kreskowiak17-Feb-05 4:29
mveDave Kreskowiak17-Feb-05 4:29 
GeneralStop service remotely Pin
abohabeeba16-Feb-05 1:59
abohabeeba16-Feb-05 1:59 
GeneralMail events Pin
VirtualBasic15-Feb-05 21:58
VirtualBasic15-Feb-05 21:58 
GeneralRe: Mail events Pin
Dave Kreskowiak17-Feb-05 4:25
mveDave Kreskowiak17-Feb-05 4:25 
General.net simple IVR system Pin
manasrahfantom15-Feb-05 21:47
manasrahfantom15-Feb-05 21:47 
GeneralRe: .net simple IVR system Pin
rwestgraham16-Feb-05 11:16
rwestgraham16-Feb-05 11:16 
GeneralRe: .net simple IVR system Pin
manasrahfantom17-Feb-05 0:07
manasrahfantom17-Feb-05 0:07 
GeneralRe: .net simple IVR system Pin
Dave Kreskowiak17-Feb-05 4:22
mveDave Kreskowiak17-Feb-05 4:22 
General.net simple IVR system Pin
manasrahfantom15-Feb-05 21:47
manasrahfantom15-Feb-05 21:47 
GeneralScreen Control Pin
Member 173474015-Feb-05 21:15
Member 173474015-Feb-05 21:15 
GeneralRe: Screen Control Pin
Dave Kreskowiak16-Feb-05 2:05
mveDave Kreskowiak16-Feb-05 2:05 
GeneralRe: Screen Control Pin
Member 173474017-Feb-05 6:41
Member 173474017-Feb-05 6:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.