Click here to Skip to main content
15,899,026 members
Home / Discussions / C#
   

C#

 
GeneralRe: which constructor gets called first? Pin
Luc Pattyn22-Jul-07 10:51
sitebuilderLuc Pattyn22-Jul-07 10:51 
GeneralRe: which constructor gets called first? Pin
Paul Conrad22-Jul-07 11:08
professionalPaul Conrad22-Jul-07 11:08 
GeneralRe: which constructor gets called first? Pin
Paul Conrad22-Jul-07 9:57
professionalPaul Conrad22-Jul-07 9:57 
QuestionCreating Screen Saver in C# [modified] Pin
Identity Undisclosed22-Jul-07 1:15
Identity Undisclosed22-Jul-07 1:15 
AnswerRe: Creating Screen Saver in C# Pin
Luc Pattyn22-Jul-07 1:23
sitebuilderLuc Pattyn22-Jul-07 1:23 
GeneralRe: Creating Screen Saver in C# Pin
Identity Undisclosed22-Jul-07 1:44
Identity Undisclosed22-Jul-07 1:44 
GeneralRe: Creating Screen Saver in C# Pin
Luc Pattyn22-Jul-07 2:05
sitebuilderLuc Pattyn22-Jul-07 2:05 
GeneralRe: Creating Screen Saver in C# Pin
Identity Undisclosed22-Jul-07 2:19
Identity Undisclosed22-Jul-07 2:19 
GeneralRe: Creating Screen Saver in C# Pin
Luc Pattyn22-Jul-07 2:31
sitebuilderLuc Pattyn22-Jul-07 2:31 
QuestionGridview with 2 lines Pin
dabuskol22-Jul-07 1:04
dabuskol22-Jul-07 1:04 
AnswerRe: Gridview with 2 lines Pin
Arun.Immanuel22-Jul-07 1:28
Arun.Immanuel22-Jul-07 1:28 
GeneralRe: Gridview with 2 lines Pin
dabuskol22-Jul-07 1:33
dabuskol22-Jul-07 1:33 
GeneralRe: Gridview with 2 lines Pin
Arun.Immanuel22-Jul-07 2:21
Arun.Immanuel22-Jul-07 2:21 
Questionassembly: AssemblyKeyFile not supported in VS2005? Pin
George_George22-Jul-07 0:50
George_George22-Jul-07 0:50 
QuestionRedraw in a pictureBox Pin
eskape1922-Jul-07 0:42
eskape1922-Jul-07 0:42 
AnswerRe: Redraw in a pictureBox Pin
Luc Pattyn22-Jul-07 1:33
sitebuilderLuc Pattyn22-Jul-07 1:33 
QuestionDynamic textcolor change in RichTextBox in visual C# Pin
Blekk21-Jul-07 23:57
Blekk21-Jul-07 23:57 
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...

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.