Click here to Skip to main content
15,900,258 members
Home / Discussions / C#
   

C#

 
GeneralRe: function pointers/delegates/callbacks/managed/unmanaged code with c# Pin
kinar18-Nov-08 7:53
kinar18-Nov-08 7:53 
GeneralRe: function pointers/delegates/callbacks/managed/unmanaged code with c# Pin
led mike18-Nov-08 8:22
led mike18-Nov-08 8:22 
GeneralRe: function pointers/delegates/callbacks/managed/unmanaged code with c# Pin
kinar18-Nov-08 9:11
kinar18-Nov-08 9:11 
GeneralRe: function pointers/delegates/callbacks/managed/unmanaged code with c# Pin
led mike18-Nov-08 10:16
led mike18-Nov-08 10:16 
GeneralRe: function pointers/delegates/callbacks/managed/unmanaged code with c# Pin
kinar18-Nov-08 11:43
kinar18-Nov-08 11:43 
GeneralRe: function pointers/delegates/callbacks/managed/unmanaged code with c# Pin
led mike18-Nov-08 11:57
led mike18-Nov-08 11:57 
Questionscreen position of control Pin
Eli Nurman17-Nov-08 8:57
Eli Nurman17-Nov-08 8:57 
AnswerRe: screen position of control Pin
Samer Aburabie17-Nov-08 10:54
Samer Aburabie17-Nov-08 10:54 
Hi ...
I am not sure if I understood you very well ... but what I understood is that you want to show a form where its upper left corner shall be in the upper left corner of a control on the form ... so it comes above it somehow ... anyway ... find the code below and I hope it helps:

Form2 frm = new Form2();
frm.StartPosition = FormStartPosition.Manual;
frm.Location = this.textBox1.PointToScreen(this.textBox1.ClientRectangle.Location);
frm.Show();


This will place it exactly at the upper left corner of the control which including the titlebar ... in case you dont want to have the title bar to be it and the client region of the control use this instead:

Form2 frm = new Form2();
frm.StartPosition = FormStartPosition.Manual;
frm.Location = new Point (this.textBox1.X+this.Location.X,this.textBox1.Location.Y+this.Location.Y);
frm.Show();


I hope this helps ...

Sincerely Samer Abu Rabie

Note: Please remember to rate this post to help others whom reading it.


QuestionHow to list Com Port usage and list of devices using those ports Pin
serkan197717-Nov-08 8:33
serkan197717-Nov-08 8:33 
AnswerRe: How to list Com Port usage and list of devices using those ports Pin
Samer Aburabie17-Nov-08 11:02
Samer Aburabie17-Nov-08 11:02 
GeneralRe: How to list Com Port usage and list of devices using those ports Pin
Rahul.RK17-Nov-08 20:03
Rahul.RK17-Nov-08 20:03 
Questioni am from greece and i want to write a file in greeks with data` from a textbox Pin
dianikol17-Nov-08 8:06
dianikol17-Nov-08 8:06 
AnswerRe: i am from greece and i want to write a file in greeks with data` from a textbox Pin
Pedram Behroozi17-Nov-08 8:38
Pedram Behroozi17-Nov-08 8:38 
GeneralRe: i am from greece and i want to write a file in greeks with data` from a textbox Pin
dianikol17-Nov-08 11:39
dianikol17-Nov-08 11:39 
GeneralRe: i am from greece and i want to write a file in greeks with data` from a textbox Pin
Pedram Behroozi17-Nov-08 19:42
Pedram Behroozi17-Nov-08 19:42 
Questionhow to make long time whit ConnectionTimeout Pin
E_Gold17-Nov-08 7:18
E_Gold17-Nov-08 7:18 
AnswerRe: how to make long time whit ConnectionTimeout Pin
Wendelius17-Nov-08 7:22
mentorWendelius17-Nov-08 7:22 
AnswerRe: how to make long time whit ConnectionTimeout Pin
PavanPareta17-Nov-08 19:11
PavanPareta17-Nov-08 19:11 
QuestionAll rows are not comming in dataset while filling from Excel.(when different datatype in excel column) Pin
ManojKumar1917-Nov-08 6:43
ManojKumar1917-Nov-08 6:43 
AnswerRe: All rows are not comming in dataset while filling from Excel.(when different datatype in excel column) Pin
leppie17-Nov-08 20:24
leppie17-Nov-08 20:24 
GeneralRe: All rows are not comming in dataset while filling from Excel.(when different datatype in excel column) Pin
ManojKumar1918-Nov-08 4:52
ManojKumar1918-Nov-08 4:52 
Questiona problem of multiple forms Pin
Seraph_summer17-Nov-08 5:18
Seraph_summer17-Nov-08 5:18 
AnswerRe: a problem of multiple forms Pin
Ennis Ray Lynch, Jr.17-Nov-08 5:35
Ennis Ray Lynch, Jr.17-Nov-08 5:35 
QuestionCase select versus IF Statement Pin
EliottA17-Nov-08 4:59
EliottA17-Nov-08 4:59 
AnswerRe: Case select versus IF Statement Pin
Ennis Ray Lynch, Jr.17-Nov-08 5:03
Ennis Ray Lynch, Jr.17-Nov-08 5:03 

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.