Click here to Skip to main content
15,900,461 members
Home / Discussions / C#
   

C#

 
GeneralRe: Mouse Click Pin
Dave Kreskowiak1-Jul-04 5:56
mveDave Kreskowiak1-Jul-04 5:56 
Generalxml Pin
cmarmr30-Jun-04 17:00
cmarmr30-Jun-04 17:00 
GeneralRe: xml Pin
Heath Stewart30-Jun-04 18:11
protectorHeath Stewart30-Jun-04 18:11 
GeneralRe: xml Pin
Nick Parker30-Jun-04 18:16
protectorNick Parker30-Jun-04 18:16 
GeneralRe: xml Pin
Nick Parker30-Jun-04 18:15
protectorNick Parker30-Jun-04 18:15 
GeneralCheckedListBox Pin
ahmed mohamed abdelhameed30-Jun-04 16:13
ahmed mohamed abdelhameed30-Jun-04 16:13 
GeneralRe: CheckedListBox Pin
saud_a_k30-Jun-04 23:39
saud_a_k30-Jun-04 23:39 
GeneralRe: CheckedListBox Pin
Robert Rohde1-Jul-04 19:26
Robert Rohde1-Jul-04 19:26 
Imho there is no direct way to do this, but you could make an owner-drawn checkedlistbox out of it (this.DrawMode = DrawMode.OwnerDrawFixed;). Then you would have to override OnDrawItem and draw the item yourself.
This could look like the following
<br />
protected override void OnDrawItem(System.Windows.Forms.DrawItemEventArgs e)<br />
{<br />
     e.DrawBackground();<br />
     e.DrawFocusRectangle();<br />
     Color textColor = e.ForeColor;<br />
     if (ShouldBeDisabled(e.Index)) <br />
        textColor = Color.Grey;<br />
<br />
     e.Graphics.DrawString(Text, e.Font, new SolidBrush(e.ForeColor), <br />
           e.Bounds.Left, e.Bounds.Top);<br />
}<br />

GeneralUpdating access file Pin
benglish7230-Jun-04 15:22
benglish7230-Jun-04 15:22 
GeneralRe: Updating access file Pin
cmarmr30-Jun-04 17:05
cmarmr30-Jun-04 17:05 
GeneralRe: Updating access file Pin
benglish7230-Jun-04 18:03
benglish7230-Jun-04 18:03 
GeneralRe: Updating access file Pin
Heath Stewart30-Jun-04 18:17
protectorHeath Stewart30-Jun-04 18:17 
Generallaunch batch file Pin
Rob Tomson30-Jun-04 14:30
Rob Tomson30-Jun-04 14:30 
GeneralRe: launch batch file Pin
Anders Molin30-Jun-04 14:58
professionalAnders Molin30-Jun-04 14:58 
GeneralRe: launch batch file Pin
Heath Stewart30-Jun-04 18:20
protectorHeath Stewart30-Jun-04 18:20 
GeneralDrawing Rectangles on top of multiple controls Pin
theoutlander30-Jun-04 11:28
theoutlander30-Jun-04 11:28 
GeneralStreaming Audio Pin
Grimolfr30-Jun-04 9:39
Grimolfr30-Jun-04 9:39 
Questionwill there be a Standard Edition? Pin
SJ_Phoenix30-Jun-04 9:26
SJ_Phoenix30-Jun-04 9:26 
AnswerRe: will there be a Standard Edition? Pin
Judah Gabriel Himango30-Jun-04 9:58
sponsorJudah Gabriel Himango30-Jun-04 9:58 
GeneralRe: will there be a Standard Edition? Pin
Heath Stewart30-Jun-04 18:23
protectorHeath Stewart30-Jun-04 18:23 
GeneralCalling Java from C# Pin
BrcKcc30-Jun-04 9:14
BrcKcc30-Jun-04 9:14 
GeneralRe: Calling Java from C# Pin
Judah Gabriel Himango30-Jun-04 10:06
sponsorJudah Gabriel Himango30-Jun-04 10:06 
GeneralRe: Calling Java from C# Pin
Heath Stewart30-Jun-04 18:30
protectorHeath Stewart30-Jun-04 18:30 
Questionjavadoc-style document generator for .NET? Pin
drizzay30-Jun-04 8:43
drizzay30-Jun-04 8:43 
AnswerRe: javadoc-style document generator for .NET? Pin
Heath Stewart30-Jun-04 8:50
protectorHeath Stewart30-Jun-04 8:50 

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.