[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Concept of "subforms" in vb.net

Posted on 2005-05-13
3
Medium Priority
?
2,475 Views
Last Modified: 2008-02-01
I'm coming from the Access and ADO world and I'm learning that I have to start thinking about things in a different way. For example, the concept of subforms in Access (parent-child linkages made between two tables based on their relationships). I was wondering if someone could get me started with migrating this thinking into vb.net.

Here is the situation:

I have a general windows application form in vb.net. I made all the necessary connections and filled a dataset with data. I want to display this data the way I had been displaying it in Access. The Access form uses subforms. My guess is that I first have to create relationships between the two tables of interest within the dataset (a one to many relationship). After that, I can fill controls on the form to reflect the form/subform concenpt of Access. So, I can put all the fields for the main table into text boxes and then put the fields of the second table into a datagrid. The user will be able to add multiple records to child table to the one record of the parent table.

Is my logic flawed? Can anyone guide me in the right direction if it is?

Thanks.
0
Comment
Question by:Feyo
3 Comments
 
LVL 7

Accepted Solution

by:
davidrichardson earned 800 total points
ID: 13999429
0
 
LVL 10

Assisted Solution

by:NetworkArchitek
NetworkArchitek earned 600 total points
ID: 13999449
There are no "subforms" in VB.NET. VB.NET is much more closely a fully object oriented implementation. I think I have followed you right, all that seems just fine, except get rid of the idea of "subforms." Its really nothing like Access other than the controls look similar. So in very basic terms with VB.NET everything is a class, and all those textboxes and listboxes are just class instances that are part of the Form's collection of objects. But, yes I don't see anything wrong really with your strategy.
0
 
LVL 4

Author Comment

by:Feyo
ID: 13999456
Perfect. Thanks.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Loops Section Overview
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…

873 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