Click here to Skip to main content
15,890,882 members
Home / Discussions / C#
   

C#

 
GeneralRe: GZipStream, CryptoStream and NetworkStream interaction Pin
Ed.Poore12-Mar-06 11:11
Ed.Poore12-Mar-06 11:11 
QuestionConstructors Pin
AJ12312-Mar-06 1:58
AJ12312-Mar-06 1:58 
AnswerRe: Constructors Pin
Colin Angus Mackay12-Mar-06 2:11
Colin Angus Mackay12-Mar-06 2:11 
GeneralRe: Constructors Pin
AJ12312-Mar-06 2:31
AJ12312-Mar-06 2:31 
QuestionTransperent window Pin
NaNg1524112-Mar-06 0:37
NaNg1524112-Mar-06 0:37 
AnswerRe: Transperent window Pin
Robin Panther12-Mar-06 2:48
Robin Panther12-Mar-06 2:48 
GeneralRe: Transperent window Pin
NaNg1524112-Mar-06 6:09
NaNg1524112-Mar-06 6:09 
AnswerRe: Transperent window Pin
Luis Alonso Ramos12-Mar-06 17:42
Luis Alonso Ramos12-Mar-06 17:42 
NaNg15241 wrote:
how will I be able to drag the window?


A very easy way to do it is to override WndProc on your form, handle WM_NCHITTEST, call the default, and if it returns HTCLIENT, change it for HTCAPTION. You'll be able to drag the form around by clicking on the client area.

I'm at home right now, but if you need help on that (or sample code), reply to this post and I'll show you some sample code that I have at the office. Those constants (WM_NCHITTEST, HTCLIENT, HTCAPTION) can be looked up in Windows.h.

-- LuisR



Luis Alonso Ramos
Intelectix - Chihuahua, Mexico

Not much here: My CP Blog!


The amount of sleep the average person needs is five more minutes. -- Vikram A Punathambekar, Aug. 11, 2005

-- modified at 23:42 Sunday 12th March, 2006
AnswerRe: Transperent window Pin
Luis Alonso Ramos13-Mar-06 9:52
Luis Alonso Ramos13-Mar-06 9:52 
QuestionPropertyGrid Mouse Events not behaving Pin
hype_rides12-Mar-06 0:06
hype_rides12-Mar-06 0:06 
AnswerRe: PropertyGrid Mouse Events not behaving Pin
Ed.Poore12-Mar-06 4:42
Ed.Poore12-Mar-06 4:42 
QuestionDataGrid & ListView Pin
mehrdadc4811-Mar-06 20:33
mehrdadc4811-Mar-06 20:33 
QuestionCollection & Datagrid Pin
mehrdadc4811-Mar-06 20:16
mehrdadc4811-Mar-06 20:16 
AnswerRe: Collection & Datagrid Pin
Stanciu Vlad11-Mar-06 23:18
Stanciu Vlad11-Mar-06 23:18 
QuestionWord's Table Control? Pin
Beringer11-Mar-06 18:42
Beringer11-Mar-06 18:42 
QuestionCoding Pattern Question Pin
Richard Andrew x6411-Mar-06 17:25
professionalRichard Andrew x6411-Mar-06 17:25 
AnswerRe: Coding Pattern Question Pin
Marc Clifton12-Mar-06 3:04
mvaMarc Clifton12-Mar-06 3:04 
GeneralRe: Coding Pattern Question Pin
Richard Andrew x6412-Mar-06 5:34
professionalRichard Andrew x6412-Mar-06 5:34 
QuestionChanging background colour of tabcontrol Pin
2hdass11-Mar-06 17:06
2hdass11-Mar-06 17:06 
QuestionDrawing String on tabpage Pin
2hdass11-Mar-06 15:48
2hdass11-Mar-06 15:48 
AnswerRe: Drawing String on tabpage Pin
Ravi Bhavnani11-Mar-06 16:12
professionalRavi Bhavnani11-Mar-06 16:12 
QuestionA Not-So-Neat Balancing Act Pin
IceWater4211-Mar-06 15:21
IceWater4211-Mar-06 15:21 
AnswerRe: A Not-So-Neat Balancing Act Pin
Ravi Bhavnani11-Mar-06 16:05
professionalRavi Bhavnani11-Mar-06 16:05 
GeneralRe: A Not-So-Neat Balancing Act Pin
IceWater4211-Mar-06 16:20
IceWater4211-Mar-06 16:20 
QuestionTabpage : Scoll without scroll bar Pin
2hdass11-Mar-06 15:04
2hdass11-Mar-06 15:04 

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.