Change appearance of checkbox in datagridview+vb.net

RIAS
RIAS used Ask the Experts™
on
Hi,
I am urgently looking for changing the appearance of checkbox in vb.net 2005
Anu suggeations are appreciated

Cheerx
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Have a look here:
http://ryanfait.com/resources/custom-checkboxes-and-radio-buttons/
Works like a dream... (I did a lot of looking for a solution a while back and this was the best option I found...)
Espavo

Author

Commented:
Hi,
Cheers mate.Is it for vb.net?

Commented:
I use it in VB.Net yes...
Espavo
Become a Microsoft Certified Solutions Expert

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

@Rias: as the link given in first comment shows the styling by CSS/XHTML, this would work for C# as well as VB.Net.
Thanks!

Author

Commented:
It looks amazing and exactly what I am looking for.Just a little confused on how to use it.Can you please guide me on how to use it>never handled a css file.
 
You need to create a .css file extension file by adding a new item.
the default name of that file is StyleSheet.css. You could change to any name you wish. Say you keep test.css
in test.css, you could copy the css code as mentioned in the link ( The 22 lines of code)
Just copy paste as of now, you could modify the same as per your need in later stage.
Now the name of class should be include in checkbox and/or radio button. as mentioned after the 22 lines of code.
You also need to include the stylesheet into the head tag into the .aspx page. How to do that? http://www.webstartcenter.com/howto/css_inc.php
In above link use the method of External Styles. You could also use 2 other methods as mentioned.
Hope this helps!

Author

Commented:
Cheers mate!!!thanks a million...will try and get back

Author

Commented:
what is .aspx ?I am using windows vb.net and not asp.net /web.Will this still work?

Commented:
Ooh.... this'll be an issue... this is for a Web-Application...
Sorry... don't know how to do this in a Windows App...
Espavo

Author

Commented:
oki:>but thanks anyways .Now I will wait for any suggestions in vb.net windows
Does this link help?
             http://www.startvbdotnet.com/controls/checkbox.aspx
Here are links to code for custimizing the checkbox control:
             http://bytes.com/topic/visual-basic-net/answers/359018-changing-detail-backcolor-vb-net
             http://visualbasic.about.com/od/usingvbnet/a/firstnetctrl.htm
             http://www.homeandlearn.co.uk/net/nets4p13.html
adding other control objects:
              http://www.startvbdotnet.com/controls/gbox.aspx

other links:
             http://msdn.microsoft.com/en-us/library/ms996485.aspx

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial