Results 1 to 7 of 7

Thread: New Instance

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2002
    Location
    Tanzania (Arusha)
    Posts
    17

    New Instance

    hello guys.. whts up
    could plz anyone tell me on how to create a new instance of a form controll on runtime? for example.. when i click on the form i want it to create a new command everytime i click thts it....
    Muz

  2. #2
    Member CrazedWombat's Avatar
    Join Date
    Oct 2002
    Location
    asylum
    Posts
    47
    hey
    im a little confused....are u saying that when u click a button on a form u want to add another button? or am i reading u call wrong?
    Wombat

    "I like to go to the schoolyard where i can watch the little kids jumping and screaming....but they dont know im using blanks"

    "Before you set yourself on fire, remember to take off your shoes... nothing smells worse than burning rubber."

    "They advertise that certain laundry detergents can take blood stains out of clothes, i say that if you have blood stains on your clothes, maybe your laundry is the least of your worries."

    Sometimes when I'm driving around I see a sign that says, CAUTION: SMALL CHILDREN PLAYING. I slow down, and then it occurs to me: I'm not afraid of small children.

    "My programs dont have bugs, they have random features" - MisianThrop

    "The good thing about our ticket to the future is that it's always blank" - Trigun

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Oct 2002
    Location
    Tanzania (Arusha)
    Posts
    17

    hey

    yes crazedwombat you are just right thts wht i want to happen.. is it really possible?
    Muz

  4. #4
    Junior Member MHD's Avatar
    Join Date
    Nov 2002
    Location
    The Magical World of the Internet
    Posts
    22
    First off: why do yo want to add buttons. is it so you can customize a control box or something?
    Vowing to help the helpless, befriend the friendless, and to defeat the... um...defeatless!!

  5. #5
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    I'm not a 100% sure what you want to do. But look at this little silly thing I did, some years ago. It has an array of controls, and is loading one more of that control in a loop, making a loading sequence. Not something you would actually do. But you could use the same technique to make an other instance of a Command Button in an array. But I'm not sure if this would help you. Try it out, and let me know if you need some help or anything...
    Attached Files Attached Files

  6. #6
    Member CrazedWombat's Avatar
    Join Date
    Oct 2002
    Location
    asylum
    Posts
    47
    hey
    yea, why would u want to add a command button. learn from noteme's code...it should be good enough, but uh...yea, its possible...but i dont know the exact code...sorry.
    Wombat

    "I like to go to the schoolyard where i can watch the little kids jumping and screaming....but they dont know im using blanks"

    "Before you set yourself on fire, remember to take off your shoes... nothing smells worse than burning rubber."

    "They advertise that certain laundry detergents can take blood stains out of clothes, i say that if you have blood stains on your clothes, maybe your laundry is the least of your worries."

    Sometimes when I'm driving around I see a sign that says, CAUTION: SMALL CHILDREN PLAYING. I slow down, and then it occurs to me: I'm not afraid of small children.

    "My programs dont have bugs, they have random features" - MisianThrop

    "The good thing about our ticket to the future is that it's always blank" - Trigun

  7. #7
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    And an other thing I thought about is, how are you going too put some smart code under your command buttons? I can't think of any smart way of putting code under them, that a textbox and one command button couldn't do alone....

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