Click here to Skip to main content
16,014,677 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to use .xsd file in vb.net programming while generating .xml file [modified] Pin
VB 8.019-Oct-07 22:44
VB 8.019-Oct-07 22:44 
QuestionHow to recive mail from POP3 Server in VB.Net 2005? Pin
hgs24shravgi19-Oct-07 20:38
hgs24shravgi19-Oct-07 20:38 
AnswerRe: How to recive mail from POP3 Server in VB.Net 2005? Pin
MidwestLimey22-Oct-07 12:43
professionalMidwestLimey22-Oct-07 12:43 
QuestionTechnology Conference Registration, need help Pin
jesseax19-Oct-07 16:52
jesseax19-Oct-07 16:52 
AnswerRe: Technology Conference Registration, need help Pin
Scott Dorman19-Oct-07 18:18
professionalScott Dorman19-Oct-07 18:18 
GeneralRe: Technology Conference Registration, need help Pin
jesseax21-Oct-07 17:14
jesseax21-Oct-07 17:14 
Questionusing ErrorProvider in VB HELP!! [modified] Pin
vbDigger'z19-Oct-07 16:13
vbDigger'z19-Oct-07 16:13 
QuestionProblems with Tic Tac Toe game in VB 2005 Pin
JeffMonty19-Oct-07 15:27
JeffMonty19-Oct-07 15:27 
Hey all, I'm having trouble creating a program that lets two players play a game of tic tac toe. I'm not sure exactly how to let my winSub figure out which boxes make up the winning combination (of three of the same characters in a row)
Here's part of my code:
Private Sub btnCheck_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCheck.Click

'checks if winner exists
Dim strBox1, strBox2, strBox3 As String

If txtTL.Text = txtTM.Text And txtTM.Text = txtTR.Text And txtTL.Text <> "" Then
strBox1 = txtTL.Text
strBox2 = txtTM.Text
strBox3 = txtTR.Text

Call subWin(strBox1, strBox2, strBox3, txtTL.Text)

ElseIf txtTR.Text = txtMM.Text And txtMM.Text = txtBL.Text And txtTL.Text <> "" Then
strBox1 = txtTR.Text
strBox2 = txtMM.Text
strBox3 = txtBL.Text
Call subWin(strBox1, strBox2, strBox3, txtTR.Text)
End If
End Sub

Private Sub subWin(ByVal strBoxOne As String, ByVal strBoxTwo As String, ByVal strBoxThree As String, ByVal strWinner As String)
'this will be called when the program sees a winner

lblResult.Text = ("The winner is " & strWinner)

Select Case strBoxOne
Case "TL"
txtTL.BackColor = Color.Blue
Case "TM"
txtTM.BackColor = Color.Blue
Case "TR"
txtTR.BackColor = Color.Blue
Case "ML"
txtML.BackColor = Color.Blue
Case "MM"
txtMM.BackColor = Color.Blue
Case "MR"
txtMR.BackColor = Color.Blue
Case "BL"
txtBL.BackColor = Color.Blue
Case "BM"
txtBM.BackColor = Color.Blue
Case "BR"
txtBR.BackColor = Color.Blue
End Select

Any help would be greatly appreciated.
AnswerRe: Problems with Tic Tac Toe game in VB 2005 Pin
Luc Pattyn19-Oct-07 16:12
sitebuilderLuc Pattyn19-Oct-07 16:12 
AnswerRe: Problems with Tic Tac Toe game in VB 2005 Pin
bapu288921-Oct-07 7:57
bapu288921-Oct-07 7:57 
QuestionCan we convert Visual Studio VB to Visual Studio C++? Pin
ATC19-Oct-07 10:11
ATC19-Oct-07 10:11 
AnswerRe: Can we convert Visual Studio VB to Visual Studio C++? Pin
Dave Doknjas19-Oct-07 14:24
Dave Doknjas19-Oct-07 14:24 
QuestionRe: Can we convert Visual Studio VB to Visual Studio C++? Pin
Hamid_RT21-Oct-07 4:59
Hamid_RT21-Oct-07 4:59 
QuestionWCF Problem Pin
RobBlu19-Oct-07 8:47
RobBlu19-Oct-07 8:47 
AnswerSorry, I forgot the app.config Pin
RobBlu19-Oct-07 8:53
RobBlu19-Oct-07 8:53 
Questionproblem in deployment Pin
Shuaib wasif khan19-Oct-07 8:04
Shuaib wasif khan19-Oct-07 8:04 
AnswerRe: problem in deployment Pin
svanwass19-Oct-07 9:16
svanwass19-Oct-07 9:16 
AnswerRe: problem in deployment Pin
Scott Dorman19-Oct-07 9:23
professionalScott Dorman19-Oct-07 9:23 
GeneralRe: problem in deployment Pin
svanwass19-Oct-07 9:26
svanwass19-Oct-07 9:26 
QuestionVB.NET 2005 ODBCCommand Pin
rahvyn619-Oct-07 5:52
rahvyn619-Oct-07 5:52 
AnswerRe: VB.NET 2005 ODBCCommand Pin
Kschuler19-Oct-07 8:22
Kschuler19-Oct-07 8:22 
GeneralRe: VB.NET 2005 ODBCCommand Pin
rahvyn619-Oct-07 8:39
rahvyn619-Oct-07 8:39 
AnswerRe: Help usinf hiddenfield control and dropdownlist Pin
nlarson1119-Oct-07 6:38
nlarson1119-Oct-07 6:38 
QuestionReportviewer does not print landscape Pin
dptalt19-Oct-07 5:34
dptalt19-Oct-07 5:34 
QuestionFTP folderlist [modified] Pin
Tom Deketelaere19-Oct-07 3:53
professionalTom Deketelaere19-Oct-07 3:53 

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.