![]() ![]() | ||
Here's another one that, as with SendKeys (see the previous topic), doesn't really fit into a specific chapter, but is handy to know—the Beep function. You can use this function to make the computer emit a beep, as in this case when the user clicks a picture box control:
Private Sub PictureBox1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles PictureBox1.Click
Beep()
End Sub
Tip |
Beep comes in handy as an ultra-quick debugging aid to see if code is being run—for example, if you embed a Beep call in the code and you get a beep when you run it, the code is indeed being called and run. |
![]() ![]() | ||