|
-
Aug 16th, 2000, 06:20 PM
#1
Thread Starter
Junior Member
Hi all...
I'm trying to create an app where you press a button and it creates (Load object) up a frame that includes textboxes and buttons (I did it this way so that I can load this up as many times as I need). The problem is that I want to be able to load other objects from within that frame after that frame's been loaded up. I noticed that if I load up the frame earlier than any of the controls within that frame, that control doesn't show up (I'm assuming it's somewhere behind the frame). So basically, how can I load up other objects from within a frame that was loaded up at run-time?
Any help would be appreciated. Thanks in advance.
PS- I'm using VB 5.
-
Aug 16th, 2000, 06:28 PM
#2
transcendental analytic
Code:
Set Text1.Container = Frame1
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Aug 16th, 2000, 06:33 PM
#3
You must position it before it can become visible.
Code:
Set Text1.Container = Frame1
Text1.Move 0, 0
-
Aug 23rd, 2000, 10:07 AM
#4
Thread Starter
Junior Member
Thanks kedaman and Megatron.
I really appreciate your help.
However, I have another related problem. I'm trying to unload an object after a combobox_click event, but it's giving me an "out of context" error. But when I do the unload from anywhere else, say on a button_click, it works perfectly. Do you know why that's happening? Thanks.
-
Aug 28th, 2000, 04:11 AM
#5
transcendental analytic
Whats your code for the click events?
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Aug 28th, 2000, 04:49 AM
#6
Hyperactive Member
You can't unload controls in the combo click event. It's a documented error, I've had it before, and after a little search in MSDN I found out it's not allowed to unload control in the combo click. I ended up with writing my own combo, using a textbox and a listbox. In that click event it did work.
-
Aug 28th, 2000, 08:04 AM
#7
Thread Starter
Junior Member
Thanks for the info Crazy D.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|