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

C#

 
GeneralRe: regular expressions Pin
Jeremy Pullicino19-Oct-02 13:41
Jeremy Pullicino19-Oct-02 13:41 
GeneralRe: regular expressions Pin
James T. Johnson19-Oct-02 13:55
James T. Johnson19-Oct-02 13:55 
GeneralRe: regular expressions Pin
Paul Riley20-Oct-02 1:36
Paul Riley20-Oct-02 1:36 
GeneralRe: regular expressions Pin
Eric Gunnerson (msft)22-Oct-02 11:43
Eric Gunnerson (msft)22-Oct-02 11:43 
QuestionEquivalent Win32 API to Control.InvokePaint? Pin
Li-kai Liu (Angus)19-Oct-02 11:37
Li-kai Liu (Angus)19-Oct-02 11:37 
AnswerRe: Equivalent Win32 API to Control.InvokePaint? Pin
David Stone19-Oct-02 12:12
sitebuilderDavid Stone19-Oct-02 12:12 
GeneralRe: Equivalent Win32 API to Control.InvokePaint? Pin
Li-kai Liu (Angus)19-Oct-02 13:22
Li-kai Liu (Angus)19-Oct-02 13:22 
GeneralRe: Equivalent Win32 API to Control.InvokePaint? Pin
Li-kai Liu (Angus)19-Oct-02 14:31
Li-kai Liu (Angus)19-Oct-02 14: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 8:58
Bog19-Oct-02 8:58 
GeneralRe: SendInput C# example Pin
Stephane Rodriguez.19-Oct-02 9:34
Stephane Rodriguez.19-Oct-02 9:34 
GeneralRe: SendInput C# example Pin
Bog20-Oct-02 13:29
Bog20-Oct-02 13:29 
GeneralRe: SendInput C# example Pin
leppie20-Oct-02 13:59
leppie20-Oct-02 13:59 
GeneralRe: SendInput C# example Pin
Bog20-Oct-02 14:10
Bog20-Oct-02 14:10 
GeneralRe: SendInput C# example Pin
leppie20-Oct-02 14:24
leppie20-Oct-02 14:24 
GeneralRe: SendInput C# example Pin
Bog20-Oct-02 14:51
Bog20-Oct-02 14:51 
Generalparsing HTML Pin
Jeremy Pullicino19-Oct-02 8:07
Jeremy Pullicino19-Oct-02 8:07 
GeneralRe: parsing HTML Pin
Stephane Rodriguez.19-Oct-02 9:28
Stephane Rodriguez.19-Oct-02 9:28 
GeneralRe: parsing HTML Pin
Jeremy Pullicino19-Oct-02 12:41
Jeremy Pullicino19-Oct-02 12:41 
Questionhow to release the COM server? Pin
CherezZaboro19-Oct-02 8:01
CherezZaboro19-Oct-02 8:01 
AnswerRe: how to release the COM server? Pin
Stephane Rodriguez.19-Oct-02 9:37
Stephane Rodriguez.19-Oct-02 9:37 
GeneralRe: how to release the COM server? Pin
CherezZaboro19-Oct-02 9:46
CherezZaboro19-Oct-02 9:46 
GeneralRe: how to release the COM server? Pin
CherezZaboro19-Oct-02 10:33
CherezZaboro19-Oct-02 10:33 
GeneralRe: how to release the COM server? Pin
Stephane Rodriguez.19-Oct-02 10:40
Stephane Rodriguez.19-Oct-02 10:40 
GeneralRe: how to release the COM server? Pin
CherezZaboro19-Oct-02 10:45
CherezZaboro19-Oct-02 10:45 
GeneralRe: how to release the COM server? Pin
Stephane Rodriguez.19-Oct-02 21:01
Stephane Rodriguez.19-Oct-02 21: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.