 |
 |
I tried doing it for the Listbox followed same steps but when i drag it in my new application after adding dll reference my visual studio hangs and restarts.Can you please help me with what would be the reason behind it?
|
|
|
|
 |
Hi
i have follow same step which you have write down, and add control on toolbox but when i have drag it on form it is not add on form or not visible. please suggest
and thanks in advance.
|
|
|
|
 |
How to combine Textbox with Label in the one custom controls in C#
|
|
|
|
 |
You're not explaining any code whatsoever. I understand what everything does but I can imagine beginning coders ask themselves "What's the paint event?"
|
|
|
|
|
 |
Hi nice tutorial!
I managed to transform it for VB. I tried it and everthing works well. My first control ! But if i set tranparency to 255 for each of the colors the label text for the button is not readable. How can i set the label text on top of the colors so it would be readable in any setting of the transparency?
|
|
|
|
 |
Did a little workaround to fix the issue. implemented new private properties m_text and m_textAlignment and updated the onpaint with DrawString(m_text...) after FillRectAngle
|
|
|
|
 |
Very nice and easy to comprehend article. It was my first time going at creating a custom control . I always thought it was a difficult task but this made me look into playing with it even further. Thanks
a geek by day, a freak by night
|
|
|
|
 |
Good Article to learn
|
|
|
|
 |
Easy to understand and very useful!
|
|
|
|
 |
http://csharpdemos.blogspot.in/2012/09/creating-custom-control-textbox-in.html
|
|
|
|
 |
very good very good
|
|
|
|
|
 |
sh*t man this is a complete article in codeproject
|
|
|
|
 |
it is not your business baby gaga
shut down youreself before i do that
|
|
|
|
 |
f*** your ass
|
|
|
|
 |
dahaneto gayidam sag sende lashgush zan jende sagggggggg
kun pashm kuni lashmaste divane
kuniiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
lashiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
shaskeshhhhhhhhhhhhhhhhhhhhhhhh
|
|
|
|
|
 |
Great article ! very usefull !! thanks.
|
|
|
|
|
 |
Thanks - exactly what I was looking for +5
modified 29-Oct-11 12:30pm.
|
|
|
|
 |
Its gud and simple one easy to understand.
|
|
|
|
|
 |
does it just work for VS professional version?
|
|
|
|
 |
Hi,
I have just make a custom control and I drag it into a win form.
Everything run well, but when I enlarge the window, the custom control and other normal control just 'move' to the center of the window.
I want all of the controls to enlarge like it container, so I add Anchor to all the control, setting them all anchor top, left, right and bottom. And the worse thing happen. The normal controls overlap on the custom control I make. I think that happened because I had overridden the Paint function of the custom control to draw my own image but I don't know how to solve it. Can you give me some hint for it?
|
|
|
|
 |
good tutorial
|
|
|
|
 |
In VS 2008 Pro, I couldn't find the Windows Control Library template; from running through this example, the Windows Forms Control Library template seems to be functionally the same.
If I'm wrong, or just overlooking something, please correct me.
Also, I got a an error in VS 2008 when compiling:
Error 1 Missing partial modifier on declaration of type 'ctlCuteButton.cuteButton'; another partial declaration of this type exists C:\Documents and Settings\...\My Documents\Visual Studio 2008\Projects\...\Project1\ctlCuteButton\ctlCuteButton\cuteButton.cs 12 18 ctlCuteButton
Changing to the following fixed it, but I'm too noobian to understand the error:
public partial class cuteButton : System.Windows.Forms.Button
modified on Tuesday, March 17, 2009 10:19 PM
|
|
|
|
 |
That is very good...
Thanks...
|
|
|
|
 |
Very simple and clear tutorial. Thanks!
|
|
|
|
 |
I want Know an application in ".NET ,C#" Environment which can have the facility for the user to include ontrols during runtime.
Raghavendra
|
|
|
|
 |
I just wonder can we load the custom control programatically. If yes, can you show me. Thanks.
Vinh
Vinni
|
|
|
|
 |
Nice nice, piece of cake thanks to your article.
|
|
|
|
 |
