Click here to Skip to main content
15,897,704 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: VS 2008 Setup Pin
εїзεїзεїз29-Sep-09 8:38
εїзεїзεїз29-Sep-09 8:38 
GeneralRe: VS 2008 Setup Pin
Dave Kreskowiak29-Sep-09 8:43
mveDave Kreskowiak29-Sep-09 8:43 
GeneralRe: VS 2008 Setup Pin
εїзεїзεїз29-Sep-09 9:14
εїзεїзεїз29-Sep-09 9:14 
GeneralRe: VS 2008 Setup Pin
Dave Kreskowiak29-Sep-09 10:41
mveDave Kreskowiak29-Sep-09 10:41 
GeneralRe: VS 2008 Setup Pin
εїзεїзεїз29-Sep-09 11:44
εїзεїзεїз29-Sep-09 11:44 
GeneralRe: VS 2008 Setup Pin
Dave Kreskowiak30-Sep-09 1:54
mveDave Kreskowiak30-Sep-09 1:54 
GeneralRe: VS 2008 Setup Pin
εїзεїзεїз30-Sep-09 4:07
εїзεїзεїз30-Sep-09 4:07 
QuestionGetting data into an array. Pin
vurdmal29-Sep-09 2:58
vurdmal29-Sep-09 2:58 
Hi everybody,

I have to develop a hangman game as a school project.

I,m using VB.NET 2005.

My problem at the moment is that I have to create an array and upload the letters of a word into the array.

then read each letter into a textbox.

Here is the code that I have so far please help.

I've put a comment in area I think is troubled

Public Class frmGame
    Friend array(20) As String
    Dim word As String = "Hangman"
    Dim letters As Integer = word.Length
    

    Private Sub Closetop_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)Handles Closetop.Click
        End
    End Sub


    Private Sub new_word()

        Dim i, f, g As Integer
        
        'Trouble Area 

        Do Until letters
            array(i = i + 1) = word.Chars(f = f + 1)
        Loop

        txtLetter1.Text = array(1)
        txtLetter2.Text = array(2)
        txtLetter3.Text = array(3)
        txtLetter4.Text = array(4)
        txtLetter5.Text = array(5)
        txtLetter6.Text = array(6)
        txtLetter7.Text = array(7)
        txtLetter8.Text = array(8)

    End Sub


    Private Sub frmGame_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        new_word()
    End Sub
    

    End Sub

End Class

AnswerRe: Getting data into an array. Pin
Paramhans Dubey29-Sep-09 3:07
professionalParamhans Dubey29-Sep-09 3:07 
GeneralRe: Getting data into an array. Pin
vurdmal29-Sep-09 3:17
vurdmal29-Sep-09 3:17 
AnswerRe: Getting data into an array. Pin
freakyit29-Sep-09 3:11
freakyit29-Sep-09 3:11 
GeneralRe: Getting data into an array. Pin
vurdmal29-Sep-09 3:22
vurdmal29-Sep-09 3:22 
GeneralRe: Getting data into an array. Pin
freakyit29-Sep-09 3:51
freakyit29-Sep-09 3:51 
GeneralRe: Getting data into an array. Pin
vurdmal29-Sep-09 4:18
vurdmal29-Sep-09 4:18 
GeneralRe: Getting data into an array. Pin
freakyit29-Sep-09 4:28
freakyit29-Sep-09 4:28 
GeneralRe: Getting data into an array. Pin
vurdmal29-Sep-09 4:45
vurdmal29-Sep-09 4:45 
Questionstyle sheet in vb.net Pin
paya1pa29-Sep-09 0:13
paya1pa29-Sep-09 0:13 
AnswerRe: style sheet in vb.net Pin
Paramhans Dubey29-Sep-09 0:30
professionalParamhans Dubey29-Sep-09 0:30 
AnswerRe: style sheet in vb.net Pin
Christian Graus29-Sep-09 0:32
protectorChristian Graus29-Sep-09 0:32 
GeneralOT: Style Sheet Pin
EliottA29-Sep-09 3:16
EliottA29-Sep-09 3:16 
GeneralRe: OT: Style Sheet Pin
Christian Graus29-Sep-09 11:10
protectorChristian Graus29-Sep-09 11:10 
Questionchange the backgound color of messagebox in vb.net c# [modified] Pin
paya1pa28-Sep-09 21:22
paya1pa28-Sep-09 21:22 
AnswerRe: change the backgound color of messagebox in vb.net c# Pin
Christian Graus28-Sep-09 21:26
protectorChristian Graus28-Sep-09 21:26 
AnswerBuy a book Pin
Christian Graus28-Sep-09 21:38
protectorChristian Graus28-Sep-09 21:38 
QuestionHow to use Taskbar Close(X) Option in Vb6 application Pin
mdrizwan_128-Sep-09 2:24
mdrizwan_128-Sep-09 2:24 

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.