Click here to Skip to main content
16,006,707 members
Home / Discussions / C#
   

C#

 
GeneralReading TOC and text from Word 2002 Pin
Steven_T5-Jul-04 2:34
Steven_T5-Jul-04 2:34 
QuestionHow to add custom properties in PropertyGrid at Runtime Pin
ilmian5-Jul-04 1:34
ilmian5-Jul-04 1:34 
Questionhow to get my computer speed Pin
maro-gb5-Jul-04 1:10
maro-gb5-Jul-04 1:10 
AnswerRe: how to get my computer speed Pin
Heath Stewart5-Jul-04 5:29
protectorHeath Stewart5-Jul-04 5:29 
Generalgenerics Pin
noraguta5-Jul-04 0:21
noraguta5-Jul-04 0:21 
GeneralRe: generics Pin
noraguta5-Jul-04 1:52
noraguta5-Jul-04 1:52 
Questionhow to make a customized control box Pin
Imran Ahmed Khan5-Jul-04 0:11
Imran Ahmed Khan5-Jul-04 0:11 
AnswerRe: how to make a customized control box Pin
Heath Stewart5-Jul-04 5:17
protectorHeath Stewart5-Jul-04 5:17 
There is nothing in the .NET Framework BCL to help you create your own control boxes. You should extend the Form class, override WndProc, and handle the WM_NC* notification messages to draw in the non-client are of the window frame. There are many native APIs that you must P/Invoke, as well as many supporting structs you must define (like RECT, which cannot be replaced by System.Drawing.Rectangle - their fields have different meaning).

There are article on the 'net (try a google search) that describe how to do this using C/C++. If you know C/C++, I would suggest creating a Managed C++ project and using both managed and native code to extend the Form class to do what you need. You could then reference that assembly and extend or use that class in any managed language.

 

Microsoft MVP, Visual C#
My Articles
GeneralPrinting Pin
exhaulted5-Jul-04 0:06
exhaulted5-Jul-04 0:06 
GeneralRe: Printing Pin
exhaulted5-Jul-04 0:21
exhaulted5-Jul-04 0:21 
GeneralConverting Pixels to 100/Inch Pin
exhaulted5-Jul-04 0:59
exhaulted5-Jul-04 0:59 
GeneralRe: Converting Pixels to 100/Inch Pin
Pain_Elemental5-Jul-04 2:19
Pain_Elemental5-Jul-04 2:19 
GeneralRe: Converting Pixels to 100/Inch Pin
Pain_Elemental5-Jul-04 3:53
Pain_Elemental5-Jul-04 3:53 
GeneralRe: Converting Pixels to 100/Inch Pin
exhaulted5-Jul-04 4:21
exhaulted5-Jul-04 4:21 
GeneralRe: Converting Pixels to 100/Inch Pin
Heath Stewart5-Jul-04 5:38
protectorHeath Stewart5-Jul-04 5:38 
GeneralRe: Converting Pixels to 100/Inch Pin
exhaulted5-Jul-04 6:06
exhaulted5-Jul-04 6:06 
GeneralRe: Converting Pixels to 100/Inch Pin
Heath Stewart5-Jul-04 6:27
protectorHeath Stewart5-Jul-04 6:27 
GeneralRe: Converting Pixels to 100/Inch Pin
exhaulted5-Jul-04 23:50
exhaulted5-Jul-04 23:50 
GeneralRe: Converting Pixels to 100/Inch Pin
Heath Stewart6-Jul-04 4:21
protectorHeath Stewart6-Jul-04 4:21 
GeneralRay Picking Pin
ghho5-Jul-04 0:04
ghho5-Jul-04 0:04 
Generalenum and inheritance Pin
Anonymous4-Jul-04 23:39
Anonymous4-Jul-04 23:39 
GeneralRe: enum and inheritance Pin
hatim_ali5-Jul-04 2:12
hatim_ali5-Jul-04 2:12 
GeneralRe: enum and inheritance Pin
Anonymous5-Jul-04 3:50
Anonymous5-Jul-04 3:50 
GeneralRe: enum and inheritance Pin
Heath Stewart5-Jul-04 5:40
protectorHeath Stewart5-Jul-04 5:40 
GeneralRe: enum and inheritance Pin
leppie5-Jul-04 7:16
leppie5-Jul-04 7:16 

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.