Click here to Skip to main content
15,914,014 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: API Declarations Pin
moyin4-Oct-04 17:16
moyin4-Oct-04 17:16 
GeneralDll declaration Pin
moyin30-Sep-04 15:18
moyin30-Sep-04 15:18 
GeneralRe: Dll declaration Pin
Dave Kreskowiak30-Sep-04 18:22
mveDave Kreskowiak30-Sep-04 18:22 
GeneralRe: Dll declaration Pin
moyin4-Oct-04 17:18
moyin4-Oct-04 17:18 
GeneralVideos in VB.Net Pin
awesome0430-Sep-04 15:08
awesome0430-Sep-04 15:08 
GeneralRe: Videos in VB.Net Pin
Christian Graus30-Sep-04 15:15
protectorChristian Graus30-Sep-04 15:15 
GeneralVB.Net and Runtime Pin
maykut209930-Sep-04 14:36
maykut209930-Sep-04 14:36 
GeneralRe: VB.Net and Runtime Pin
MohammadAmiry8-Oct-04 5:30
MohammadAmiry8-Oct-04 5:30 
I dunno for what reason you want to do so, but here is one way!

first make a string array with dimention of the total commands:
ReDim Action(iButtonsCount)
for each time creating a new button.
then set the array value to some command to be done, e.g.
Action(iButtonsCount)="OpenFileDialog"
then in click button event add:

<br />
Private Sub arrButton_Click(Index as Integer)<br />
    Select Case Action(Index)<br />
        Case "OpenFileDialog"<br />
            '.....<br />
    End Select<br />
End Sub<br />


Also if some of your commands need some parameters, you can make the array 2D or more, and set the parameter in the second column in the array.

I hope this will help.
Generalreceiving socket data Pin
JenniferH30-Sep-04 11:36
JenniferH30-Sep-04 11:36 
GeneralVB6 expression too complex Pin
aprx30-Sep-04 9:47
aprx30-Sep-04 9:47 
GeneralRe: VB6 expression too complex Pin
Dave Kreskowiak30-Sep-04 12:06
mveDave Kreskowiak30-Sep-04 12:06 
GeneralRe: VB6 expression too complex Pin
aprx1-Oct-04 0:44
aprx1-Oct-04 0:44 
GeneralRe: VB6 expression too complex Pin
Dave Kreskowiak1-Oct-04 2:46
mveDave Kreskowiak1-Oct-04 2:46 
Generalcrystal reporting in vb.net Pin
Britnt730-Sep-04 6:00
Britnt730-Sep-04 6:00 
GeneralRe: crystal reporting in vb.net Pin
Jim Matthews30-Sep-04 7:06
Jim Matthews30-Sep-04 7:06 
GeneralRe: crystal reporting in vb.net Pin
Britnt730-Sep-04 8:52
Britnt730-Sep-04 8:52 
GeneralRe: crystal reporting in vb.net Pin
Jim Matthews30-Sep-04 9:44
Jim Matthews30-Sep-04 9:44 
GeneralRe: crystal reporting in vb.net Pin
Britnt730-Sep-04 10:58
Britnt730-Sep-04 10:58 
GeneralRe: crystal reporting in vb.net Pin
Jim Matthews30-Sep-04 18:21
Jim Matthews30-Sep-04 18:21 
GeneralRe: crystal reporting in vb.net Pin
Britnt71-Oct-04 2:44
Britnt71-Oct-04 2:44 
GeneralRe: crystal reporting in vb.net Pin
Britnt71-Oct-04 4:03
Britnt71-Oct-04 4:03 
GeneralRe: crystal reporting in vb.net Pin
Jim Matthews1-Oct-04 4:53
Jim Matthews1-Oct-04 4:53 
GeneralRenaming a TreeNode and updating an XML file Pin
cwayman30-Sep-04 5:33
cwayman30-Sep-04 5:33 
GeneralRe: Renaming a TreeNode and updating an XML file Pin
Dave Kreskowiak30-Sep-04 11:08
mveDave Kreskowiak30-Sep-04 11:08 
GeneralRe: Renaming a TreeNode and updating an XML file Pin
cwayman30-Sep-04 22:13
cwayman30-Sep-04 22:13 

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.