Click here to Skip to main content
15,907,392 members
Home / Discussions / C#
   

C#

 
GeneralRe: Can a component obtain a reference to its container object? Pin
1-Apr-02 14:10
suss1-Apr-02 14:10 
GeneralRe: Can a component obtain a reference to its container object? Pin
Andy Smith1-Apr-02 14:50
Andy Smith1-Apr-02 14:50 
GeneralRe: Can a component obtain a reference to its container object? Pin
James T. Johnson1-Apr-02 16:23
James T. Johnson1-Apr-02 16:23 
GeneralRe: Can a component obtain a reference to its container object? Pin
James T. Johnson1-Apr-02 16:25
James T. Johnson1-Apr-02 16:25 
GeneralRe: Can a component obtain a reference to its container object? Pin
Andy Smith1-Apr-02 18:44
Andy Smith1-Apr-02 18:44 
GeneralRe: Can a component obtain a reference to its container object? Pin
James T. Johnson1-Apr-02 22:52
James T. Johnson1-Apr-02 22:52 
GeneralRoundRect Pin
Not Active31-Mar-02 10:23
mentorNot Active31-Mar-02 10:23 
GeneralRe: RoundRect Pin
James T. Johnson31-Mar-02 13:03
James T. Johnson31-Mar-02 13:03 
Charles Petzold's Programming Microsoft Windows with C# has an example demonstrating how to create one.

Unfortunately the code from the book isn't available on his website, nor MSPress' website so I can't give you his exact code.

But I don't think there would be any harm in giving you the algorithm since it is common sense when you think about it Smile | :)

First break up your rounded rectangle up into its distinct sections. You have the four sides, and 4 rounded parts. The rounded parts if you put them together form an ellipse. So all you have to do to create your own rounded rect function is to use the DrawArc and DrawLine methods of the Graphics object to position each part where it needs to be.

HTH,

James

Sonork: Hasaki
"I left there in the morning
with their God tucked underneath my arm
their half-assed smiles and the book of rules.
So I asked this God a question
and by way of firm reply,
He said - I'm not the kind you have to wind up on Sundays."
"Wind Up" from Aqualung, Jethro Tull 1971

GeneralRe: RoundRect Pin
Christian Graus31-Mar-02 13:26
protectorChristian Graus31-Mar-02 13:26 
GeneralRe: RoundRect Pin
Not Active31-Mar-02 13:58
mentorNot Active31-Mar-02 13:58 
Generaluxtheme.dll and windows XP themes in C# Pin
Stephan Johnson31-Mar-02 9:48
Stephan Johnson31-Mar-02 9:48 
GeneralRe: uxtheme.dll and windows XP themes in C# Pin
James T. Johnson31-Mar-02 12:46
James T. Johnson31-Mar-02 12:46 
GeneralRe: uxtheme.dll and windows XP themes in C# Pin
Not Active31-Mar-02 14:02
mentorNot Active31-Mar-02 14:02 
GeneralRe: uxtheme.dll and windows XP themes in C# Pin
Stephan Johnson31-Mar-02 21:13
Stephan Johnson31-Mar-02 21:13 
GeneralRe: uxtheme.dll and windows XP themes in C# Pin
James T. Johnson2-Apr-02 19:25
James T. Johnson2-Apr-02 19:25 
GeneralManifest compiled into the EXE file Pin
Szymon Pusz31-Mar-02 9:18
Szymon Pusz31-Mar-02 9:18 
GeneralRe: Manifest compiled into the EXE file Pin
James T. Johnson31-Mar-02 13:26
James T. Johnson31-Mar-02 13:26 
GeneralRe: Manifest compiled into the EXE file Pin
Szymon Pusz31-Mar-02 22:15
Szymon Pusz31-Mar-02 22:15 
GeneralCompiling an app in C# with windows dlls STATICALLY linked Pin
Szymon Pusz31-Mar-02 6:35
Szymon Pusz31-Mar-02 6:35 
GeneralRe: Compiling an app in C# with windows dlls STATICALLY linked Pin
Michael P Butler31-Mar-02 8:03
Michael P Butler31-Mar-02 8:03 
GeneralRe: Compiling an app in C# with windows dlls STATICALLY linked Pin
Daniel Turini31-Mar-02 9:05
Daniel Turini31-Mar-02 9:05 
GeneralScrolling Pin
inbal66631-Mar-02 5:01
inbal66631-Mar-02 5:01 
GeneralRe: Scrolling Pin
James T. Johnson31-Mar-02 13:23
James T. Johnson31-Mar-02 13:23 
GeneralRe: Scrolling Pin
inbal66631-Mar-02 21:05
inbal66631-Mar-02 21:05 
GeneralGui controls & Threads Pin
inbal66631-Mar-02 4:41
inbal66631-Mar-02 4:41 

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.