Hi Alexandr,
Thank you very much for writing this article. I needed a quick intro to making a custom control, and this fit the bill. I appreciate your help.
Mike Goldweber
|
|
|
|
 |
Hi,
I am trying to develop a transparent control.It is having a picture box with a png image and transparent background.I have set the background color of the control to transparent.
Now, it is working if I place it on a panel or a form. But, it is not working as a transparent control if I place it on another control such as list view or month calender.
If some body can help me,I would be thankful to him.
|
|
|
|
 |
many thanks ! hope more greate articles!
|
|
|
|
 |
Very informative article, I wish others have done the same, keep it simple and yet useful.
thanks!!
Zhi
Zhi
|
|
|
|
 |
Hi anybody,
can you show me a sample about Custom button for winCE?
I just need overive method set/get Text and set/get Color of button
Thanks,
Lan
|
|
|
|
 |
how can i make the Contextmenustrip as scrollable control if that control has more than 50 menuitems
jeyaseelan.A
|
|
|
|
 |
Help, please, how lock to change the font and colour?
|
|
|
|
 |
I tried to write the same code for textbox , but it did not work. Do i need to do anything else to make it work for the Textbox?
|
|
|
|
 |
Hi.
Thanks fro the nice example on how to create your own controls.
I want to create a 3rd party control but I don’t know how to distribute it. The way you added the new control to the toolbox works fine but that is not exactly what I want.
Is there a way that I can use to make it very easy for the buyer/user of my components to install it with out being inside Visual Studio 2005? I have looked on the net but could not find anything on this topic.
The one article helped my to create a nice VSI / VS content installation but it did not add my control to the Toolbox after installation.
Thanks for your time and hope to hear from you soon.
Bert.
|
|
|
|
 |
In example, I know Usercontrol base but i don't using it for a webform.
can You help me please send it for me by My mail [email protected]
thanks.
Cuongdv
|
|
|
|
 |
Very nice and good tut! :->
|
|
|
|
 |
hi,
i m working on PDA in c#.net compact framework. i m wasting lot of time on a point which is as follows:
I need a panel control which may contain as many number of textboxes and label controls as defined. Once i create an instance of Panel it should give me acces to all the textboxes and label it. Further i want to populate those textboxes from a database. Reason why i m trying to create a strip or panel because it represents a complete row of a record and it will be created N number of time on the PDA form depending upon the number of records need to be displayed.
Their r lot of issues in creating such Panel control for a PDA in CFW.
PLZ help
|
|
|
|
 |
How to change a ToolBarButton on a ToolBar to a custom
control? For example. change a ToolBarButton to a ComboBox?
If I use ToolBar.Controls.Add(), I can add a control to the ToolBar.
but the layout it isn't what I expected. Because I want to replace
a ToolBarButton. Can anyone give me a simple sample code? Thanks
Leon
|
|
|
|
 |
Hi
This is a greate article.Thanks
It helps me alot to learn how to customize or enhance the contrls. I try to change the background color of a toolbar control.Or u may say that I want to enhance the toolbar control, so that it supports backcolor property.But with the techique present here does not work for Toolbar control. Remember I inherit my class from ToolBar Class.
Is is a way to do this?
|
|
|
|
 |
hi,
u really helped me a lot,as i am a beginner to c#,i found your article very useful for my course work,especially in doing my project in which i need to create a customized button showing images of smileys on it..
any body have an idea how to load images on to a drop down button
Thanks in advance
|
|
|
|
 |
OIne of the things that doesn't stop surprising me is the simple fact that the code, for the eventhandling of any control I place on a form, is placed on the form and not within the control itself.
This breaks the rule of self-containmentship that is part of the OOP concept.
Does anybody around here know of a way to keep the code for objects within the objects itself?
For those who are familiar with design patterns: I am trying to implement a "chain-of-responsibility" design here in my custom controls as that is the most flexible way of dividing UI and behavior classes.
Any ideas will be welcome.
|
|
|
|
|
 |
I find it SO annoying that I cannot have a custom control in the same project as my windows form!!! WTF is up with THAT!??????!!!!?? I want to add it at "design-time", but, if it's not in another assembly, it won't be added to the list, right? I've seen it there a few times, in different projects, though... Any ideas?
|
|
|
|