Click here to Skip to main content
15,915,093 members
Home / Discussions / C#
   

C#

 
GeneralRe: getting data from database and separating them Pin
Heath Stewart18-Mar-04 4:17
protectorHeath Stewart18-Mar-04 4:17 
GeneralWindow UI modification in C# Pin
authenticgeek17-Mar-04 16:51
authenticgeek17-Mar-04 16:51 
GeneralRe: Window UI modification in C# Pin
Dave Kreskowiak17-Mar-04 16:54
mveDave Kreskowiak17-Mar-04 16:54 
GeneralRe: Window UI modification in C# Pin
authenticgeek17-Mar-04 17:07
authenticgeek17-Mar-04 17:07 
GeneralRe: Window UI modification in C# Pin
Dave Kreskowiak18-Mar-04 1:44
mveDave Kreskowiak18-Mar-04 1:44 
GeneralRe: Window UI modification in C# Pin
authenticgeek18-Mar-04 20:48
authenticgeek18-Mar-04 20:48 
GeneralRe: Window UI modification in C# Pin
Dave Kreskowiak19-Mar-04 11:10
mveDave Kreskowiak19-Mar-04 11:10 
GeneralRe: Window UI modification in C# Pin
Heath Stewart18-Mar-04 3:50
protectorHeath Stewart18-Mar-04 3:50 
It's not something easily done in C# (or any .NET language) because the non-client areas of a Window are not exposed directly. All the controls (including forms) "simply" encapsulate the Windows Management and Common Control APIs. You can often change this behavior by overriding WndProc and handling notification messages (like WM_NCPAINT) to change the behavior. Often times, you must P/Invoke a lot of native methods (like SendMessage) and re-declare various necessary structs and consts. It can be done, but like the other post said, it's not trivial. Win32 programming experience will definitely be helpful. Learn first how to do it in C/C++ since you won't have to redeclare everything you need (since it's all defined in the headers you'd require). You should also consider using Managed C++ in mixed mode compilation because you can easily use the native APIs without having to P/Invoke them. This would produce an unverifiable assembly, though, but that's not a problem when running from the local machine.

Search CodeProject for examples of how to override WndProc. A common implementation is to override WndProc for the ListView (which enscapsulates the List-View common control) to provide various things that Windows Forms does not expose.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Window UI modification in C# Pin
K4reem19-Mar-04 0:37
K4reem19-Mar-04 0:37 
GeneralHTTPResponse Threading Pin
K4reem17-Mar-04 14:45
K4reem17-Mar-04 14:45 
GeneralRe: HTTPResponse Threading Pin
Dave Kreskowiak17-Mar-04 16:53
mveDave Kreskowiak17-Mar-04 16:53 
GeneralRe: HTTPResponse Threading Pin
K4reem19-Mar-04 0:31
K4reem19-Mar-04 0:31 
GeneralRe: HTTPResponse Threading Pin
Heath Stewart18-Mar-04 3:44
protectorHeath Stewart18-Mar-04 3:44 
QuestionAbout Web Printing? Pin
jzb17-Mar-04 14:34
jzb17-Mar-04 14:34 
AnswerRe: About Web Printing? Pin
Michael Flanakin17-Mar-04 17:53
Michael Flanakin17-Mar-04 17:53 
GeneralRe: About Web Printing? Pin
jzb17-Mar-04 20:18
jzb17-Mar-04 20:18 
GeneralRe: About Web Printing? Pin
Michael Flanakin19-Mar-04 1:51
Michael Flanakin19-Mar-04 1:51 
AnswerRe: About Web Printing? Pin
Heath Stewart18-Mar-04 3:41
protectorHeath Stewart18-Mar-04 3:41 
GeneralRe: About Web Printing? Pin
Anonymous23-Mar-04 0:35
Anonymous23-Mar-04 0:35 
GeneralForum Board Pin
mil_an17-Mar-04 13:59
mil_an17-Mar-04 13:59 
GeneralRe: Forum Board Pin
Dave Kreskowiak17-Mar-04 16:57
mveDave Kreskowiak17-Mar-04 16:57 
GeneralRe: Forum Board Pin
Michael Flanakin17-Mar-04 17:58
Michael Flanakin17-Mar-04 17:58 
GeneralRe: Forum Board Pin
Dave Kreskowiak18-Mar-04 1:52
mveDave Kreskowiak18-Mar-04 1:52 
GeneralRe: Forum Board Pin
Michael Flanakin19-Mar-04 9:05
Michael Flanakin19-Mar-04 9:05 
GeneralOptimising Code for Image Blur Pin
damianp17-Mar-04 13:42
damianp17-Mar-04 13:42 

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.