Click here to Skip to main content
15,892,768 members
Home / Discussions / C#
   

C#

 
AnswerRe: Convert C# windows app to android Pin
V.2-Jan-12 1:39
professionalV.2-Jan-12 1:39 
QuestionLooking for help with form focus Pin
turbosupramk330-Dec-11 18:06
turbosupramk330-Dec-11 18:06 
AnswerRe: Looking for help with form focus Pin
Richard MacCutchan30-Dec-11 22:38
mveRichard MacCutchan30-Dec-11 22:38 
GeneralRe: Looking for help with form focus Pin
turbosupramk331-Dec-11 3:08
turbosupramk331-Dec-11 3:08 
GeneralRe: Looking for help with form focus Pin
Richard MacCutchan31-Dec-11 3:44
mveRichard MacCutchan31-Dec-11 3:44 
GeneralRe: Looking for help with form focus Pin
turbosupramk331-Dec-11 4:19
turbosupramk331-Dec-11 4:19 
AnswerRe: Looking for help with form focus Pin
Alan N31-Dec-11 3:43
Alan N31-Dec-11 3:43 
GeneralRe: Looking for help with form focus Pin
turbosupramk331-Dec-11 4:18
turbosupramk331-Dec-11 4:18 
Hi Alan,

Thank you for the reply. I did us Form.Show(); instead of Form.ShowDialog(); and ironically enough I now have the exact opposite of my problem. My form is now non-modal, which is what I want, but I would like for it to be brought to the foreground.

1) It is an addin DLL that has a configuration form inside of it. The form configures some of the DLL settings, for when it is ran inside of the parent application.
2) Yes
3) Yes because of ShowDialog();

It is reasonable for the user to terminate the form and dialog, I would just like it to be brought to the foreground now when the form is displayed.

I just tried this code, and it seems to be working ... what do you think?

C#
this.TopMost = true;
this.Focus();
this.BringToFront();
this.TopMost = false;

GeneralRe: Looking for help with form focus Pin
Alan N31-Dec-11 7:08
Alan N31-Dec-11 7:08 
GeneralRe: Looking for help with form focus Pin
turbosupramk331-Dec-11 9:32
turbosupramk331-Dec-11 9:32 
GeneralRe: Looking for help with form focus Pin
turbosupramk331-Dec-11 9:50
turbosupramk331-Dec-11 9:50 
AnswerRe: Looking for help with form focus Pin
DaveAuld31-Dec-11 3:46
professionalDaveAuld31-Dec-11 3:46 
GeneralRe: Looking for help with form focus Pin
turbosupramk331-Dec-11 4:21
turbosupramk331-Dec-11 4:21 
AnswerRe: Looking for help with form focus Pin
BillWoodruff1-Jan-12 15:13
professionalBillWoodruff1-Jan-12 15:13 
QuestionHow Do We Lock a Portion of a File? Pin
Richard Andrew x6430-Dec-11 16:06
professionalRichard Andrew x6430-Dec-11 16:06 
AnswerRe: How Do We Lock a Portion of a File? Pin
Dave Kreskowiak30-Dec-11 17:54
mveDave Kreskowiak30-Dec-11 17:54 
GeneralRe: How Do We Lock a Portion of a File? Pin
Richard Andrew x6430-Dec-11 17:57
professionalRichard Andrew x6430-Dec-11 17:57 
GeneralRe: How Do We Lock a Portion of a File? Pin
BobJanova31-Dec-11 2:03
BobJanova31-Dec-11 2:03 
QuestionXML document Creation using xml writer. Please help its urgent Pin
Sachin sakpal30-Dec-11 1:27
Sachin sakpal30-Dec-11 1:27 
AnswerRe: XML document Creation using xml writer. Please help its urgent PinPopular
Not Active30-Dec-11 2:03
mentorNot Active30-Dec-11 2:03 
GeneralRe: XML document Creation using xml writer. Please help its urgent Pin
SledgeHammer0130-Dec-11 9:40
SledgeHammer0130-Dec-11 9:40 
AnswerRe: XML document Creation using xml writer. Please help its urgent Pin
Not Active30-Dec-11 2:07
mentorNot Active30-Dec-11 2:07 
AnswerRe: XML document Creation using xml writer. Please help its urgent Pin
PIEBALDconsult30-Dec-11 2:42
mvePIEBALDconsult30-Dec-11 2:42 
AnswerRe: XML document Creation using xml writer. Please help its urgent Pin
Shameel30-Dec-11 8:39
professionalShameel30-Dec-11 8:39 
QuestionHow to auto detect row version, if some one update manually Pin
Md. Marufuzzaman29-Dec-11 19:26
professionalMd. Marufuzzaman29-Dec-11 19:26 

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.