i am created a form it wont execute the other forms?

Posted by Sudheep.grandhe under C# on 12/8/2011 | Points: 10 | Views : 819 | Status : [Member] | Replies : 4
Hi,

i am created a form it wont shows the login form.still it was executing that form only.please do the needful.


private void timer1_Tick(object sender, EventArgs e)
{
int d;
for (d = 0; d <= 100; d++)
progressBar1.Value = d;
this.Visible = false;
AuthenticationForm f = new AuthenticationForm();
f.Show();
timer1.Enabled = false;
}

Best,
Sudheep.



Responses

Posted by: Sksingh on: 12/8/2011 [Member] Starter | Points: 25

Up
0
Down
Hi,
try below code.
I am not sure about this which object refering it.

private void timer1_Tick(object sender, EventArgs e)
{
int d;
for (d = 0; d <= 100; d++)
{
progressBar1.Value = d;
//this.Visible = false;
//AuthenticationForm f = new AuthenticationForm();
//f.Show();
//timer1.Enabled = false;
}
timer1.Enabled = false;
AuthenticationForm f = new AuthenticationForm();
f.Show();
this.hide();

}


Regards,
Sunil

Sudheep.grandhe, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sudheep.grandhe on: 12/8/2011 [Member] Starter | Points: 25

Up
0
Down
Hi,

Thanks for replying to me.it wont show the next form.it will execute the same form.continuously.

Best,
Sudheep.

Sudheep.grandhe, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sksingh on: 12/8/2011 [Member] Starter | Points: 25

Up
0
Down
Hi,

Plz comment this.hide() or this.visible = false and try again.
From which page r u calling it . Give some details description..


Regards,
Sunil

Sudheep.grandhe, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sudheep.grandhe on: 12/8/2011 [Member] Starter | Points: 25

Up
0
Down
Hi,

i am calling it from the splashscreen form page only.in this i wrote like authenticationform=new authentication form();.when ever i execute the project initial step is splashscreen after that authenticaiton form.

Best,
Sudheep.

Sudheep.grandhe, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response