Solved

Open form 2 from form 1 have records match

Posted on 2007-11-15
2
156 Views
Last Modified: 2013-11-26
I have a button on form one that opens form 2 by using frmAgency.Show()  but form 2 always displays the first record instead of the record that is on form 1.  How can I fix this?  
Thanks!
0
Comment
Question by:BobRosas
2 Comments
 
LVL 18

Accepted Solution

by:
vbturbo earned 125 total points
ID: 20290719
try this if you use vb.net 2005

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Form2.Label1.Text = Label1.Text
        Form2.Show()
    End Sub

vbturbo
0
 

Author Comment

by:BobRosas
ID: 20290810
That worked!
You guys are good!
Thank you so much!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

705 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

16 Experts available now in Live!

Get 1:1 Help Now