469,902 Members | 1,815 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,902 developers. It's quick & easy.

Form Focus Problem

Hi,

i m having a problem getting the focus on the form, i m starting two
form one after another, here is the sequence. first is splash second is
dialog taking values

main()
{
Start new thread and start splash in it with Application.Run() or
splash.ShowDialog

After some work i closed it with splash.close

starts second form with application.run() or form.showdialog
}

second form is not selected when launched, if i set topmost it is above
all but values cannot be entered. when i close splash focus goes to any
other window below it, like VS or windows explorer.

Thanks in advance.

Mar 22 '06 #1
2 2010
Hi
Please post your code sample

Mar 22 '06 #2
it is bit long so i will send some part, i m starting splash in
constructor of form1. i hope this description clearly shows my problem.
main()
{

Form1 frm= new Form1();

Application.Run(frm);

}

public Form1()
{
splash = new frmSplashScreen();
//set splash screen properties
Thread splashThread = new Thread(new ThreadStart(startSplash));
splashThread.Start();

//change splash according to this changes in this thread

//after some time

splash.Close();
}

startSplash()
{
Application.Run(splash);
}

Mar 22 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by greg.scharlemann | last post: by
17 posts views Thread by Neil Ginsberg | last post: by
6 posts views Thread by Ekim | last post: by
7 posts views Thread by Pygmalion | last post: by
6 posts views Thread by =?Utf-8?B?U2NvdHQgTGFt?= | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.