Hi
I have XP..
How do i change the shape of the normal command buttons of VB6.. i want to make them like XP has.. any OCX or DLL to be used ?
Just to make my project look better :)
Printable View
Hi
I have XP..
How do i change the shape of the normal command buttons of VB6.. i want to make them like XP has.. any OCX or DLL to be used ?
Just to make my project look better :)
Check out Wokawidget Component Suite in CodeBank. It contains a project called XP Button. You can create oddly shapped buttons with the standard XP theme regardless if you are running XP or not.
http://vbforums.com/showthread.php?t=328044
If you mean enableing XP theme, see this. (Images are still not up. :()
@RobDog888 : Excellent stuff.. but i cannot copy the whole code into mine.. looks very complex.. i have to show it as a project and its looking too complicated..
@iPrank : i didnt understand this.. can u explain.. or probably a project with it.. pics should have been there :(
I meant, when XP theme is enabled, your VB buttons will look like XP buttons.
http://www.freevbcode.com/ShowCode.asp?ID=3678
http://www.wiseworx.com/Images/XButScreenshot7.jpg
The easiest way, and probably a way that would be acceptable to the person reviewing your project, would be to replace the command buttons with image controls and place pictures in the images.
@iPrank
Now thats EXCELLENT!!! works like a charm.. repped for the info... and HACK too..
Just wanted to know.. can we change the color of forms also to XP theme like.. not much color platelets show in VB6.. and also the color when the mouse is over the button
also when the prog is not running on XP.. i hope it will not give any error..
If you mean the background color of the form, then use the BackColor property.
It accepts any valid color value.
VB Code:
Form1.BackColor = &HC86464 ' or any valid color ' or Form1.BackColor = RGB(100, 100, 200)
1) Do u know any place where I can get the color values of all colors?? especially XP color theme
2) If the prog is not running on XP ( regarding the manifest ).. suppose on 98 or something.. it will not give any error.. right??
3) Is there any way to put the color same for all the forms the same.. i mean if i dont want to put the same line of code again and again in each form.. is there any way to make all same at once..
4) Also can u look at this pic ?? can u tell me why does 1 button have edges and 2nd dosent??
http://img411.imageshack.us/img411/4829/buttonex8.gif
1. You can get the values out of the property grid.
2. No it will not error but it will not draw any XP theming at all.
3. No, you could loop through the Forms collection of your opened forms and set the color. Or manually set the color in the property grid for each form.
4. Because its in a frame. Its a bug. Place the button in a picturebox and set the box to flat and no border so it cant be seen but the button.
1) The property grid doesn't show all colors.. i guess..
It shows allot of colors. Can you elaborate more?
You could also put a shape object below your button or whatever and give the appearance of a shape. Might not be what you are looking for however, looks great with textboxes/listboxes etc.