Click here to Skip to main content
15,908,906 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Dear All,

Am new for c#.Now am going to do an small window application. Here my

project is like ATM. If anybody using atm means normal ATM window is open. When no

users are using ATM for last 10(ten) minutes and my slide show is opened on that time.

Whether it is possible in C# Windows Application. Please its very urgent. All

replies Welcome..


Thanks in Advance


Dhinesh Kumar.V
Posted
Comments
Sergey Alexandrovich Kryukov 24-Jul-12 1:02am    
Not clear.
--SA

1 solution

This is what i can understand from your question.
You are designing an application in which you show a normal window which is the "ATM" window. If this window is not in focus then after 10 minutes you want to run your slide show. Am i correct?

Here is what i want to ask:
1. Do you wish to show the slideshow of certain images in your original ATM window?


Here is what i can say on basis of what how i understood your question:
start a timer on the LostFocus event for the form, set to ten minutes, on the timer's tick event start your slide show stopping the timer.
if the windows regains focus stop the timer or slideshow whatever the case may be.

Sorry if i made a mistake in understanding your question.
 
Share this answer
 
Comments
Dhinesh kumar.V 25-Jul-12 1:24am    
Dear Sir/Madam,

Thanks for your reply. I have searched lostfocus Event at form Event

properties. But Form properties have nothing named as LostFocus. What can i do

here.
suvam8694 25-Jul-12 4:16am    
Using LostFocus and GotFocus in the form can be a bit unreliable as even when the focus is transferred to any control inside the form that can be focused then also the event is raised.

You can use the Activated and Deactivate event for the form more reliably for the same purpose.
If some problem still continues then please next time mention the version of the IDE and .Net you are using.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900