Login  
Search All Forums
Dart Home | Custom Development Reply | General Questions Topics | Forums   
AuthorForum: General Questions
Topic: PRB: How do I use your controls in VB without a Form?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted May 24, 2002 1:11 PM

The following was originally a KnowledgeBase article from an older version of our Support Forum:

Symptoms: You want to use a Dart control without placing it on a form.

Cause:

Resolution:
This example shows how to create the Dart TCP control:

1) From the VB menu select Project | References

2) Select the Dart TCP, UDP and Daemon Controls
NOTE: If VB says the location is DartSock.oca, it means that you already have the control added to the toolbox. If you want both, that's OK, but DartTelnet.Dll has to be top priority in order to use it as a reference.

3) Add the following code to the top of your module:

Private Withevents Tcp1 as Tcp

4) When you want to create the control, use the following code:

Set Tcp1 = New Tcp

5) When you want to unload the control use the following code:

Set Tcp1 = Nothing






 



More Info:

clammer

From: Cirencester, United Kingdom
Posts: 7
Member Since: 10/07/02
posted October 7, 2002 9:21 AM

Then after doing this, with the Zipite component for example, how do I run the QuickZip function etc.

If ZipLite was to go on a form, I'd just have to type Ziplite.QuickZip etc. but if instantiated using the method detailed here, I can't see how I then use the QuickZip functionality.

Thanks in advance for your help,

Dave Samworth
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted October 7, 2002 10:52 AM

Hi Dave,
You would use the control in the same way; as if it was placed on a form. There is no difference.
-ken
Reply | General Questions Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX