Click here to Skip to main content
15,886,026 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionLinq Pin
programmervb.netc++29-Jan-09 9:49
programmervb.netc++29-Jan-09 9:49 
AnswerRe: Linq Pin
johnsontroye29-Jan-09 10:01
johnsontroye29-Jan-09 10:01 
GeneralRe: Linq Pin
programmervb.netc++29-Jan-09 12:18
programmervb.netc++29-Jan-09 12:18 
QuestionBrowser Control Help Pin
bonejack29-Jan-09 7:01
bonejack29-Jan-09 7:01 
AnswerRe: Browser Control Help Pin
Tad McClellan29-Jan-09 17:19
professionalTad McClellan29-Jan-09 17:19 
QuestionUsing Windows Xbox 360 controller with VB.net Pin
the fossil29-Jan-09 5:35
the fossil29-Jan-09 5:35 
AnswerRe: Using Windows Xbox 360 controller with VB.net Pin
Dave Kreskowiak29-Jan-09 18:23
mveDave Kreskowiak29-Jan-09 18:23 
GeneralRe: Using Windows Xbox 360 controller with VB.net Pin
the fossil30-Jan-09 2:30
the fossil30-Jan-09 2:30 
What a good suggestion, I didn't know they existed. I used-

http://www.developerfusion.com/tools/convert/csharp-to-vb/


and came up with this

Imports Microsoft.Xna.Framework.Input
'references

'goto project-add references
'add all xna from .net tab
'go to project - properties -references tag
'under imported namespace check
'Microsoft.xna
'Microsoft.XnaFramework
'Microsoft.XnaFramework.Content
'Microsoft.XnaFramework.GameServices


'useful site for code conversion C to vb
'http://www.developerfusion.com/tools/convert/csharp-to-vb/

Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub


    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        Dim currentState As GamePadState = GamePad.GetState(PlayerIndex.One)
        If currentState.IsConnected Then
            If currentState.Buttons.A = ButtonState.Pressed Then
                Label2.Text = "pressed"
            Else
                Label2.Text = "Released"
            End If
            Label1.Text = currentState.ThumbSticks.Left.X.ToString()
        Else
            MessageBox.Show("Controller is not connected")
            Timer1.Enabled = False
        End If

    End Sub
End Class






Hope this helps someone.

Steve
GeneralRe: Using Windows Xbox 360 controller with VB.net Pin
Kulf23-Apr-11 15:02
Kulf23-Apr-11 15:02 
GeneralRe: Using Windows Xbox 360 controller with VB.net Pin
the fossil23-Apr-11 22:12
the fossil23-Apr-11 22:12 
GeneralRe: Using Windows Xbox 360 controller with VB.net Pin
Kulf24-Apr-11 15:08
Kulf24-Apr-11 15:08 
QuestionDuplicate code - Unhandlable error Pin
Phantom71529-Jan-09 4:20
Phantom71529-Jan-09 4:20 
AnswerRe: Duplicate code - Unhandlable error Pin
Jon_Boy29-Jan-09 5:05
Jon_Boy29-Jan-09 5:05 
GeneralRe: Duplicate code - Unhandlable error Pin
Phantom71529-Jan-09 5:23
Phantom71529-Jan-09 5:23 
QuestionMS Access Database Pin
solomondevapaul12328-Jan-09 23:38
solomondevapaul12328-Jan-09 23:38 
AnswerUse linked tables Pin
David Mujica29-Jan-09 4:37
David Mujica29-Jan-09 4:37 
QuestionFile Attribute / Owner of file Pin
pedefetoll28-Jan-09 23:33
pedefetoll28-Jan-09 23:33 
AnswerRe: File Attribute / Owner of file Pin
Nanda_MR29-Jan-09 1:37
Nanda_MR29-Jan-09 1:37 
GeneralRe: File Attribute / Owner of file Pin
pedefetoll29-Jan-09 2:19
pedefetoll29-Jan-09 2:19 
AnswerRe: File Attribute / Owner of file Pin
dan!sh 29-Jan-09 3:51
professional dan!sh 29-Jan-09 3:51 
QuestionHow to schudule a click of button(VB .Net) in windows scheduler? Pin
Ramki Sankaran28-Jan-09 23:22
Ramki Sankaran28-Jan-09 23:22 
AnswerRe: How to schudule a click of button(VB .Net) in windows scheduler? Pin
Ashfield29-Jan-09 1:19
Ashfield29-Jan-09 1:19 
AnswerRe: How to schudule a click of button(VB .Net) in windows scheduler? Pin
Dave Kreskowiak29-Jan-09 3:28
mveDave Kreskowiak29-Jan-09 3:28 
GeneralRe: How to schudule a click of button(VB .Net) in windows scheduler? Pin
Jon_Boy29-Jan-09 3:37
Jon_Boy29-Jan-09 3:37 
QuestionLog On screen in VB.Net Pin
vijay248228-Jan-09 22:45
vijay248228-Jan-09 22:45 

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.