Home > Ask the Microsoft .Net Development Experts > Visual Basic .NET Questions & Answers > Generating classes like we did in VB6
Ask The Win Development Expert: Questions & Answers
EMAIL THIS

Generating classes like we did in VB6

Samuel Matzen EXPERT RESPONSE FROM: Samuel Matzen

Pose a Question
Other Win Development Categories
Meet all Win Development Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 18 January 2005
I need to generate classes (for example, "employee") and collection classes (Employees collection of the employee class) in VB.NET as I could do in VB6. I should be able to use "for each" on the collection classes (for each employee in employees)

I could do this by using the sorted list collection, but the data is always sorted by the key (in this case I used employee ID.) I tried using the hashtable but it didn't work. Could you please let me know how to sort the data in the sorted list in a different manner? Or perhaps you know how to implement the same using a hashtable?


>
Take a look at the array list. It has a sort method allowing you to implement your own sort comparer so you can sort the list items in any order you would like. That should solve your problem right there.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Visual Basic .NET
Access VB .NET Windows control on client side
Drop down list server control creates error message
Converting floating values to byte form
Datagrid issue: 'onselection' is not populating
Read data from parallel port
What is the use of these constructors?
Give me an ODBC connect, with SQL authentication
Converting EXE-files to VB components
Manipulating text through VB.NET
Converting Windows applications to VB .NET

VB.NET
Access VB .NET Windows control on client side
Converting floating values to byte form
Read data from parallel port
Converting EXE-files to VB components
Manipulating text through VB.NET
Converting Windows applications to VB .NET
How to add a key to a listview item in VB.NET
Accessing .NET components from VBScript
How I can assign an untyped dataset to a typed dataset?
Last record in the dataset is the only one updating to the database

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Windows Development - White Papers, News and Expert Advice
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts