hi
any one help mee.
i am doing windows application.
when i open the form focus not showing on that form.
i opened form by using fallowing method
frm.show()
but this method need to act like frm.showdialog()
how to solve?
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 12, 2013, 4:33 AM EDT
Can you please share your code?
Regards,
Iftikar
VulpesRank #55 · 29.2K reputationPosted Jul 12, 2013, 5:40 AM EDT
frm.Show(this);
venkata kumarRank #5,034 · 314 reputationPosted Jul 12, 2013, 8:39 PM EDT
form1 frm1=new form1();
frm1.show();
the focus is not setting on this form.
Kunal VaishyaRank #990 · 2K reputationPosted Jul 12, 2013, 9:02 PM EDT
venkata kumarRank #5,034 · 314 reputationPosted Jul 12, 2013, 9:44 PM EDT
i am not using MDI application.
i tried that MDI form.
its opening multiple forms.
but focus is not setting on selected form.
VulpesRank #55 · 29.2K reputationPosted Jul 13, 2013, 12:19 AM EDT
Form1 frm1 = new Form1();
frm1.Show(this);
That will make the current form the 'owner' of the form you're opening and should ensure that it's always on top of the current from and receives the focus when first shown.
If it still doesn't work, then which form does receive the input focus - another form in your application or a form in a different application that you have open at the same time?