Results 1 to 7 of 7

Thread: Intrisic Controls

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2000
    Posts
    17

    Question

    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.


  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.

  3. #3
    Guest
    You must position it before it can become visible.
    Code:
    Set Text1.Container = Frame1
    Text1.Move 0, 0

  4. #4

    Thread Starter
    Junior Member
    Join Date
    May 2000
    Posts
    17
    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.



  5. #5
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.

  6. #6
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386
    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.
    Hope this helps

    Crazy D

  7. #7

    Thread Starter
    Junior Member
    Join Date
    May 2000
    Posts
    17
    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
  •  



Click Here to Expand Forum to Full Width