Re: Timer
- From: "Alvo von Cossel I" <AlvovonCosselI@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 25 Jun 2005 23:52:02 -0700
yeah, sorry about that. i must have been in a hurry. i am using a timer but
my code closes both forms and i only want it to close the first one. here is
my code:
private void timer1_Tick(object sender, System.EventArgs e)
{
Form1 f = new Form1();
f.ShowDialog();
f.Dispose();
Close();
}
--
Alvo von Cossel I of Germany
"Moty Michaely" wrote:
> What way are you using to do that?
> Can you be more specific?
>
> - Moty-
>
> "Alvo von Cossel I" <AlvovonCosselI@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
> message news:4B00BEF2-FC42-4A1B-BD78-4E20031FCEA2@xxxxxxxxxxxxxxxx
> > hi,
> >
> > i have a form that stays on the screen for 300 milliseconds and then
> > closes.
> > straight after this, another form opens. that works but after that, the
> > second one closes. someone suggested that i should change the static void
> > main code which i have done and it still doesnt work. can anyone help me?
> > if
> > you could, id be truly grateful!
> >
> > cheers
> >
> > --
> > Alvo von Cossel I of Germany
>
>
>
.
- Follow-Ups:
- Re: Timer
- From: Moty Michaely
- Re: Timer
- Prev by Date: Re: Loading secondary form
- Next by Date: Re: Events
- Previous by thread: Re: Timer
- Next by thread: Re: Timer
- Index(es):
Relevant Pages
|