Results 1 to 3 of 3

Thread: Cutting and pasting objects in run time

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    1

    Question

    Hi.
    I dont know what to do (at vb5.0). I have some objects that I use many times in the same form (an ocx control that I use to put on it other objects: images, picture box, etc). They appears in a sstab control. The matter is that I just want to make the controls one time and cutting them and pasting them every time I want, but I want to do it in run time. In this way I want to use the same code for my controls and don't putting them in an array. It is possible to do it?

    [Edited by Dipinto_Di_Blu on 06-03-2000 at 05:40 PM]

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    What do you mean by cutting and pasting? Controls can be moved with move method or top,left properties. you can use setparent api to move controls between wnd's.
    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 mean how people do on the Desktop? All you have to do is use a Drag statement in the MouseDown event and use MyControl.Move X, Y in the MouseUp event.

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