Concept of "subforms" in

Posted on 2005-05-13
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

Here is the situation:

I have a general windows application form in 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?

Question by:Feyo
    LVL 7

    Accepted Solution

    LVL 10

    Assisted Solution

    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.
    LVL 4

    Author Comment

    Perfect. Thanks.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
    I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    733 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

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now