Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

DB Records displayed on WinForm

Posted on 2010-11-27
5
206 Views
Last Modified: 2014-06-16
I have created a program for a local township - the program was upgraded from a legacy Access application and it now runs with a .NET exe and SQL backend.  The program allows the city to issue 'burn permits'

My problem is that they want to view all 'active permits' in a new window.  The legacy access system used a form with sub forms to display as shown in the picture, with easy access to click a button to open the specific record.  

How can I mimic this behavior with VB.NET, creating a scrollable list of active permits, with a button to open the permit.  


active.gif
0
Comment
Question by:DavidRayRobinson
  • 2
5 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 34223141
You can use a datagridview but I dont think you can replicate this behaviour. You can also use a repeater control.
0
 

Author Comment

by:DavidRayRobinson
ID: 34223202
Can a form be contained within a container object - a panel, or another form?  

I could create one form the would represent one listing, then instantiate that one form multiple times for each active permit.  But, how could I 'stack' these forms into a scrollable view?  
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 34223216
Instead of a form, use a repeater and use labels and a button. The repeater would then repeat for each record.

http://blogs.msdn.com/b/vsdata/archive/2009/08/12/datarepeater-control-for-windows-forms.aspx

Or use one of these free components

http://www.quantumsoftware.com.au/Products/WindowsFormsComponents.aspx

http://www.codeproject.com/KB/cpp/CustomContainerControl.aspx
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

809 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