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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Jul 13, 2013, 4:19 AM
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?
venkata kumarPosted Jul 13, 2013, 1:44 AM
i am not using MDI application.
i tried that MDI form.
its opening multiple forms.
but focus is not setting on selected form.
Kunal VaishyaPosted Jul 13, 2013, 1:02 AM
venkata kumarPosted Jul 13, 2013, 12:39 AM
form1 frm1=new form1();
frm1.show();
the focus is not setting on this form.
VulpesPosted Jul 12, 2013, 9:40 AM
frm.Show(this);
Iftikar HussainPosted Jul 12, 2013, 8:33 AM
Can you please share your code?
Regards,
Iftikar