Friday, November 19, 2010

How to make an alarm in vb 2005?

I need to create a simple alarm using vb 2005.

Anyone could just post the code and i will try it.

If it works, i will vote it as best answer.

Thank you!How to make an alarm in vb 2005?
Is this a time-based alarm? If so, just use a Timer component and subscribe to it's Tick event. In the Tick event handler, perform whatever action you require.How to make an alarm in vb 2005?
What do you mean by alarm?

VB uses MsgBox

MsgBox(prompt[, buttons][, title][, helpfile, context])



# 0 = vbOKOnly - OK button only

# 1 = vbOKCancel - OK and Cancel buttons

# 2 = vbAbortRetryIgnore - Abort, Retry, and Ignore buttons

# 3 = vbYesNoCancel - Yes, No, and Cancel buttons

# 4 = vbYesNo - Yes and No buttons

# 5 = vbRetryCancel - Retry and Cancel buttons

# 16 = vbCritical - Critical Message icon

# 32 = vbQuestion - Warning Query icon

# 48 = vbExclamation - Warning Message icon

# 64 = vbInformation - Information Message icon

No comments:

Post a Comment