Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding Controls Ar Runtime
Message
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00687610
Message ID:
00785049
Vues:
55
Hi Eric.

I have put together a small exmaple of what I'm trying to do.

I have put a new zip file here



Overview

There is a control named crlContainer. It will contain instances of the
control crlMyLabel.

crlContainer has a sub AddLabel which accepts 1 parameter - sCaption.
Look in the form.load.

crlMyLabel has a label control on it, and has 1 property, 'Caption', which
sets the caption of the label. There is 1 event, Clicked, which is called when
the label is clicked.


Problem 1

I'm trying to dynamically add instances of the crlMyLabel to crlContainer
at runtime.

In the AddLabel sub in crlContainer, I do not see a reference to the custom
property 'Caption' - seem my comment there.


Problem 2

The click event does not fire in ctlExtender_ObjectEvent


I'm not even sure that I'm his the right way. Please ets me know what you think.
Thanks for all your patience.

Kevin
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform