Click here to Skip to main content
15,913,854 members
Home / Discussions / C#
   

C#

 
AnswerRe: Visual C# 2005 Express: Database Project Question Pin
Colin Angus Mackay12-Jan-06 11:28
Colin Angus Mackay12-Jan-06 11:28 
GeneralRe: Visual C# 2005 Express: Database Project Question Pin
OMalleyW12-Jan-06 13:47
OMalleyW12-Jan-06 13:47 
QuestionSelecting the current row in a DataGridView Pin
ElCaballo12-Jan-06 7:13
ElCaballo12-Jan-06 7:13 
AnswerRe: Selecting the current row in a DataGridView Pin
Daniel Santillanes12-Jan-06 13:29
professionalDaniel Santillanes12-Jan-06 13:29 
QuestionHow to delete rows from a table Pin
dvsr12-Jan-06 7:04
dvsr12-Jan-06 7:04 
AnswerRe: How to delete rows from a table Pin
Christian Graus12-Jan-06 12:49
protectorChristian Graus12-Jan-06 12:49 
QuestionHow to format ugly treeview checkbox? Pin
pliu_200012-Jan-06 6:23
pliu_200012-Jan-06 6:23 
AnswerRe: How to format ugly treeview checkbox? Pin
Judah Gabriel Himango12-Jan-06 9:56
sponsorJudah Gabriel Himango12-Jan-06 9:56 
First, there are some free controls on Codeproject that do this already. Check them out if you haven't yet.

Secondly, you can try drawing the checkbox using either the system drawing (which is unthemed):

System.Windows.Forms.ControlPaint.DrawCheckBox


Or if you're using .NET 2.0, you can try drawing the system themed checkbox which looks a lot nicer:

using System.Windows.Forms.VisualStyles;
...

if(VisualStyleInformation.IsSupportedByOS == true)
{
  VisualStyleRenderer renderer = new VisualStyleRenderer(VisualStyleElement.Button.CheckBox.CheckedNormal);
  renderer.DrawBackground(myGraphicsSurface, rectangleToDrawIn);
}




Tech, life, family, faith: Give me a visit.
I'm currently blogging about: Little House on the Flickr
Judah Himango


GeneralRe: How to format ugly treeview checkbox? Pin
pliu_200012-Jan-06 13:38
pliu_200012-Jan-06 13:38 
Questioncross assembly GetType Pin
alexrait112-Jan-06 5:42
alexrait112-Jan-06 5:42 
AnswerRe: cross assembly GetType Pin
Robert Rohde12-Jan-06 14:09
Robert Rohde12-Jan-06 14:09 
GeneralRe: cross assembly GetType Pin
alexrait112-Jan-06 21:20
alexrait112-Jan-06 21:20 
GeneralRe: cross assembly GetType Pin
Robert Rohde12-Jan-06 21:37
Robert Rohde12-Jan-06 21:37 
QuestionEasy question Pin
Small Rat12-Jan-06 5:18
Small Rat12-Jan-06 5:18 
AnswerRe: Easy question Pin
Koushik Biswas12-Jan-06 6:01
Koushik Biswas12-Jan-06 6:01 
Questioncommands don't work??? Pin
melanieab12-Jan-06 4:56
melanieab12-Jan-06 4:56 
AnswerRe: commands don't work??? Pin
Michael Potter12-Jan-06 5:10
Michael Potter12-Jan-06 5:10 
QuestionDataSet and Database Pin
Sasuko12-Jan-06 4:53
Sasuko12-Jan-06 4:53 
AnswerRe: DataSet and Database Pin
harryjo12-Jan-06 5:09
harryjo12-Jan-06 5:09 
GeneralRe: DataSet and Database Pin
Sasuko12-Jan-06 12:35
Sasuko12-Jan-06 12:35 
GeneralRe: DataSet and Database Pin
Daniel Santillanes12-Jan-06 13:08
professionalDaniel Santillanes12-Jan-06 13:08 
QuestionRadioButtonList Control - Problems getting value from listItems programmatically added - HELP! Pin
Alan R. Smith12-Jan-06 4:43
Alan R. Smith12-Jan-06 4:43 
QuestionFinding strings in a project Pin
MartinSmith12-Jan-06 3:51
MartinSmith12-Jan-06 3:51 
QuestionMapping a Drive at runtime Pin
exhaulted12-Jan-06 2:49
exhaulted12-Jan-06 2:49 
AnswerRe: Mapping a Drive at runtime Pin
Koushik Biswas12-Jan-06 6:07
Koushik Biswas12-Jan-06 6:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.