Re: Program not ending???

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Allright first off I can't keep updating down in the message. I'm getting lost.

Where do I put your code?  I'm looking at a form with a timer on it.


Armin Zingler wrote:
"cj" <cj@xxxxxxxxxxxxx> schrieb
> >
> > If I don't call me.show() the program never displays on the
> > screen
>
> Yes, because you execute the code /before/ the Form has been
> shown, i.e. in form_load. Why not
> 1. show the form
> 2. execute the code
> ?
>

That's fine. What event would I use.

There is no event. These are two commands or two blocks of commands.

 I do not wish to use another
control--timer.

Why?

I want this to run when the program starts.

See my other code: it runs in Sub Main. Sub Main is the sub that is started when you start the application (open the project properties to set the "startup object")

Since
you indicated you have experience pre-.net please help me from that
mindset.  I do not understand your .net code.

Which part? The code only

1. shows the Form
2. Shows the Folderbrowserdialog
3. If step two has not been cancelled:
3.1. The path is passed to the Form and the timer is started.
3.2. Application.run starts the message loop (running til the Form has been
closed)


Armin

.



Relevant Pages

  • Re: Knowing your oranges.
    ... I don't know who to blame it on, but I do know I agree with your ... common position. ... I think I once lost myself a few friends when, ... What good is being an executive if you never get to execute anyone? ...
    (alt.usage.english)
  • ToolTip and MouseOver events lost on Hide/Minimize
    ... All my tooltips seem to be lost upon Hiding the form or setting the ... WindowsState to Minimized then Normal as well as not having any events ... execute for my buttons MouseHover/MouseLeave events after hiding the form. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Disappearing icon
    ... MS MVP Windows - Internet Explorer ... lost in XP <lost in XP ... icon has disappeared from my system tray. ... I'd like to get it back, or at least find some other way to execute ...
    (microsoft.public.windowsxp.general)
  • Re: All Programs Menu
    ... Martin wrote: ... > After installing SP2, it seems I have lost some of my ... > still there, I can go to the directory and execute them, ...
    (microsoft.public.windowsxp.basics)
  • Subquery returned more than 1 value. This is not permitted when th
    ... I am writing a cursor in which i am updating a table for each matching name ... Now when ever i execute this statement as it has different salary it return more then 1 record raising an Error as ...
    (microsoft.public.sqlserver.server)