PC Review


Reply
Thread Tools Rate Thread

Create a user textbox (in a Windows form)

 
 
Gilbert Tordeur
Guest
Posts: n/a
 
      26th Aug 2004
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.


 
Reply With Quote
 
 
 
 
One Handed Man \( OHM - Terry Burns \)
Guest
Posts: n/a
 
      26th Aug 2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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.
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically add a textbox to a user form based on user requireme =?Utf-8?B?QnJpdGU=?= Microsoft Excel Programming 4 7th Apr 2007 11:37 PM
Create a User TextBox? Dave Elliott Microsoft Access Forms 2 5th May 2005 04:35 AM
How to create a NEW! textbox in a form using VBA? Marcel Drost via AccessMonster.com Microsoft Access Form Coding 8 17th Oct 2004 12:03 PM
dyynamically create a form with a textbox =?Utf-8?B?TGFuZQ==?= Microsoft ASP .NET 0 16th Jun 2004 06:07 PM
Dynamically create form or windows user control for database table Aaron Prohaska Microsoft Dot NET Framework Forms 2 6th May 2004 06:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:34 AM.