Solved

DB Records displayed on WinForm

Posted on 2010-11-27
5
179 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

708 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

17 Experts available now in Live!

Get 1:1 Help Now