Solved

commandButton Index

Posted on 2009-07-09
2
534 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

752 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