General information
Title:
Custom Controls - Some Basics
I am very confused, perhaps because I'm thinking in terms of VFP, and I could use some help please. I'm in c# and .NET.
1. I want to create mytextbox based on class Textbox. Am I making a a usercontrol or a customcontrol to do this? The answer may depend on #2 below.
2. When I drag/drop mytextbox onto my new Window Form, I want to be able to access mytextbox.Text and other properties of the base class - with usercontrol it seems the underlying textbox properties are not accessible in the Properties or in code.
Now I understand that with usercontrol I'm putting the base Textbox into a container, but how do I get into that container in code and in Visual Studio at design time (i.e. setting mytextbox.container.textbox.text?).
Thanks for helping the utterly confused. The c#/.NET documentation is terrible. Perhaps I should switch to Rbase5000! Again, thanks for your help.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only