Control Array

racerrunner

Member
Joined
May 30, 2005
Messages
6
Programming Experience
Beginner
Hi all,


I have a form that has 5 command buttons. There are Edit, Add, Delete,Save,Print.

May I know how to create a control array for these command buttons.I'm using MS Access 2003 Thank you.
 
I'm guessing that you are coming from VB6, where I believe there was something called a ControlArray. I've never used VB6 myself but I was reading an article just the other day about the fact that there is no equivalent in VB.NET. You can find one here.
 
Hi,



For the New button, I intend to add a new record for a member,

FOr the Edit Button, I intend to edit the record of a member

Print button, print out the form of a member

SAve button, save the form after editing the member.

Thank you.
 
Sorry i couldn't entirely understand it ... but you can take a look at this M$ article about that:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchcreatingcontrolarraysinvisualbasicnetvisualcnet.asp

Also here:
http://visualbasic.about.com/od/usingvbnet/l/bldykctrlarraya.htm

http://visualbasic.about.com/od/usingvbnet/l/bldykctrlarray2.htm

Part of these articles:
In brief, people in Frank's group said, "Hey! You can have a control array in VB.NET! And it's a lot more simple than the 'Ugly' code sample in the article." And they provided an example. Frank said it was "elegant".

Good luck ;)
 
Back
Top