Textbox Class for Toolbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • elmbrook
    New Member
    • Feb 2010
    • 15

    Textbox Class for Toolbox

    Hi

    I am starting a project and am wanting to create a custom Toolbox class.

    It is a simple textbox with the background colour set to grey.

    I am not sure how to create that class and upload it to the Toolbox.

    I would like to use this class on all my forms but have the ability to change the background colour to another colour if it is needed. I would like to drop this custom textbox from the toolbox. If I make a change to the toolbox class it is inherited through the project.

    Any help is appreciated as I am relatively new to C#.

    Thanks
  • alexis4
    New Member
    • Dec 2009
    • 113

    #2
    Hi elmbrook!

    Google search containing your keywords + msdn could be proved very usefull!
    Within a few seconds, I found 2 links which cover your question:




    They both are walkthroughs, so a few hours are enough to get a complete picture of the solution you are asking.

    Comment

    • elmbrook
      New Member
      • Feb 2010
      • 15

      #3
      Thanks Alexis

      That is a great start.

      I am following this article http://msdn.microsoft.com/en-us/libr...6x(VS.80).aspx

      I have created a Windows Forms Control Library with the button in it.

      However, when I get to the second part of the article when I try to add the control it does not show up in my project reference.

      5. Click the tab labeled Projects. Your ValueButtonLib project will be listed under Project Name. Double-click the project to add the reference to the test project.

      If it is not in my project reference, how can I add it?

      Thanks

      Comment

      • tlhintoq
        Recognized Expert Specialist
        • Mar 2008
        • 3532

        #4
        However, when I get to the second part of the article when I try to add the control it does not show up in my project reference.
        Hit F5 to run your application one time. Then close it. Its a weird behavior of VS.


        [THREAD=881136]The same thing is mentioned in this tutorial.[/THREAD

        Comment

        Working...