Solved

DB Records displayed on WinForm

Posted on 2010-11-27
5
223 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
[X]
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
  • 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

752 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