Click here to Skip to main content
15,898,222 members
Home / Discussions / C#
   

C#

 
AnswerRe: Pop Up Menu Pin
Niiiissssshhhhhuuuuu20-Feb-07 20:12
Niiiissssshhhhhuuuuu20-Feb-07 20:12 
GeneralRe: Pop Up Menu Pin
hiremath7120-Feb-07 21:52
hiremath7120-Feb-07 21:52 
GeneralRe: Pop Up Menu Pin
Niiiissssshhhhhuuuuu20-Feb-07 22:57
Niiiissssshhhhhuuuuu20-Feb-07 22:57 
GeneralRe: Pop Up Menu Pin
hiremath7120-Feb-07 23:05
hiremath7120-Feb-07 23:05 
QuestionWindows Locatin Pin
hiremath7120-Feb-07 19:14
hiremath7120-Feb-07 19:14 
AnswerRe: Windows Locatin Pin
stancrm20-Feb-07 20:58
stancrm20-Feb-07 20:58 
GeneralRe: Windows Locatin Pin
hiremath7120-Feb-07 22:20
hiremath7120-Feb-07 22:20 
GeneralRe: Windows Locatin Pin
KrunalC20-Feb-07 22:35
KrunalC20-Feb-07 22:35 
If you reset the location in the locationchanged event then you can see the form is moving to new position and then resetting to old position. But ideally form should not move at all at first instance. This could be obtained by trapping the windows message for form move. Try following code and it will not allow the form to move at first instance. However pls test the things after adding this piece of code..
protected override void WndProc(ref Message m)
{
const int WM_NCLBUTTONDOWN = 161;
const int WM_SYSCOMMAND = 274;
const int HTCAPTION = 2;
const int SC_MOVE = 61456;

if((m.Msg == WM_SYSCOMMAND) && (m.WParam.ToInt32() == SC_MOVE))
{
return;
}

if((m.Msg == WM_NCLBUTTONDOWN) && (m.WParam.ToInt32() == HTCAPTION))
{
return;
}
base.WndProc (ref m);
}

GeneralRe: Windows Locatin Pin
hiremath7120-Feb-07 23:20
hiremath7120-Feb-07 23:20 
QuestionImageList Pin
Jeeva Jose20-Feb-07 19:09
Jeeva Jose20-Feb-07 19:09 
AnswerRe: ImageList Pin
il_masacratore20-Feb-07 21:35
il_masacratore20-Feb-07 21:35 
QuestionAccessing GIF Color Table? Pin
jak10278920-Feb-07 18:12
jak10278920-Feb-07 18:12 
Questionweb monitoring Pin
Member 369658120-Feb-07 18:11
Member 369658120-Feb-07 18:11 
AnswerRe: web monitoring Pin
Niiiissssshhhhhuuuuu20-Feb-07 19:46
Niiiissssshhhhhuuuuu20-Feb-07 19:46 
QuestionRe: web monitoring Pin
parbhu21-Feb-07 2:06
parbhu21-Feb-07 2:06 
QuestionWaveInOpen Error Pin
Al_Pennyworth20-Feb-07 17:46
Al_Pennyworth20-Feb-07 17:46 
Questiondatagrid questions Pin
swjam20-Feb-07 17:44
swjam20-Feb-07 17:44 
QuestionHow to Monitor Button Event Handler of a Child Form from the Parent Form? Pin
Khoramdin20-Feb-07 17:12
Khoramdin20-Feb-07 17:12 
AnswerRe: How to Monitor Button Event Handler of a Child Form from the Parent Form? Pin
Christian Graus20-Feb-07 17:23
protectorChristian Graus20-Feb-07 17:23 
AnswerRe: How to Monitor Button Event Handler of a Child Form from the Parent Form? Pin
Jeeva Jose20-Feb-07 19:56
Jeeva Jose20-Feb-07 19:56 
QuestionAccessing a method from one project in another Pin
Darkness8420-Feb-07 15:41
Darkness8420-Feb-07 15:41 
AnswerRe: Accessing a method from one project in another Pin
NanaAM20-Feb-07 16:58
NanaAM20-Feb-07 16:58 
AnswerRe: Accessing a method from one project in another Pin
Ashvin Gunga20-Feb-07 19:05
Ashvin Gunga20-Feb-07 19:05 
AnswerRe: Accessing a method from one project in another Pin
Jeeva Jose20-Feb-07 20:03
Jeeva Jose20-Feb-07 20:03 
QuestionConverting Months into years. Pin
Skanless20-Feb-07 14:27
Skanless20-Feb-07 14:27 

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.