Creating Custom controls in VB.NET

I really need some help when it comes to creating custom controls. I need to know what to do to get started. If someone could give me like a short tutorial or something of how to start then that would be a big help. Thanks!

Answer this question

Creating Custom controls in VB.NET

  • tjjang

    http://msdn2.microsoft.com/en-us/library/ms171725.aspx

    Thats a link to custom controls in the MSDN library...I however have always liked osmotic exposure or the learn by doing approach...open VS and choose a new project and under project types select custom control...it should open up to a design surface...simply drag a textbox to that surface...and wha-la you have created a custom control...now granted there is no speration between your control and a textbox at this time...but if you write a few methods you could create a custom textbox that only accepts numeric input....

    HTH



  • YdN

    theres also a pretty good walktrough in the Visual Studio Help section the to get it click

    Help then click Contents.

    The help screen will appear.

    Now click on the + sign in the following items in this order to expand their respective node

    Development Tools and Languages
    Visual Studio
    Visual Basic
    Visual Basic Guided Tour
    Visual Objects: Creating your first user control

    There are 4 or 5 articles here that walk through the designing and testing of making custom user controls. I went through it and its well written considering its Microsoft documentation.



  • Creating Custom controls in VB.NET