Results 1 to 5 of 5

Thread: [02/03] Interactive

  1. #1

    Thread Starter
    Hyperactive Member ahmad_iam's Avatar
    Join Date
    Jun 2005
    Location
    Pakistan
    Posts
    265

    Lightbulb [02/03] Interactive

    How we can make custom interactive controls like button, textbox, and other controls that we use to make our application. You have seen many application that have many controls of different shapes like in window media player, the play button something like a circle and an arrow inside it. How and what is the procedure of doing that. Explain in more detail so that I can able to make own interactive controls.

    And also can I get controls template and use them in my project.

    Imran Ahmad Mughal
    Thanks
    "Visual Studio .NET 2005/.NET Framework 2.0"

    The eyes are the greatest telescopes, one will ever need to study the universe. Let the heart be the tripod, the mind be the shaft, then let the eyes become the lens of that great telescope of which God gave to us all.

  2. #2
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    Re: [02/03] Interactive

    A good place to start is to first learn the basics, like Inheritance, which allows you to base your control on some sort of existing control. Say you want to make a custom textbox, then you would create a control that inherits the textbox, then add the extra functionality you want into it. A great article to start is:

    "Developing Custom Windows Controls Using Visual Basic .NET"
    http://msdn.microsoft.com/library/de...rlsampover.asp

    In order to change the look of the control, you would have to look at owner drawing, or code the Paint event using a graphics object and GDI+. I haven't messed with owner drawing, but I am sure you can find several results if you search for it. A basic tutorial on GDI+ can be found here:

    "A Beginners Guide To GDI+"
    http://www.bobpowell.net/beginnersgdi.htm

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [02/03] Interactive

    Creating controls with a unique look basically involves drawing the control yourself using GDI+. Here's an explanation on MSDN, but you'd be able to find articles all over the Net just by searching with the appropriate keywords. Many relative beginners get really excited about creating their own controls because it will make their application look flashy. In my opinion it is best to leave things like this until you have a solid understanding of the basics. What's the point of a flashy coat of paint if the engine won't run, or can't get out of first gear. To each their own though.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    Re: [02/03] Interactive

    Thats the link I was missing JM I can add that to my list of handy bookmarks. Somehow I missed that one in my search

  5. #5
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: [02/03] Interactive

    Quote Originally Posted by gigemboy
    A good place to start is to first learn the basics, like Inheritance, which allows you to base your control on some sort of existing control. Say you want to make a custom textbox, then you would create a control that inherits the textbox, then add the extra functionality you want into it. A great article to start is:

    "Developing Custom Windows Controls Using Visual Basic .NET"
    http://msdn.microsoft.com/library/de...rlsampover.asp

    In order to change the look of the control, you would have to look at owner drawing, or code the Paint event using a graphics object and GDI+. I haven't messed with owner drawing, but I am sure you can find several results if you search for it. A basic tutorial on GDI+ can be found here:

    "A Beginners Guide To GDI+"
    http://www.bobpowell.net/beginnersgdi.htm
    Wow Inheritence is cool

    Thanks for the sweet link!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width