Click here to Skip to main content
15,887,906 members
Home / Discussions / C#
   

C#

 
AnswerRe: Dynamic textcolor change in RichTextBox in visual C# Pin
Luc Pattyn22-Jul-07 0:47
sitebuilderLuc Pattyn22-Jul-07 0:47 
GeneralRe: Dynamic textcolor change in RichTextBox in visual C# Pin
Blekk22-Jul-07 11:52
Blekk22-Jul-07 11:52 
GeneralRe: Dynamic textcolor change in RichTextBox in visual C# Pin
Luc Pattyn22-Jul-07 12:38
sitebuilderLuc Pattyn22-Jul-07 12:38 
GeneralRe: Dynamic textcolor change in RichTextBox in visual C# Pin
Blekk23-Jul-07 3:34
Blekk23-Jul-07 3:34 
GeneralRe: Dynamic textcolor change in RichTextBox in visual C# Pin
Luc Pattyn23-Jul-07 3:57
sitebuilderLuc Pattyn23-Jul-07 3:57 
QuestionCannot Load ResXFileCodeGenerator and SettingsSingleFileGenerator Pin
zoroyster21-Jul-07 23:49
zoroyster21-Jul-07 23:49 
QuestionMove the form without caption [modified] Pin
Maddie from Dartford21-Jul-07 23:15
Maddie from Dartford21-Jul-07 23:15 
AnswerRe: Move the form without caption Pin
mav.northwind22-Jul-07 5:09
mav.northwind22-Jul-07 5:09 
Hi!
You can make the window moveable by clicking anywhere inside the window's client area by overriding its WndProc like this:
protected override void WndProc(ref Message m)
{
	base.WndProc(ref m);

	const int WM_NCHITTEST = 0x0084;
	const int HTCAPTION = 0x0002;
	if (m.Msg == WM_NCHITTEST)
		m.Result = new IntPtr(HTCAPTION);// This tells windows to behave as if you clicked on the caption
}


Regards,
mav

--
Black holes are the places where God divided by 0...

GeneralRe: Move the form without caption Pin
Maddie from Dartford22-Jul-07 17:54
Maddie from Dartford22-Jul-07 17:54 
GeneralRe: Move the form without caption Pin
mav.northwind22-Jul-07 19:11
mav.northwind22-Jul-07 19:11 
QuestionHow to use Dictionary? Pin
Nothend21-Jul-07 23:04
Nothend21-Jul-07 23:04 
AnswerRe: How to use Dictionary? Pin
mav.northwind21-Jul-07 23:13
mav.northwind21-Jul-07 23:13 
GeneralRe: How to use Dictionary? Pin
Nothend21-Jul-07 23:21
Nothend21-Jul-07 23:21 
GeneralRe: How to use Dictionary? Pin
Larantz22-Jul-07 0:11
Larantz22-Jul-07 0:11 
GeneralRe: How to use Dictionary? Pin
Nothend22-Jul-07 0:21
Nothend22-Jul-07 0:21 
GeneralRe: How to use Dictionary? Pin
Nothend22-Jul-07 0:24
Nothend22-Jul-07 0:24 
QuestionPersistentn publish-subscribe in wcf Pin
xshift21-Jul-07 22:10
xshift21-Jul-07 22:10 
QuestionGlobal Assembly Cache Pin
George_George21-Jul-07 20:12
George_George21-Jul-07 20:12 
AnswerRe: Global Assembly Cache Pin
mav.northwind21-Jul-07 21:24
mav.northwind21-Jul-07 21:24 
GeneralRe: Global Assembly Cache Pin
George_George21-Jul-07 22:04
George_George21-Jul-07 22:04 
GeneralRe: Global Assembly Cache Pin
mav.northwind21-Jul-07 23:10
mav.northwind21-Jul-07 23:10 
GeneralRe: Global Assembly Cache Pin
George_George22-Jul-07 0:25
George_George22-Jul-07 0:25 
GeneralRe: Global Assembly Cache Pin
mav.northwind22-Jul-07 4:09
mav.northwind22-Jul-07 4:09 
GeneralRe: Global Assembly Cache Pin
George_George23-Jul-07 3:31
George_George23-Jul-07 3:31 
QuestionFinally! Pin
max2929721-Jul-07 17:55
max2929721-Jul-07 17:55 

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.