Click here to Skip to main content
15,904,288 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using Web service as business logic layer Pin
Salil Khedkar23-Sep-04 3:48
Salil Khedkar23-Sep-04 3:48 
GeneralRe: Using Web service as business logic layer Pin
shambho23-Sep-04 4:59
shambho23-Sep-04 4:59 
GeneralRe: Using Web service as business logic layer Pin
Heath Stewart23-Sep-04 7:39
protectorHeath Stewart23-Sep-04 7:39 
GeneralFind controls without knowing the name Pin
coddyuk23-Sep-04 2:49
coddyuk23-Sep-04 2:49 
GeneralRe: Find controls without knowing the name Pin
sreejith ss nair23-Sep-04 3:20
sreejith ss nair23-Sep-04 3:20 
GeneralRe: Find controls without knowing the name Pin
shambho23-Sep-04 3:40
shambho23-Sep-04 3:40 
GeneralRe: Find controls without knowing the name Pin
coddyuk23-Sep-04 4:30
coddyuk23-Sep-04 4:30 
Generalmouse position from Non client area Pin
Ajmoda23-Sep-04 1:12
Ajmoda23-Sep-04 1:12 
hello everybody

i am facing a problem to get the mouse position from the non client area in C#

i am using this technique but it is not working

protected override void WndProc(ref Message m)
{
if(m.Msg == 0xA0 ) //mouse move on NC area
{
try
{
Point pt = new Point();
Type t = pt.GetType();
pt = (Point)m.GetLParam(t);//pt = (Point)m.GetLParam(typeof(t)));
label1.Text = pt.X.ToString();
label2.Text = pt.Y.ToString();
}
catch(Exception e){Console.WriteLine(e);}
}
}

please help me
thanx

GeneralRe: mouse position from Non client area [EDITED] Pin
Stefan Troschuetz23-Sep-04 1:30
Stefan Troschuetz23-Sep-04 1:30 
GeneralRe: mouse position from Non client area Pin
Ajmoda23-Sep-04 1:36
Ajmoda23-Sep-04 1:36 
GeneralRe: mouse position from Non client area Pin
Stefan Troschuetz23-Sep-04 1:44
Stefan Troschuetz23-Sep-04 1:44 
GeneralRe: mouse position from Non client area Pin
Ajmoda23-Sep-04 1:51
Ajmoda23-Sep-04 1:51 
GeneralRe: mouse position from Non client area Pin
Stefan Troschuetz23-Sep-04 1:57
Stefan Troschuetz23-Sep-04 1:57 
GeneralRe: mouse position from Non client area Pin
Ajmoda23-Sep-04 2:03
Ajmoda23-Sep-04 2:03 
Questionwhat is this error Pin
ydderf223-Sep-04 0:18
ydderf223-Sep-04 0:18 
AnswerRe: what is this error Pin
exhaulted23-Sep-04 0:30
exhaulted23-Sep-04 0:30 
AnswerRe: what is this error Pin
sreejith ss nair23-Sep-04 0:43
sreejith ss nair23-Sep-04 0:43 
GeneralRe: what is this error Pin
Heath Stewart23-Sep-04 5:58
protectorHeath Stewart23-Sep-04 5:58 
GeneralRe: what is this error Pin
sreejith ss nair23-Sep-04 17:51
sreejith ss nair23-Sep-04 17:51 
AnswerRe: what is this error Pin
Dave Kreskowiak23-Sep-04 0:43
mveDave Kreskowiak23-Sep-04 0:43 
AnswerRe: what is this error Pin
Michael P Butler23-Sep-04 0:57
Michael P Butler23-Sep-04 0:57 
GeneralRuntime.getRuntime().addShutdownHook(new Hook()) Pin
devvvy22-Sep-04 23:45
devvvy22-Sep-04 23:45 
GeneralRe: Runtime.getRuntime().addShutdownHook(new Hook()) Pin
exhaulted23-Sep-04 0:27
exhaulted23-Sep-04 0:27 
GeneralRe: Runtime.getRuntime().addShutdownHook(new Hook()) Pin
devvvy23-Sep-04 3:48
devvvy23-Sep-04 3:48 
GeneralRe: Runtime.getRuntime().addShutdownHook(new Hook()) Pin
LongRange.Shooter23-Sep-04 8:24
LongRange.Shooter23-Sep-04 8:24 

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.