Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Using Control Arrays - a question...


Reply
 
Thread Tools Display Modes
  #1  
Old 04-08-2002, 09:34 AM
ROBSON_SP
Guest
 
Posts: n/a
Default Using Control Arrays - a question...


Hi

I'm using a control array (of Frames) for the first time. I'm trying to write a wizard for use within my VB app. What I'm struggling with is really simple: how do I add controls to individual frames (each frame has its own specific set of controls) at design time?

Thanks

Reply With Quote
  #2  
Old 04-08-2002, 09:40 AM
JDavis JDavis is offline
Junior Contributor
 
Join Date: Jun 2001
Location: Knoxville, Tennessee, USA
Posts: 239
Default

To add controls onto a frame at design time you need to draw the control onto the frame.

HTH

JDavis
Reply With Quote
  #3  
Old 04-08-2002, 09:42 AM
ROBSON_SP
Guest
 
Posts: n/a
Default

Hi

What I should've said was that I'm having difficulty bringing each individual frame to the 'top' i.e. frame(0) is the only one I can seem to draw onto in design mode.....


Reply With Quote
  #4  
Old 04-08-2002, 09:47 AM
JDavis JDavis is offline
Junior Contributor
 
Join Date: Jun 2001
Location: Knoxville, Tennessee, USA
Posts: 239
Default

Ahh, you can right click on the frame and 'send to back'
this should bring the one that was under it to the top.
Is this what you are needing?

HTH

JDavis
Reply With Quote
  #5  
Old 04-08-2002, 09:49 AM
Robby's Avatar
Robby Robby is offline
Code Factory

Retired Moderator
* Expert *
 
Join Date: Jan 2001
Location: Montreal, Ca.
Posts: 5,565
Default

You're saying that you have a few frames and in each frame you have a few controls, right?

If so, you can make all the frame invisible untill you need them, make it Visible when its time to use it. Also you can use Left and Top to reposition each frame.
__________________
Visit...Bassic Software
Reply With Quote
  #6  
Old 04-08-2002, 09:51 AM
Robby's Avatar
Robby Robby is offline
Code Factory

Retired Moderator
* Expert *
 
Join Date: Jan 2001
Location: Montreal, Ca.
Posts: 5,565
Default

As JDavis mention you can use 'send to back' at design time...

You can also use the Zorder method at run-time, but if you have many frames it could get messy.
__________________
Visit...Bassic Software
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->