473,386 Members | 1,958 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,386 software developers and data experts.

Problem loading and displaying a form

I am creating a form, then displaying it using ShowDialog().

The problem is that thie form is supposed to display itself, and then
a sound is played. Unfortunately, the sound always starts up before
the form is painted. Is there an event that indicates that the form
has been completely displayed on the screen, so I can then begin the
sound player?

Many thanks in advance,

Jon R.
Nov 16 '05 #1
2 1136
Sat. Sep. 25, 2004 6:25 PM PT

It is a common windows programming. Put a Timer in your form Load event, for
200, 300 ms (mili seconds) when it completes stop the timer and start the
sound file. Try it.

Good Luck.

"JDR2000" <jd***********@yahoo.com> wrote in message
news:28**************************@posting.google.c om...
I am creating a form, then displaying it using ShowDialog().

The problem is that thie form is supposed to display itself, and then
a sound is played. Unfortunately, the sound always starts up before
the form is painted. Is there an event that indicates that the form
has been completely displayed on the screen, so I can then begin the
sound player?

Many thanks in advance,

Jon R.

Nov 16 '05 #2
Have you tried the Form's Load event? It gets called right b4 the form
is displayed and may give you what you want.
Nov 16 '05 #3

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

Similar topics

0
by: coding | last post by:
The purpose of the script below is to load the same news item into two different MySQL tables (thus displaying the same news item on two web pages). The problem I am having is this: The script...
7
by: Michael Cleroux | last post by:
I'm working with Access2002 I'm trying to get the Sub-form to filter correctly programmatically. I've got the records loading up correctly in the form, and sub-form, with the exception that the...
13
by: Jason Jacob | last post by:
To all, I have a GUI program (use c#), and I have create a Thread for loading some bulk data, I also arrange the GUI program like this: 1) load a form showing "Wait for loading..." etc 2) a...
2
by: Bernie Yaeger | last post by:
This is a simple question without, I'm afraid, a simple answer: I am loading a datatable with a fill method in a load event of a window. I know how to hook up to the rowchanged event so that I can...
1
by: Reny J Joseph Thuthikattu | last post by:
Hi, Can any one tell me how can i change the display language after loading the MDI? regards Reny ---
15
by: Mike Fellows | last post by:
im running the code below when a new item is selected within a combobox the code runs fine but when it gets to me.close it crashes - it doesnt start the next form just crashes (its not debugabble)...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
4
by: BerkshireGuy | last post by:
Is there an event that triggers as a form is loading? I want to display a "loading form" event as the form is loading since it tends to take 20 second or so to open. TIA Brian
0
by: news.ipartners.pl | last post by:
Hello, I've run across problem with paging in gridview. I have 2 elementson my web page - drop down list filled with manufacturers and grid view for displaying data connected with certain...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.