How do you get into the control class of say, a text box and fix it so that it won't display "text box 1" every time you put a new one on the form?
Am I the only one annoyed with this?
Printable View
How do you get into the control class of say, a text box and fix it so that it won't display "text box 1" every time you put a new one on the form?
Am I the only one annoyed with this?
http://msdn.microsoft.com/library/de...fccontrols.asp
Here is a start. The sample is for a button but the same thing goes for any control you are inheriting from.
If you're going to inherit and create your own TextBox control just for this inconvenience :D , then it's aint worth it but it does if you're going to change functionality or its look . ;)
Hi Phantom,
The MSDN link referrred to is, as was said by MasterBlaster, OK for a start, but I notice my reference book has 48 pages on the subject!!! (It's the core reference book by Francesco Balena aften refered to in this forum).
By the way MasterBlaster, I hope your programming knowledge is a lot more accurate than your signature!! :rolleyes: :rolleyes: :rolleyes:
Although I suppose an alcohol diminished brain does churn our answers faster, 'cos it doesn't stop to think!!
No Doubt. He didn't ask if it was worth it or not :)Quote:
If you're going to inherit and create your own TextBox control just for this inconvenience , then it's aint worth it but it does if you're going to change functionality or its look .
Erm, My Signature is a joke, My programming knowledge is what I use to feed my family. Do not doubt for one second that I don't take that seriously. ;)Quote:
Originally posted by taxes
Hi Phantom,
The MSDN link referrred to is, as was said by MasterBlaster, OK for a start, but I notice my reference book has 48 pages on the subject!!! (It's the core reference book by Francesco Balena aften refered to in this forum).
By the way MasterBlaster, I hope your programming knowledge is a lot more accurate than your signature!! :rolleyes: :rolleyes: :rolleyes:
Although I suppose an alcohol diminished brain does churn our answers faster, 'cos it doesn't stop to think!!
Yes, you are correct there are a lot cooler things about creating your own controls by inheriting from the standard .net ones. Dig around that area of msdn. There is plenty of info there to build some pretty sweet stuff.
I know that . You'll understand this when it comes to deployment stage . ;)Quote:
Originally posted by MasterBlaster
No Doubt. He didn't ask if it was worth it or not :)
I'll understand what when it comes to deployment? :confused:Quote:
Originally posted by Pirate
I know that . You'll understand this when it comes to deployment stage . ;)
Adding the dll to the package , then if it's copied to the program folder it's possible for deletion by the user or if it's added to GAC , then it's hell annoying .:rolleyes:Quote:
Originally posted by MasterBlaster
I'll understand what when it comes to deployment? :confused:
Ahhh. good. your just talking about the normal annoying stuff. I was praying there wasn't some new annoying stuff that was going to jump up and bite my arse. :cool:
so there's no way to actually alter the ORIGINAL control, huh? that sucks. I get annoyed with small things like the name of the control in the new textbox, the fact that a label control is slightly to tall at first. I'm a nit-picker :)
There is . haven't you checked the links above ?