Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
Generaldatagrid, datatable adding new rows Pin
HappyPaws9-Jun-04 6:02
HappyPaws9-Jun-04 6:02 
GeneralRe: datagrid, datatable adding new rows Pin
Heath Stewart9-Jun-04 6:07
protectorHeath Stewart9-Jun-04 6:07 
GeneralRe: datagrid, datatable adding new rows Pin
HappyPaws9-Jun-04 8:22
HappyPaws9-Jun-04 8:22 
GeneralRe: datagrid, datatable adding new rows Pin
Heath Stewart9-Jun-04 8:31
protectorHeath Stewart9-Jun-04 8:31 
QuestionLock Excel process? Pin
the last free name9-Jun-04 6:01
the last free name9-Jun-04 6:01 
AnswerRe: Lock Excel process? Pin
Dave Kreskowiak9-Jun-04 11:48
mveDave Kreskowiak9-Jun-04 11:48 
GeneralSkinning Pin
Simon Wren9-Jun-04 5:49
professionalSimon Wren9-Jun-04 5:49 
GeneralRe: Skinning Pin
Heath Stewart9-Jun-04 5:58
protectorHeath Stewart9-Jun-04 5:58 
You need to override WndProc in your Form derivative and handle the WM_NCPAINT (0x0085) notification message. See the documentation for the WM_NCPAINT message in the Platform SDK in the MSDN Library Online[^] for more information about the WPARAM and LPARAM values. I will tell you the WPARAM is the HRGN (handle to a region) that you can wrap in a .NET Region class using the static Region.FromHrgn method. To get a Graphics object, P/Invoke GetDCEx to get the HDC (handle to a device context) for the HRGN. You can then use Graphics.FromHdc to get a Graphics object. Just be sure to call Graphics.ReleaseHdc then Graphics.Dispose when you're done drawing otherwise you'll have a memory leak.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Skinning Pin
Simon Wren9-Jun-04 6:03
professionalSimon Wren9-Jun-04 6:03 
GeneralRe: Skinning Pin
Wackatronic10-Jun-04 5:19
Wackatronic10-Jun-04 5:19 
GeneralIP address from VPN connection Pin
Judah Gabriel Himango9-Jun-04 5:20
sponsorJudah Gabriel Himango9-Jun-04 5:20 
GeneralRe: IP address from VPN connection [EDITED] Pin
Dave Kreskowiak9-Jun-04 9:02
mveDave Kreskowiak9-Jun-04 9:02 
GeneralRe: IP address from VPN connection [EDITED] Pin
Judah Gabriel Himango9-Jun-04 9:50
sponsorJudah Gabriel Himango9-Jun-04 9:50 
GeneralLoop through many textboxes Pin
mkennedy779-Jun-04 4:57
mkennedy779-Jun-04 4:57 
GeneralRe: Loop through many textboxes Pin
Guinness4Strength9-Jun-04 5:14
Guinness4Strength9-Jun-04 5:14 
GeneralRe: Loop through many textboxes Pin
Heath Stewart9-Jun-04 5:48
protectorHeath Stewart9-Jun-04 5:48 
GeneralRe: Loop through many textboxes Pin
Guinness4Strength9-Jun-04 5:23
Guinness4Strength9-Jun-04 5:23 
GeneralRe: Loop through many textboxes Pin
Alex Getman9-Jun-04 6:53
Alex Getman9-Jun-04 6:53 
GeneralRe: Loop through many textboxes Pin
mkennedy779-Jun-04 11:23
mkennedy779-Jun-04 11:23 
GeneraldotNet MDI app and win32 child forms Pin
southperthman9-Jun-04 3:52
southperthman9-Jun-04 3:52 
GeneralRe: dotNet MDI app and win32 child forms Pin
Dave Kreskowiak9-Jun-04 8:54
mveDave Kreskowiak9-Jun-04 8:54 
GeneralRe: dotNet MDI app and win32 child forms Pin
southperthman9-Jun-04 14:58
southperthman9-Jun-04 14:58 
GeneralRe: dotNet MDI app and win32 child forms Pin
Dave Kreskowiak10-Jun-04 4:21
mveDave Kreskowiak10-Jun-04 4:21 
GeneralRe: dotNet MDI app and win32 child forms Pin
southperthman11-Jun-04 6:17
southperthman11-Jun-04 6:17 
Questionhow do i make the value in text box permanent Pin
VIJAYPAPUPAGER9-Jun-04 3:22
VIJAYPAPUPAGER9-Jun-04 3:22 

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.