|
|
|
The Control
Here it is at last, as you can see it is possible to change the control's
appearance,
you can do this very rapidly and see right away the effect that your changes
made.

If you are working with a User Control that is private to a project just
close the User Control
code window and the object window and select the form of your project, a new
icon will appear
in the toolbox with the name ShadowLabel or what ever name you putted in the
User Control,
click on it and then put some shadow labels on you form and change some of
the settings.
If you have created a OCX project instead,
to able to view your control you must save the project, go
to the File menu, Add Project, Standard Exe. Close the User Control code and
object window,
now the process for testing the control are equal to those described for a
private User control.
You can save the second project and Visual Basic will ask for a name for it
and for a project
group, this will allow you to work with the two projects has one, if you
change something in the
OCX the standard project that we used for testing will be updated to reflect
that changes that
where made. You start the Visual Basic you should open the project group for
working instead
of the individuals projects, it will make it a bit easier on you.
When working on User Controls it is important to close the Code Window and
the Object Window
when you want to be able to insert a control on a form or to the control be
updated to reflect the
changes you made to it, if you don't close the windows Visual Basic will not
update the control.
[ Creating a blank User Control ] [ Designing the ShadowLabel control ] [ Loading the ActiveX Ctrl Interface Wizard ] [ Standard Properties ] [ Custom Properties ] [ Mapping Properties and Events ] [ Set Attributes ] [ The Wizard Code ] [ Changes to the Wizard code ] [ The Control ] [ Property Pages Design ] [ Property Pages in Action ] [ Making Our Custom Property Page ] [ The Final Touch! ] [ The End! ]
|
|
|