Click here to Skip to main content
15,912,457 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Joystick/Gamepad Pin
Christian Graus18-Sep-05 11:05
protectorChristian Graus18-Sep-05 11:05 
GeneralRe: Joystick/Gamepad Pin
Jerry___18-Sep-05 12:05
Jerry___18-Sep-05 12:05 
GeneralRe: Joystick/Gamepad Pin
Christian Graus18-Sep-05 12:12
protectorChristian Graus18-Sep-05 12:12 
GeneralRe: Joystick/Gamepad Pin
Jerry___19-Sep-05 0:32
Jerry___19-Sep-05 0:32 
GeneralRe: Joystick/Gamepad Pin
Dave Kreskowiak19-Sep-05 1:04
mveDave Kreskowiak19-Sep-05 1:04 
GeneralRe: Joystick/Gamepad Pin
Jerry___19-Sep-05 3:06
Jerry___19-Sep-05 3:06 
GeneralRe: Joystick/Gamepad Pin
Dave Kreskowiak19-Sep-05 5:15
mveDave Kreskowiak19-Sep-05 5:15 
GeneralRe: Joystick/Gamepad Pin
Jerry___19-Sep-05 8:48
Jerry___19-Sep-05 8:48 
Hello again,

I'm allmost done. the program works just like the C# one.
Still one problem, need to translate this to VB.Net:

byte[] buttons = state.GetButtons();<br />
<br />
			int button = 0;<br />
			foreach (byte b in buttons)<br />
			{<br />
				if (0!= (b & 0x80))<br />
					strText += button.ToString("00 ");<br />
				button++;<br />
			}<br />
			labelButtons.Text = strText;<br />
		}


Cant figure out the 0x80 part, and cant find it anywhere either, not even in the help section.
I suppose ("00 ") is a format.

The rest works just fine; you were absolutely right about knowing more about C# than you think!
GeneralRe: Joystick/Gamepad Pin
Jerry___19-Sep-05 9:51
Jerry___19-Sep-05 9:51 
QuestionMDI Pin
JJRW18-Sep-05 3:41
JJRW18-Sep-05 3:41 
AnswerRe: MDI Pin
Dave Kreskowiak19-Sep-05 1:00
mveDave Kreskowiak19-Sep-05 1:00 
Questionbluetooth connection Pin
ecentinela18-Sep-05 1:15
ecentinela18-Sep-05 1:15 
AnswerRe: bluetooth connection Pin
seee sharp18-Sep-05 17:58
seee sharp18-Sep-05 17:58 
GeneralRe: bluetooth connection Pin
ecentinela18-Sep-05 20:29
ecentinela18-Sep-05 20:29 
QuestionEllispe button or ellispe form Pin
Pravat Maskey17-Sep-05 23:15
Pravat Maskey17-Sep-05 23:15 
QuestionVB.NET Listview Extended Styles Pin
Gate Crasher17-Sep-05 16:24
Gate Crasher17-Sep-05 16:24 
QuestionSecurity...... Pin
daviiie17-Sep-05 7:30
daviiie17-Sep-05 7:30 
AnswerRe: Security...... Pin
Brian Van Beek17-Sep-05 18:02
Brian Van Beek17-Sep-05 18:02 
GeneralRe: Security...... Pin
daviiie17-Sep-05 21:21
daviiie17-Sep-05 21:21 
AnswerRe: Security...... Pin
Colin Angus Mackay17-Sep-05 22:51
Colin Angus Mackay17-Sep-05 22:51 
QuestionCan anyone help Pin
DanChin17-Sep-05 7:02
DanChin17-Sep-05 7:02 
AnswerRe: Can anyone help Pin
Christian Graus18-Sep-05 11:06
protectorChristian Graus18-Sep-05 11:06 
GeneralRe: Can anyone help Pin
Anonymous21-Sep-05 8:34
Anonymous21-Sep-05 8:34 
QuestionLearning vb.net Pin
Member 226908017-Sep-05 5:32
Member 226908017-Sep-05 5:32 
AnswerRe: Learning vb.net Pin
Brian Van Beek17-Sep-05 18:03
Brian Van Beek17-Sep-05 18:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.