|
-
Apr 9th, 2006, 08:53 PM
#1
Thread Starter
Hyperactive Member
[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.
-
Apr 9th, 2006, 09:10 PM
#2
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
-
Apr 9th, 2006, 09:12 PM
#3
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.
-
Apr 9th, 2006, 09:14 PM
#4
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
-
Apr 9th, 2006, 09:29 PM
#5
Re: [02/03] Interactive
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|