By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,041 Members | 1,056 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,041 IT Pros & Developers. It's quick & easy.

Create a user textbox (in a Windows form)

P: n/a
How can I create a new control, let's say a text box with a fixed size and
the code to check a valid date is entered, and then insert this new control
in the tool box ? Thank you.
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Create a user control

* From your project name in Solution Explorer Right-Click, and choose Add
New Item, Choose 'User Control'

* Drag a Text box to the design page

* Double Click on the TextBox, and then choose the validate event from the
list of events

* Put your validation code in here.

* Once you are happy with it, Save and close your control, then Choose Build
| Build 'MyProjectName'

* Notice from the My Controls Tab on the ToolBox you will see your control
appear, you can drag this to your form for use.

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me

Time flies when you don't know what you're doing

"Gilbert Tordeur" <gi*************@fr.york.com> wrote in message
news:ua**************@TK2MSFTNGP11.phx.gbl...
How can I create a new control, let's say a text box with a fixed size and
the code to check a valid date is entered, and then insert this new control in the tool box ? Thank you.

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.