Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reactivating the screen

Status
Not open for further replies.

Phi1Smith

Programmer
Jun 5, 2001
33
0
0
GB
Hi
I'm working on a data logging program which will occasionally go into an alarm status. As the alarm is activated I want to get the Screen to wake up if its on standby. Could someone point me in the right direction.

Many Thanks

Phil
 
Have a small timer that scans a text box within a form every few seconds. If that textbox is changed (from a one to a Zero it sets of the active form.) Like so

form 1 loads first (It is the form that you want to pop up)

Option Explicit

Private Sub Form_Load()
tmrAlarm.Enabled = True
Form2.Show
End Sub

Private Sub tmrAlarm_Timer()
If Form2.txtTrigger = "1" Then Form1.Show
End Sub


Is this any help? David Lerwill
"If at first you don't succeed go to the pub"
 
WHAT!
Please read the Question

Anyway while replying to derwills responce I answered my own question, JUST USE "SendKeys"

Thank you dwlerwill for triggering this off.

Phil:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top