Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Interface and Graphics > Dynamic control arrays and frames


Reply
 
Thread Tools Display Modes
  #1  
Old 07-13-2003, 06:02 PM
Chessie Chessie is offline
Newcomer
 
Join Date: Jul 2003
Location: Chesterfield, England
Posts: 4
Default Dynamic control arrays and frames


I have a form with a frame containing a command button which is index (0) of a control array.
When I click the command button I create (Load) the next command button in the array, which is displayed within the frame.
How can I make the next command button appear at a specified position outside the frame on the form?
If i try to specify a coordinate location outside the frame the dynamically created command button does not appear!

Any help would be greatly appreciated
Reply With Quote
  #2  
Old 07-13-2003, 06:46 PM
PWNettle PWNettle is offline
Verbose Coder

Retired Moderator
* Guru *
 
Join Date: Dec 1999
Location: Phoenix, Arizona
Posts: 3,011
Default

Set the Container property of the newly created command button to be the form otherwise its container is the frame, since it has the same properties as the button that's on the frame which you're essentially copying.

For ex:

Code:
Set Command1(NewIndex).Container = Form1

Paul
Reply With Quote
  #3  
Old 07-14-2003, 03:02 AM
Chessie Chessie is offline
Newcomer
 
Join Date: Jul 2003
Location: Chesterfield, England
Posts: 4
Default

Quote:
Originally Posted by PWNettle
Set the Container property of the newly created command button to be the form otherwise its container is the frame, since it has the same properties as the button that's on the frame which you're essentially copying.

For ex:

Code:
Set Command1(NewIndex).Container = Form1

Paul



Thanks Paul!

Your solution has sorted the problem!

Take Care

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Last Ditch attempt at Control Arrays! techskool General 0 02-10-2003 07:52 PM
Control Arrays (again).... ROBSON_SP General 1 04-09-2002 06:11 AM
Using Control Arrays - a question... ROBSON_SP General 5 04-08-2002 10:51 AM
2 Dimensional Control Arrays diver General 3 10-11-2001 06:54 AM

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
 
 
-->