|
-
Apr 8th, 2004, 09:09 PM
#1
Thread Starter
Frenzied Member
Subclassing or Something?
I have a class which contains like three controls... Let's say it contains a FlexGrid, a TextBox and a ComboBox.
I use this three controls to give the FlexGrid a feeling of being "Editable". So some of the Procedures of the controls have an equivalent inside of the class I created.
For example, I could have the Text_KeyPress which would need to be called from the Form in the Text1_KeyPress.
So this class saves me a lot of coding for each individual in the Form, but it still forces me to write in all the events I defined from the class and I was wondering if there could be a way to:
1.- "Trap" or "Catch" these Procedures and make the class handle them automatically.
2.- To raise the events after handling them (I know there is WithEvents and RaiseEvent, so I guess this can be done)
3.- To have the controls inside the class so I wouldn't need to add them to the Form something like "Dim Text as New TextBox" (Which I know won't work)
Well, that's it... Could you please guide me through this?
Thanks in advance.
We miss you, friend...  Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|