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

Problem with a timer

devonknows
137 100+
hi, ive been working on a timer, to close my splash screen after to 3 seconds on load up the main form. now it goes through all the form_load section and at the end of form load ive put in splashtimer.enabled = true (interval is already set at 3000) Private splashtimer_timer() runs and hides frmSplash and Shows MainAlbumForm,

now the problem i get is when i try and close MainAlbumForm, everytime i click the Close button (top right X) it re-opens after 3 seconds, when i make the exe, i cant stop the program without actually going into taskmanager,

please any advice you can give on this i would be most greatful, ive even tried putting
splashtimer.enabled = false at the end of the Private Sub splashtimer_timer()

so any help would be appreciated

Kind Regards
Devon.
Dec 3 '06 #1
2 1127
Killer42
8,435 Expert 8TB
I think you'll find that unloading the splash form rather than hiding it will do the trick.

I admit though, I'm surprised that disabling the timer didn't work.
Dec 3 '06 #2
sashi
1,754 Expert 1GB
hi, ive been working on a timer, to close my splash screen after to 3 seconds on load up the main form. now it goes through all the form_load section and at the end of form load ive put in splashtimer.enabled = true (interval is already set at 3000) Private splashtimer_timer() runs and hides frmSplash and Shows MainAlbumForm,

now the problem i get is when i try and close MainAlbumForm, everytime i click the Close button (top right X) it re-opens after 3 seconds, when i make the exe, i cant stop the program without actually going into taskmanager,

please any advice you can give on this i would be most greatful, ive even tried putting
splashtimer.enabled = false at the end of the Private Sub splashtimer_timer()

so any help would be appreciated

Kind Regards
Devon.

Hi there,

Please post your code segment as it would ease in debuging the code. Good luck & Take care.
Dec 4 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: tym | last post by:
HELP!!! I'm going round the twist with this... I have a VB6 application which is using DAO to access a database (Please - no lectures on ADO, I know what I'm doing with DAO!!) Ok, problem...
6
by: Antti Laakso | last post by:
Hi i have function like above Public Sub halytystutkinta() Dim ds As New DataSet ds = dl2.HaeHalytys() Dim onkohal As Int16 onkohal = ds.Tables(0).Rows(0).Item("onkohalytys") halid =...
3
by: Kris Palmer | last post by:
hi, can somebody explain this problem? it's driving me crazy! i have a requirement to dynamically create a variable quantity of timers with associated start button based on the contents of a...
8
by: Stephen Rice | last post by:
Hi, I have a periodic problem which I am having a real time trying to sort. Background: An MDI VB app with a DB on SQL 2000. I have wrapped all the DB access into an object which spawns a...
2
by: zamir.khan | last post by:
Hello all, New to the groups, sorry if this the wrong forum/etiquette. I am coding a c++ application that requires the use of a timer-triggered event handler. I decided to use the timer provided...
3
by: ken | last post by:
Hello, I can't figure out how to solve this problem. I modified the timer example given in the help section. It increments a count every 3 millisecond in order to simulate a tank being filled with...
7
by: Fernando Barsoba | last post by:
Hi, After following the advice received in this list, I have isolated the memory leak problem I am having. I am also using MEMWATCH and I think it is working properly. The program does some...
2
by: r norman | last post by:
Please excuse the cross-posting. This question was raised in microsoft.public.dotnet.general but hasn't been answered so I am trying where I can. There are two of us who have the same problem...
6
by: Dave | last post by:
I have a service that has 6 different threads. Each thread has a timer on it that elapses at about the same time (if not the same time). When the timer elapses I am trying to log a message by...
2
by: Johnny Jörgensen | last post by:
I've got a process I want to run in a thread separate from my main application thread, so I've used a backgroundworker component, and in frmMain.Load I invoke the code using...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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...

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.