Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1530

(VB6) Replicate control interface or encapsulate control into UserControl

$
0
0
This a tool intended to ease the work of recreating the interface of a control.

It creates a *.ctl file with all the basic code.

It has two options:
1) Encapsulate the control into the UserControl
2) Just replicate the interface.

Name:  RepInt.png
Views: 25
Size:  8.4 KB

You need to add the control that you want to replicate/encapsulate inside that zone.
Also select the proper file from where it comes from (usually an OCX file) or leave with "VB6.olb" for intrinsic VB controls.

Notes: for the ones that do not want to write to the registry rename the SaveSetting line.

If the control has properties or methods that are named with VB reserved words, you'll need to manually change/fix that.

Also if there are properties that has indexes, you'll have to manually finish the code for storing them (ReadProperties/WriteProperties).

In the *.ctl file there are saved attibutes of the methods of the original control, if you copy and paste the code to another UserControl you'll lose them.
Attached Images
 
Attached Files

Viewing all articles
Browse latest Browse all 1530

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>