[Year 12 SofDev] VB6 > VB2010 musings - control arrays

Poultney, Gordon A Poultney.Gordon.A at edumail.vic.gov.au
Fri Sep 10 11:06:20 EST 2010


Just make up your control array in VB6 first. 
 
Then import the project into VB.NET 
 
The object names change but you can still access them via standard array notation.
 
 
 
----------------
Gordon Poultney
Horsham College

________________________________

From: sofdev-bounces at edulists.com.au on behalf of Mark KELLY
Sent: Fri 10/9/10 10:29
To: Year 12 Software Development Teachers' Mailing List
Subject: [Year 12 SofDev] VB6 > VB2010 musings


I've finally bitten the bullet, crawled out my comfort zone (and used several other clichés) in moving from comfortable ol' threadbare VB6 into shiny new VB2010 and the transition is not as smooth as I'd hoped it would be.

The first hurdle I ran into was finding that my favourite old control arrays have been killed and now I need convoluted complex collections to achieve nearly the same thing. I read of a rumour that control arrays (wherein VB manages the necessary classes and collections behind the scenes) would be reinstated in VB but it seems not to be happening.

And it seems default properties no longer work, e.g. textbox2="Fred" has to be fully spelled out as textbox2.text="Fred".

Sigh. I suppose I'll get used to it in time (after all, I did manage to get from QB4.5 to Visual Basic 1.0), but for a quick hack I still fall back to VB6 to get the job done.

-- 
Mark Kelly
Information Systems Manager; Reporting Manager
McKinnon Secondary College
McKinnon Rd McKinnon 3204, Victoria, Australia
Direct line / Voicemail: 8520 9085
School Phone +613 8520 9000, Fax +613 9578 9253
kel at mckinnonsc.vic.edu.au
VCE IT Lecture notes: http://vceit.com <http://vceit.com/> 
Moderator: IT Applications Mailing List

Korma: the philosophy that what you get out of a curry depends on what you put into it.


Important - This email and any attachments may be confidential. If received in error, please contact us and delete all copies. Before opening or using attachments check them for viruses and defects. Regardless of any loss, damage or consequence, whether caused by the negligence of the sender or not, resulting directly or indirectly from the use of any attached files our liability is limited to resupplying any affected attachments. Any representations or opinions expressed are those of the individual sender, and not necessarily those of the Department of Education and Early Childhood Development.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 5059 bytes
Desc: not available
Url : http://www.edulists.com.au/pipermail/sofdev/attachments/20100910/7cb3d24d/attachment-0001.bin 


More information about the sofdev mailing list