Solved

commandButton Index

Posted on 2009-07-09
2
533 Views
Last Modified: 2013-11-25
Is it possible to change the index of command button?

My code below will display the value of index in textbox as text1.text
I have four(4) button Command1(0), Command(1), Command(2), and Command(1)
I want to change the index of its commandbutton once the sstab1 has been dblclick
and will change to 50,51,51,and 52 which 0,1,2,3 as their original index.
Is it possoble? thanks!
Private Sub Command1_Click(Index As Integer)
Text1.Text = Index
End Sub
 
Private Sub SSTab1_DblClick()
Command1(0).Index = "50"
End Sub

Open in new window

0
Comment
Question by:Whing Dela Cruz
2 Comments
 
LVL 2

Accepted Solution

by:
lppperes earned 500 total points
ID: 24820370
You can´t do that. The property Index is read-only at runtime.
0
 

Author Closing Comment

by:Whing Dela Cruz
ID: 31601942
Thanks for the information
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question