Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

DB Records displayed on WinForm

Posted on 2010-11-27
5
Medium Priority
?
239 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 2000 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

704 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