Solved

Open form 2 from form 1 have records match

Posted on 2007-11-15
2
157 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

919 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

20 Experts available now in Live!

Get 1:1 Help Now