-
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.
-
Code:
Set Text1.Container = Frame1
-
You must position it before it can become visible.
Code:
Set Text1.Container = Frame1
Text1.Move 0, 0
-
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.
-
Whats your code for the click events?
-
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.
-
Thanks for the info Crazy D.