User Profile

Collapse

Profile Sidebar

Collapse
DavidMurrayEsq
DavidMurrayEsq
Last Activity: Sep 24 '10, 11:14 AM
Joined: Sep 23 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • No its Visual Basic 2008,

    Dont worry though i found the answer to be
    Code:
      
            Dim Q_No As String
            Dim Btn_Type As String
            Dim BtnName As String
     
            Dim Btn As Button
     
            Q_No = "1"
            Btn_Type = "A"
            BtnName = "Button" & Q_No & "_" & Btn_Type
     
            Btn =
    ...
    See more | Go to post

    Leave a comment:


  • how do i refer to a button using a string

    Ok, I have a form with about 750 buttons and i want to be able to refer to a button based on a string.

    For example, instead of writing...

    Button1_A.BackC olor = Color.ForestGre en

    I want to write...

    Dim Q_No As String
    Dim Btn_Type As String
    Dim Btn As String

    Private Sub Another_Button_ Click(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles...
    See more | Go to post
No activity results to display
Show More
Working...