Create a paramter that will accept both Textbox and Richtextbox control and .NET
(Saturday, September 04, 2004)
Found the following interesting discussion in the Newsgroups:
Create a paramter that will accept both Textbox and Richtextbox control by:Anonymous
| how can I make a parameter accept etiher richtextbox or textbox controls? currently My parameter is (ByVal txtBox as system.windows.form.textbox). This creates an error if the txtBox is of type RichTextBox.
| | | Reply: by:Philip Rieck
| | | Make the parameter type "Control", then in the method, be sure to validate that the type is correct... (Control will allow any winform control, like a progressbar)
| | | Reply: by:Anonymous
| | | Thanks :)
|
Posted by Xander Zelders

|
0 Comments:
Post a Comment
<< Home