473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Pop up dialog after Main Form displayed

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
Sep 16 '06 #1
4 3257
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
Sep 16 '06 #2
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
Sep 16 '06 #3
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" <ro********@yahoo.com>
???????:11**********************@i42g2000cwa.googl egroups.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

Sep 18 '06 #4
On Mon, 18 Sep 2006 12:33:28 +0800, "Jason" <ja********@gmail.comwrote:
>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
>"rowe_newsgroups" <ro********@yahoo.com>
???????:11**********************@i42g2000cwa.goog legroups.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
Sep 18 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: jaxCtiDev | last post by:
My application is written in C# and has several dialog Windows Forms. All button objects on all forms are using FlatStyle=Flat. I have background colors on each button and tool-tips describing...
2
by: Dennis C. Drumm | last post by:
I have a window form dialog that I use in a non modal fashion. It is displayed using Show() in stead of ShowDialog() from the parent windows form application. I have TextBoxes in that dialog that...
1
by: Terry | last post by:
I've seen several posts from people who have seen this flashing in TreeView's when resizing a form. I've noticed it in my app, but only in the child windows. For example, my main form has a...
0
by: Andrew | last post by:
I get a Null Reference Exception if I close a modeless form (that is, a form displayed using Show()) when a selection is made from a ComboxBox. If the form is modal (displayed using ShowDialog())...
4
by: ronenk | last post by:
I have this code to load an authentication form once my app is loaded. I want the authentication form to be closed if a user is authenticated successfully and to give the option to close app on his...
18
by: Derek Martin | last post by:
Hi there, this is probably really dumb, but I am using a dialog as my main form and my startup form is my splash screen - which implements some progress bars to load up some relevant data. When...
14
by: Simon Abolnar | last post by:
I would like to know how to open child form from dialog form. Thanks for help! Simon
1
by: dan.c.roth | last post by:
oForm.Close() vs this.Close() in a modal dialog. oFrom.Close() calls Form.Dispose() but this.Close() ,say in the click event of the Form, does not. I can think of the reason for this but is...
11
by: Zytan | last post by:
I have created a new form from the main form. When I close the main form with the 'x' close button, its Form.FormClosed event is run, but not the dialog's. Is this normal? It is ok /...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.