473,406 Members | 2,954 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Help with Passing data back from popup to form

Hi,
On my form, when the user hit submit it validates the zip code and if more
than one city is returned it pops up a form with the list of cities in a list
box. The user then have to select one of the cities and click 'OK'. How do I
then update the underlying form (txtCity) with the correct city that was
selected in the popup?

Thanks
Nov 18 '05 #1
3 1250
have a look at this link which returns values from a dalog/popup window

http://www.dotnetjunkies.com/Article...BEC74C704.dcik
"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:8A**********************************@microsof t.com...
Hi,
On my form, when the user hit submit it validates the zip code and if more
than one city is returned it pops up a form with the list of cities in a list box. The user then have to select one of the cities and click 'OK'. How do I then update the underlying form (txtCity) with the correct city that was
selected in the popup?

Thanks

Nov 18 '05 #2
Excellent! I have one issue with it though, after it passes the value to the
main form ir also opens up another copy of the main form. Why is that?

"Craig G" wrote:
have a look at this link which returns values from a dalog/popup window

http://www.dotnetjunkies.com/Article...BEC74C704.dcik
"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:8A**********************************@microsof t.com...
Hi,
On my form, when the user hit submit it validates the zip code and if more
than one city is returned it pops up a form with the list of cities in a

list
box. The user then have to select one of the cities and click 'OK'. How do

I
then update the underlying form (txtCity) with the correct city that was
selected in the popup?

Thanks


Nov 18 '05 #3
Hi,
Mistake... It opens up another instance of the child form when you click
both the 'OK' and 'CLOSE' button

"Craig G" wrote:
have a look at this link which returns values from a dalog/popup window

http://www.dotnetjunkies.com/Article...BEC74C704.dcik
"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:8A**********************************@microsof t.com...
Hi,
On my form, when the user hit submit it validates the zip code and if more
than one city is returned it pops up a form with the list of cities in a

list
box. The user then have to select one of the cities and click 'OK'. How do

I
then update the underlying form (txtCity) with the correct city that was
selected in the popup?

Thanks


Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Job Lot | last post by:
How would I send information from DataGrid on the main form of the application to a modal popup form and then pass any changes to the data back to the main form and database when the popup form was...
5
by: rettigcd | last post by:
Hello, I need to create a custome form that operates similar to the MsgBox() and InputBox() functions. I can't figure out how to pass data to a MODAL dialog box (form). I've tried 3...
7
by: Jack Addington | last post by:
I've got a fairly simple application implementation that over time is going to get a lot bigger. I'm really trying to implement it in a way that will facilitate the growth. I am first writing a...
3
by: Chris | last post by:
Hi, I have a parent page that loads a popup and when the OK button is press it pass the value back to the parent form textbox. It passes the value but it doesn't close the popup but also open...
1
by: Chris | last post by:
Hi, I am able to pass data from a popup back to a textbox. Now I need to pass to a different textbox. Here is what I have. I have a web page with two textbox (datefrom and dateto) and two buttons...
4
by: Chris | last post by:
Hi, I am trying to create a popup calender so a user can click on a button on the main form, a calender will then popup, the user will select a date and then click ok on the popup. The date will...
5
by: Chris | last post by:
Hi, I have been trying for days, yes days, to use the calender from the asp.net timetracker starter kit. I am now frustrated. I finally get the popup calender to popup but when I click ok to...
1
by: billy | last post by:
Ok, here's the situation... I have a user control that contains two textboxes (one for a from date/time and one for a to date/time) and two image buttons. The user control itself is supposed to...
13
by: Deano | last post by:
Apparently you can only do this with one value i.e Call MyAssetLocationZoom(Me!txtLocation, "Amend data") This runs; Public Sub MyAssetLocationZoom(ctl As Control, formName As String) On...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.