This will work:
Public frm1 As New Form1
Public frm2Open As Boolean
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If Not frm2Open Then...
This example plays a sound from a file.
Public Class SoundClass
Declare Auto Function PlaySound Lib "winmm.dll" (ByVal name _
As String, ByVal hmod As Integer, ByVal flags As Integer) As Integer
' name specifies the sound file when the SND_FILENAME flag is set.
VB has great built in debugger tools. Set a breakpoint in your code using F9, then run the program and proceed step by step with F11. Move the mouse over variables to see their values and go from there. Good luck!
When I run the following program, the listbox does not scroll correctly. When clicking below the tab on the scroll bar (i.e. quickly scrolling) the scroll animation appears backwards: When scrolling down, the items should appear to move up, but they move down.
Anyone have some insight?