Click here to Skip to main content
15,844,387 members
Home / Discussions / C#
   

C#

 
GeneralRe: regular expressions Pin
Jeremy Pullicino19-Oct-02 14:41
Jeremy Pullicino19-Oct-02 14:41 
GeneralRe: regular expressions Pin
James T. Johnson19-Oct-02 14:55
James T. Johnson19-Oct-02 14:55 
GeneralRe: regular expressions Pin
Paul Riley20-Oct-02 2:36
Paul Riley20-Oct-02 2:36 
GeneralRe: regular expressions Pin
Eric Gunnerson (msft)22-Oct-02 12:43
Eric Gunnerson (msft)22-Oct-02 12:43 
QuestionEquivalent Win32 API to Control.InvokePaint? Pin
Li-kai Liu (Angus)19-Oct-02 12:37
Li-kai Liu (Angus)19-Oct-02 12:37 
AnswerRe: Equivalent Win32 API to Control.InvokePaint? Pin
David Stone19-Oct-02 13:12
sitebuilderDavid Stone19-Oct-02 13:12 
GeneralRe: Equivalent Win32 API to Control.InvokePaint? Pin
Li-kai Liu (Angus)19-Oct-02 14:22
Li-kai Liu (Angus)19-Oct-02 14:22 
GeneralRe: Equivalent Win32 API to Control.InvokePaint? Pin
Li-kai Liu (Angus)19-Oct-02 15:31
Li-kai Liu (Angus)19-Oct-02 15:31 
Well, maybe still not very clear in my previous reply.

I included a picture of the button control I've been
writing for fun.

http://www.ykliu.com/problem.png[^]

It's a small button that draw everything from scratch. I plan a
few features for this button:
- support theme automatically. done! (Thanks for help from James T. Johnson)
- support shadowed text. done! (Thanks for great tutorials from Christian Graus)
- to able to draw underlying control, so it looks like transparent background is supported.

Well, that's why I come up with this question.

Though, I am able to use InvokePaint, InvokePaintBackground to redraw the
underlying parent control. Suddenly this question comes to my mind. If
I want to write another custom control that use this feature by using
InvokePaint. There is no way but inheriting it from Control Class.

Wouldn't it be better if I can write a static function, passing the caller
control and caller's parent control as parameter, then the function will
repaint caller control with the underlying parent's background.

Thanks in advance...

P.S. there's also another painting problem I found. illustrated in the included image.

Li-kai Liu
GeneralSendInput C# example Pin
Bog19-Oct-02 9:58
Bog19-Oct-02 9:58 
GeneralRe: SendInput C# example Pin
Stephane Rodriguez.19-Oct-02 10:34
Stephane Rodriguez.19-Oct-02 10:34 
GeneralRe: SendInput C# example Pin
Bog20-Oct-02 14:29
Bog20-Oct-02 14:29 
GeneralRe: SendInput C# example Pin
leppie20-Oct-02 14:59
leppie20-Oct-02 14:59 
GeneralRe: SendInput C# example Pin
Bog20-Oct-02 15:10
Bog20-Oct-02 15:10 
GeneralRe: SendInput C# example Pin
leppie20-Oct-02 15:24
leppie20-Oct-02 15:24 
GeneralRe: SendInput C# example Pin
Bog20-Oct-02 15:51
Bog20-Oct-02 15:51 
Generalparsing HTML Pin
Jeremy Pullicino19-Oct-02 9:07
Jeremy Pullicino19-Oct-02 9:07 
GeneralRe: parsing HTML Pin
Stephane Rodriguez.19-Oct-02 10:28
Stephane Rodriguez.19-Oct-02 10:28 
GeneralRe: parsing HTML Pin
Jeremy Pullicino19-Oct-02 13:41
Jeremy Pullicino19-Oct-02 13:41 
Questionhow to release the COM server? Pin
CherezZaboro19-Oct-02 9:01
CherezZaboro19-Oct-02 9:01 
AnswerRe: how to release the COM server? Pin
Stephane Rodriguez.19-Oct-02 10:37
Stephane Rodriguez.19-Oct-02 10:37 
GeneralRe: how to release the COM server? Pin
CherezZaboro19-Oct-02 10:46
CherezZaboro19-Oct-02 10:46 
GeneralRe: how to release the COM server? Pin
CherezZaboro19-Oct-02 11:33
CherezZaboro19-Oct-02 11:33 
GeneralRe: how to release the COM server? Pin
Stephane Rodriguez.19-Oct-02 11:40
Stephane Rodriguez.19-Oct-02 11:40 
GeneralRe: how to release the COM server? Pin
CherezZaboro19-Oct-02 11:45
CherezZaboro19-Oct-02 11:45 
GeneralRe: how to release the COM server? Pin
Stephane Rodriguez.19-Oct-02 22:01
Stephane Rodriguez.19-Oct-02 22:01 

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.