Re: Timer



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
>
>
>
.



Relevant Pages

  • Re: Main
    ... "Howard Swope" wrote: ... >> your homework. ... >> Alvo von Cossel I of Germany ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: combining css with c#
    ... > underlines itself. ... Using the WebBrowser control in .NET ... > Alvo von Cossel I of Germany ... There is no nobility anymore in Germany since ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Maximize
    ... (if it is possible to combine 2 languages)? ... "Brendan Grant" wrote: ... >> Alvo von Cossel I of Germany ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: .NET Development
    ... > Redistributing the .NET Framework: ... > The .Net framework size is 20 MB, so you may want to include it on your CD ... >> Alvo von Cossel I of Germany ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: savefiledialog
    ... > StreamWriter class is in System.IO namespace. ... >> Alvo von Cossel I of Germany ... >>> specified by the SaveFileDialog, directly write the text out with the ...
    (microsoft.public.dotnet.languages.csharp)