473,626 Members | 3,322 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with Flash screen form

i've created a flash screen form with the follw. code;
dim obj as new form2()
private sub form1_load( By val sender.....
me.timer1.start ()
obj.showdialog( )
end sub

private sub timer1_tick (By val Sender......
me.timer1.stop( )
obj.close()
end sub

The flash screen form is appearing, but i've to close it manually and then the next form appears. it should halt based on the Milisec time specified in the timer.property. plz help. 10x.
--------------------------------
From: Rehan Shaikh

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>VUT6hX0uGU+ A0Z/kvxS3KQ==</Id>
Nov 20 '05 #1
2 2253
"Rehan Shaikh via .NET 247" <an*******@dotn et247.com> schrieb
i've created a flash screen form with the follw. code;
dim obj as new form2()
private sub form1_load( By val sender.....
me.timer1.start ()
obj.showdialog( )
end sub

private sub timer1_tick (By val Sender......
me.timer1.stop( )
obj.close()
end sub

The flash screen form is appearing, but i've to close it manually and
then the next form appears. it should halt based on the Milisec time
specified in the timer.property. plz help. 10x.


I can not reproduce it. If the Timer's interval property is set to 3000,
Form2 closes after 3 sec as expected.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
Rehan Shaikh via .NET 247 wrote:
i've created a flash screen form with the follw. code;
dim obj as new form2()
private sub form1_load( By val sender.....
me.timer1.start ()
obj.showdialog( )
end sub

private sub timer1_tick (By val Sender......
me.timer1.stop( )
obj.close()
end sub

The flash screen form is appearing, but i've to close it manually and then the next form appears. it should halt based on the Milisec time specified in the timer.property. plz help. 10x.


Don't use Form.ShowDialog (). If a form is displayed as modal, the code
following the ShowDialog method is not executed until the dialog box is
closed. However, when a form is shown as modeless, the code following
the Show method is executed immediately after the form is displayed.

http://msdn.microsoft.com/library/?u...delessform.asp

Simply use Show() or (even better) start your splash-screen in its own
thread:

http://www.gotdotnet.com/Community/U...4-ab9233f4dc17
http://www.gotdotnet.com/community/u.../?query=splash

Cheers

Arne Janning
Nov 20 '05 #3

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

Similar topics

1
1994
by: Huw Lloyd | last post by:
I am developing a windows application and want to display a flash animation in a splash screen. I have the .fla file but i dont know how to load it into the shockwave flash object that I have on my form. I have tried this code in the forms load code but no no joy Me.vrFlash.LoadMovie(1, C:\Splash.fla") Me.vrFlash.Play()
0
1621
by: Doug Berrett | last post by:
Easy. I assume you want to add it to a Windows Form. Just add the "Shockwave Flash Object" to you toolbox and drag it onto a new form. This will then allow you to embed the Flash Active-X control as any other control on a Windows form. You can then set the SWF filename via code or the editor. Note however that this assumes that the user has Flash installed on their machines. I don't think you can legally redistribute the Flash OCX.
9
2501
by: Theodore A. Jencks | last post by:
Hi All, I have a problem that is two fold. First a little about the enviroment I'm using; I am running Microsoft Windows XP with all security patches applied. I use Mozilla 1.6 for all testing before I test on IE 6 w/ all updates. I am editing my style sheet with StyleMaster 3.5.2 and am hand coding. I use Dreamweaver MX 2004 and am also hand coding. I have a problem that is easily solved by using tables however I don't want to use...
2
1538
by: Mark | last post by:
Hi all, This is what I'm trying to do. I'm trying to load a flash movie transparently over my existing html page (not covering the full screen, but 75% of it), so it is kind of similar to a "splash screen" in the respect it is to be an introductory screen. I already have a flash movie made (although for some reason WMODE=TRANSPARENT isn't working), but we'll get to that in a sec. I also already have all the html for the playing the...
3
7668
by: VMI | last post by:
I asked this question some time ago, and I received a reply, but I never followed up on the suggestion. That's why I'm posting again... I'm trying to add a Macromedia Flash movie to my C# windows project so that I can use it as a screensaver. I was told that the easiest way would be to add a WebBrowser control to my Windows Form and then have it load the Flash movie, but I'm not sure how to do this. I have VS.Net 2005. Also, since I plan...
115
13256
by: post2google | last post by:
I was thinking about where to go for lunch the other day, so I went to hardees.com to see what the menu looked like these days. What comes up is a big note that my flash version is not new enough so I can't use the site. What complete losers! When are businesses going to understand that the purpose of a web site is to communicate with customers or business parterns and NOT so your "web master or "web engineer" can show off what they...
20
1715
by: Pete Marsh | last post by:
Wondering if anyone can see an error with this script. I get a server configuration error. THat could mean a module is not being loaded, but maybe there's a syntax error here, can anyone spot it? Thanks <? Error_Reporting(E_ALL & ~E_NOTICE); $subject="from ".$_REQUEST ; $headers= "From: ".$_REQUEST ."\n"; $headers.='Content-type: text/html; charset=iso-8859-1';
1
2521
by: raghudr | last post by:
Hi all, I am displaying a splash screen for which i have created a thread.Since my whole project is launched by windows service and that service will start automatically at the start of the PC and sometimes when i start or restart the PC i have observed that even though the long process is completed splash
0
8265
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8196
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8637
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8364
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8504
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6125
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5574
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4197
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1511
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.