Home All Groups Group Topic Archive Search About

Pop up dialog after Main Form displayed

Author
16 Sep 2006 10:45 AM
Jason
Hi all,

I am developing a windows application. After the main form is displayed, I
want to immediately pop up a message box e.g. MsgBox("Hello").

However, if I place the MsgBox code inside MainForm_Load(,) MyBase.Load, the
message box will appear before the display of the main form.

So in which form event or method we can know the main form has just been
displayed?

Thanks,
Jason

Author
16 Sep 2006 2:54 PM
Oenone
Jason wrote:
> However, if I place the MsgBox code inside MainForm_Load(,)
> MyBase.Load, the message box will appear before the display of the
> main form.

Try adding "Me.Show()" directly before the MsgBox().

--

(O)enone
Author
16 Sep 2006 4:12 PM
rowe_newsgroups
Or you could put it in the form's "Shown" event.

Thanks,

Seth Rowe

Oenone wrote:
Show quoteHide quote
> Jason wrote:
> > However, if I place the MsgBox code inside MainForm_Load(,)
> > MyBase.Load, the message box will appear before the display of the
> > main form.
>
> Try adding "Me.Show()" directly before the MsgBox().
>
> --
>
> (O)enone
Author
18 Sep 2006 4:33 AM
Jason
Hello,

I cannot find a "Shown" event in a form. Where could you find it? I am using
..NET 1.1

Thanks,
Jason


"rowe_newsgroups" <rowe_em***@yahoo.com>
???????:1158423149.987149.279***@i42g2000cwa.googlegroups.com...
Show quoteHide quote
> Or you could put it in the form's "Shown" event.
>
> Thanks,
>
> Seth Rowe
>
> Oenone wrote:
>> Jason wrote:
>> > However, if I place the MsgBox code inside MainForm_Load(,)
>> > MyBase.Load, the message box will appear before the display of the
>> > main form.
>>
>> Try adding "Me.Show()" directly before the MsgBox().
>>
>> --
>>
>> (O)enone
>
Author
18 Sep 2006 8:04 AM
gene kelley
On Mon, 18 Sep 2006 12:33:28 +0800, "Jason" <jason_y***@gmail.com> wrote:

>Hello,
>
>I cannot find a "Shown" event in a form. Where could you find it? I am using
>.NET 1.1
>
>Thanks,
>Jason
>
>


Form Shown event is new in Net 2.0.


Gene



Show quoteHide quote
>"rowe_newsgroups" <rowe_em***@yahoo.com>
>???????:1158423149.987149.279***@i42g2000cwa.googlegroups.com...
>> Or you could put it in the form's "Shown" event.
>>
>> Thanks,
>>
>> Seth Rowe
>>
>> Oenone wrote:
>>> Jason wrote:
>>> > However, if I place the MsgBox code inside MainForm_Load(,)
>>> > MyBase.Load, the message box will appear before the display of the
>>> > main form.
>>>
>>> Try adding "Me.Show()" directly before the MsgBox().
>>>
>>> --
>>>
>>> (O)enone
>>
>