Thank you for your rely ..... itry that code but theres an error ... so i made this but why theres only one dialogresult prompting which is "You regret it"
this is my code
#3 Question .... ALso what is the correct syntax now about timerCode:MsgBox("Are you sure?", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) If Windows.Forms.DialogResult.Yes Then MsgBox("You regret this") ElseIf Windows.Forms.DialogResult.No Then MsgBox("Good Choice") End If
coz when i use this code in VB 6.0 its ok ... it prompting how many secs. did click the button this is my code
Using VB 6.0
but when use it in VB.Net it says "Timer is a type cannot use as an expression"Code:Dim timeAfter as Single, timeBefore as Single, num as Single timeAfter = Timer Msgbox "Do you want to know how many secs. did you clicked me?", VBExclamation timeBefore = Timer num = timeBefore - timeAfter Msgbox "It took " & num & " sec."
CheersCode:Dim timeAfter as Single, timeBefore as Single, num as Single timeAfter = Timer Msgbox "Do you want to know how many secs. did you clicked me?", VBExclamation timeBefore = Timer num = timeBefore - timeAfter Msgbox "It took " & num & " sec."




Reply With Quote