Hi Che,
Imports Microsoft.DirectX.DirectSound
Public Class Form1
Private _dev As Device
Private _buffer As SecondaryBuffer
_dev = New Device
_dev.SetCooperativeLevel(Me.Handle, CooperativeLevel.Priority)
End Class
end of code
This is the entirety of the code so far.
I have added both the directx and directsound references prior to coding this.
There are characters not reading in jaws through visual studios code form, apparently at random, though when I paste the code elsewhere, everything pastes correctly. I will assume the code I am writing in is sticking, kind of weird though.
Also, is there an option to turn off this annoying error message? It keeps reminding me of the error each time I try to arrow up or down a line.
Thank you for the help.
Che
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
End Sub
End Class
----- Original Message ----- From: "Mark Long" <Mark.Long@xxxxxxxxxxxxx>
To: <program-l@xxxxxxxxxxxxx>
Sent: Thursday, September 22, 2005 6:37 PM
Subject: [program-l] Re: vb: shaky editor
You had best send the whole sub.
________________________________
From: program-l-bounce@xxxxxxxxxxxxx on behalf of Che Sent: Thu 22/09/2005 23:54 To: program-l@xxxxxxxxxxxxx Subject: [program-l] Re: vb: shaky editor
I don't think so. Here is the way it is presented in the tutorial:
Add the following to the form's Load handler: _dev = New Device _dev.SetCooperativeLevel(Me.Handle, CooperativeLevel.Priority)
This comes after _dev has been declared.
----- Original Message ----- From: "Mark Long" <Mark.Long@xxxxxxxxxxxxx> To: <program-l@xxxxxxxxxxxxx> Sent: Thursday, September 22, 2005 5:45 PM Subject: [program-l] Re: vb: shaky editor
Are you sure that it isn't an underline and a space at the end of a line? That would be a line continuation character.
________________________________
From: program-l-bounce@xxxxxxxxxxxxx on behalf of Che Sent: Thu 22/09/2005 23:23 To: program-l@xxxxxxxxxxxxx Subject: [program-l] vb: shaky editor
I am working on a tutorial and putting in the code line for line as they have it listed. They have a variable name that starts with an underline: Code snippet:
Private _dev As Device
_dev = New Device
end snippet.
When I move off this line, I get an error saying declaration expected that
is pointing to the line
_dev = New device
When I go through the line character by character, it is not showing me the underline before the dev in the editor. If I add an underline, it is still not showing it in the editor, and as soon as I arrow off the line, I get the same error. Is this just a jaws bug? Is there a way to verify that the underline is there? Why would I be getting an undeclared variable error when it looks like I have just declared the variable? I am copying this code line for line from the online tutorial, and it is coded for vb .net 2005 express beta, which is what I am using.
Finally, how do I turn off this annoying error box that pops up everytime
I try to edit my code? As it stands, I have to alt f4 it away, then f7 back
to my form and arrow down to the line I need to edit. Gotta be a better
way, eh?
Much thanks,
Che
** To leave the list, click on the immediately-following link:- ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe] ** If this link doesn't work then send a message to: ** program-l-request@xxxxxxxxxxxxx ** and in the Subject line type ** unsubscribe ** For other list commands such as vacation mode, click on the ** immediately-following link:- ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq] ** or send a message, to ** program-l-request@xxxxxxxxxxxxx with the Subject:- faq
** To leave the list, click on the immediately-following link:- ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe] ** If this link doesn't work then send a message to: ** program-l-request@xxxxxxxxxxxxx ** and in the Subject line type ** unsubscribe ** For other list commands such as vacation mode, click on the ** immediately-following link:- ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq] ** or send a message, to ** program-l-request@xxxxxxxxxxxxx with the Subject:- faq
** To leave the list, click on the immediately-following link:- ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe] ** If this link doesn't work then send a message to: ** program-l-request@xxxxxxxxxxxxx ** and in the Subject line type ** unsubscribe ** For other list commands such as vacation mode, click on the ** immediately-following link:- ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq] ** or send a message, to ** program-l-request@xxxxxxxxxxxxx with the Subject:- faq
** To leave the list, click on the immediately-following link:- ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=unsubscribe] ** If this link doesn't work then send a message to: ** program-l-request@xxxxxxxxxxxxx ** and in the Subject line type ** unsubscribe ** For other list commands such as vacation mode, click on the ** immediately-following link:- ** [mailto:program-l-request@xxxxxxxxxxxxx?subject=faq] ** or send a message, to ** program-l-request@xxxxxxxxxxxxx with the Subject:- faq