Click here to Skip to main content
15,559,567 members
Home / Discussions / C#
   

C#

 
GeneralDebugging Pin
jyoti doiphode14-Jan-04 0:58
jyoti doiphode14-Jan-04 0:58 
GeneralRe: Debugging Pin
Heath Stewart14-Jan-04 5:41
protectorHeath Stewart14-Jan-04 5:41 
GeneralFinding names of local user accounts Pin
EnkelIk14-Jan-04 0:46
EnkelIk14-Jan-04 0:46 
GeneralRe: Finding names of local user accounts Pin
Mazdak14-Jan-04 3:51
Mazdak14-Jan-04 3:51 
GeneralRe: Finding names of local user accounts Pin
EnkelIk14-Jan-04 5:54
EnkelIk14-Jan-04 5:54 
GeneralRe: Finding names of local user accounts Pin
Mazdak14-Jan-04 9:20
Mazdak14-Jan-04 9:20 
GeneralReversible Frames on Windows Forms Pin
occcy13-Jan-04 23:22
occcy13-Jan-04 23:22 
GeneralRe: Reversible Frames on Windows Forms Pin
Heath Stewart14-Jan-04 5:14
protectorHeath Stewart14-Jan-04 5:14 
If you need a focus rectangle, why not use ControlPaint.DrawFocusRectangle? You can specify both the foreground and background colors. If you need to invert the colors, you can create a new Color by XOR'ing each of the R, G, and B components with 0 or 0xfff.

If you want to draw a rectangle around the bounds of the control itself use the Control.Bounds property for the rectangle param of the DrawFocusRectangle method.

If neither of these approaches is quite what you want, you can draw dotted lines by using a custom Pen with the Pen.DashStyle property set in calls to Graphics.DrawLine or Graphics.DrawRectangle and similar methods.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
QuestionHow use Ms treeView In asp.net Pin
Old Gun13-Jan-04 23:03
Old Gun13-Jan-04 23:03 
AnswerRe: How use Ms treeView In asp.net Pin
Heath Stewart14-Jan-04 5:04
protectorHeath Stewart14-Jan-04 5:04 
GeneralRe: How use Ms treeView In asp.net Pin
Not Active14-Jan-04 8:02
mentorNot Active14-Jan-04 8:02 
Generalsharing internet offline files Pin
Mohamad Al Husseiny13-Jan-04 19:18
Mohamad Al Husseiny13-Jan-04 19:18 
GeneralRe: sharing internet offline files Pin
Heath Stewart14-Jan-04 5:02
protectorHeath Stewart14-Jan-04 5:02 
GeneralRe: sharing internet offline files Pin
Mohamad Al Husseiny14-Jan-04 20:20
Mohamad Al Husseiny14-Jan-04 20:20 
GeneralGraph classes for C# Pin
crushinghellhammer13-Jan-04 14:50
crushinghellhammer13-Jan-04 14:50 
GeneralRe: Graph classes for C# Pin
scadaguy14-Jan-04 3:42
scadaguy14-Jan-04 3:42 
GeneralRe: Graph classes for C# Pin
Giles14-Jan-04 12:17
Giles14-Jan-04 12:17 
GeneralMarshalling from C# string directly to an MFC CString Pin
jerrycainjr13-Jan-04 14:14
jerrycainjr13-Jan-04 14:14 
GeneralRe: Marshalling from C# string directly to an MFC CString Pin
Heath Stewart14-Jan-04 4:43
protectorHeath Stewart14-Jan-04 4:43 
GeneralAnimating True Type Fonts Pin
mrhicks13-Jan-04 13:01
mrhicks13-Jan-04 13:01 
GeneralRe: Animating True Type Fonts Pin
Heath Stewart13-Jan-04 14:00
protectorHeath Stewart13-Jan-04 14:00 
GeneralRe: Animating True Type Fonts Pin
leppie13-Jan-04 14:45
leppie13-Jan-04 14:45 
GeneralGDI+ missing functionality in PocketPC Pin
Gizz13-Jan-04 8:52
Gizz13-Jan-04 8:52 
GeneralRe: GDI+ missing functionality in PocketPC Pin
Heath Stewart13-Jan-04 9:21
protectorHeath Stewart13-Jan-04 9:21 
GeneralRe: GDI+ missing functionality in PocketPC Pin
leppie13-Jan-04 14:54
leppie13-Jan-04 14:54 

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.