Why Can't I Figure This Out - Creating Objects During Runtime 
Author Message
 Why Can't I Figure This Out - Creating Objects During Runtime

I have this silly idea in my head to write an application that allows
a user to place text or graphics on in a window during runtime.

However, I can't seem to find a book or reference on how to do it.

The application would work something like this:

User left-clicks mouse to make a marquee.

Up pops window asking what kind of object it is supposed to be.

User pastes graphic or text into marquee.

User is then happy to send programer money for such a cool piece of
software.

OK, so

1.  How do I set the application up?  

2.  What kind of control do I use?

3.  What is the air speed velocity of a coconut-laden swallow?

Any help would be greatly appreciated.  All I need is a hint or two
and I can figure the rest of it out....

Thanks in advance.

Tony



Sun, 24 Oct 1999 03:00:00 GMT  
 Why Can't I Figure This Out - Creating Objects During Runtime

.> I have this silly idea in my head to write an application that allows

Quote:
> a user to place text or graphics on in a window during runtime.
.> OK, so

> 1.  How do I set the application up?  

Your form must contain the control that you want to create already on it.
This is your "master" and has an index of 0 and should be not visible.  Now
your code to allow the user to add an control looks something like this....

sub addcontrol()
  load Master(Index)   ' Master is the name of your "Master" control.
Index is a value > 0.
  Master(Index).visible = true  ' When a control is created at run-time it
is always invisible.
end sub

Quote:
> 2.  What kind of control do I use?

That's up to you.  You can copy any control as long as a "master" is placed
on the form at design time.

Quote:
> 3.  What is the air speed velocity of a coconut-laden swallow?

African or European?


Sun, 24 Oct 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Creating object during RunTime with Visual Basic 5.0 CCE

2. Runtime error '429', ActiveX can't create object

3. Can't figure out why this code produces error

4. HELP : runtime error 429 ActiveX can't create object

5. ActiveX componet can't create object (Runtime Error 429)

6. RunTime Error: 429 ActiveX Can't Create Object

7. Automation server can't create object - Microsoft JScript runtime (0x800A01AD)

8. ActiveX can't create object, Runtime 429 VB 6.0

9. Automation server can't create object - Microsoft JScript runtime (0x800A01AD)

10. Solution for runtime Error 429 ActiveX Can't Create Object for CR9 with VB6

11. 'Canned' data in VB program

12. Can't modify code during runtime anymore?

 

 
Powered by phpBB® Forum Software