Tuesday, August 24, 2010

How do you make custom controls and buttons in Visual Basic 2008?

Some programs seems to have their own controls and buttons other than the standard button you use in VB 2008. For example, a program might have a circular shiny blue button instead of a rectangular standard button.





Can you make custom buttons in VB 2008? Or can you do that only in another programming language? Also, can you add icons to the buttons too?How do you make custom controls and buttons in Visual Basic 2008?
I think you can override the design and paint methodologies of a control.. (talking about Windows Forms) but since you're using VB 9 then you might consider using WPF in creating controls with custom effects.How do you make custom controls and buttons in Visual Basic 2008?
There is a convenient library of ';set(Icontypehere)Icon(ImageIcon i) functions in Java Swing.





You may have something similar in Visual Basic. Though if you want to make programs that will eventually be able to run as a .exe file on other people's computers, I suggest you switch to java: because Basic is exactly that, basic.





Feel free to email me if you don't already know where to get set up.
maybe u can try control class (http://msdn.microsoft.com/en-us/library/鈥?/a> ) (but it will be super complex)


for a custom button...i would use a PictureBox with click,MouseHover,MouseLeave events instead


button with icon...change the Image property of a regular button
You can make custom controls in VB but not in the free express versions.

No comments:

Post a Comment