Thanks for the feedback. I'm not sure I have explained things correctly.
I'm trying to setup a simple input box. I know this would be far better off
as a control, but it seems a simple way to learn the inheritance thingy to
start with. When complete it wouldn't take much to convert it anyway.
I want a class, clsInput. This class will have several properties,
UpperCase, NumericOnly, TextOnly, Password, Prompt, etc. And probably a
single function GetInput to return the text entered.
I want the class to load a form and set the input parameters, then accept an
input and return the text entered, ie.
Dim str As String
Dim inp As New clsInput
inp.TextOnly = True
inp.Prompt = "Give me some text!"
str = inp.GetInput
I've managed to half the code between a class and a form, but this seems a
little daft, why have a class and a form if you can do exactly the same with
a form and a couple of public variables.
I would like the class to be able to create the form and the form controls,
(which I can do easily) and have the class control the form while displayed.
The only other problem is, as the form has to be 'ShowDialog' how do I
control clicks and key presses from the class when the form has Modal
control?
Cheers,
Tull.