|
-
Mar 23rd, 2004, 07:50 PM
#1
Thread Starter
New Member
Controls
How do I combine 2 controls into one and still maintain the design time features of the individual controls. Basically I am trying to put a label and text box into a pannel and making a custom control/control. Once I drag and drop the new control on my form I still should be able to see the design time features of textbox,label etc like properties/methods/events etc at design time. Supposed on a form that I dropped my control say I do not want a textbox for some reason the user should be able to delete it by selecting the textbox and hitting the delete button as we do in visual studio designer/Editor 2003.
I would appreciate if some one has a sample code or point me in the right direction.
-
Mar 24th, 2004, 01:27 PM
#2
PowerPoster
Hi,
I think you have not received any response because your question is not clear.
First of all, are you saying you want to create a custom control which other programmers will use, or just that you want the user to be able to delete a control in run time?
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
-
Mar 24th, 2004, 08:44 PM
#3
Sleep mode
Project menu -----> Add User Control .
-
Mar 25th, 2004, 04:07 AM
#4
PowerPoster
Hi Ganga,
The e_mail you sent clarifies your requirements completely. I am posting it below:
"I am not sure if I want a custom control or not. But what I want is some kind of generic code or componet or User Control or custom control where I will place a label and texbox in a pannel where I handle the default look and behaviour or font etc.
And then once I have the generic code or control I would like to place it in my Form and still should be able to access all events/methods/properties at the design time on the destination form.
My plan is to create a generic code or component so that the developers would drop it on the form with out worrying about the look and behaviour of each control."
Yes you can do this. I am spending the day away from my office, so others will probably respond more quickly (hence my posting your message). Bye for now. I will see what responses you have had by tomorrow.
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|