Ask Experts Questions for FREE Help !
Ask
    1903raj's Avatar
    1903raj Posts: 1, Reputation: 1
    New Member
     
    #1

    May 16, 2012, 02:00 PM
    ask visual basic doubt
    Hi,

    In my program, I have two forms the first form has a text box and a button and the second form has 5 textbox.

    What I am trying to do is if the user input 1 the form 2 should show one text box . If use user input is 2 then show 2 textbox in form and if input is 3 then form 2 should have 3 textbox.

    The code which I have written is

    Public Sub Command1_Click()


    Dim I As Integer
    If (Val(Text1) >= 1 And Val(Text1) < 3) Then
    For I = 0 To (Val(Text1.Text) - 1)
    Print I
    Form2.Text1(I).Visible = True

    Next
    Form2.Show
    End If


    End Sub

Check out some similar questions!

Visual Basic Help [ 4 Answers ]

Okai I need help in my visual basic assignment. So, There are 5 checkboxes and what I want is that, when I click on a checkbox I want it to be listed automatically in a label or something, in any order. Get it?? PLEASE HELP Thank you!

Visual basic [ 1 Answers ]

Dim first As Long Dim second As Long Dim sign As String Dim FirstValueEntered As Boolean Private Sub Command1_Click(Index As Integer) If FirstValueEntered = True Then TextDisplay.Text = TextDisplay.Text & Command1(Index).Caption second = Val(TextDisplay.Text)

Visual basic [ 1 Answers ]

I already finish a very simple calculator,actually it has only four buttons. at first its working fine but when add another feature its not working anymore. What I want to do is when press 1 then press + then press 1 and press + again it should add the first two number get ready to add another...

Visual basic 6 [ 1 Answers ]

Hi! I am facing difficulty in preparing SRS(software requirement specification) of my semister project which is Credit Card System(visual basic 6) please give me some suggesion. Thank you


View more questions Search
 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.