473,326 Members | 2,133 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,326 software developers and data experts.

Pass parameters to a windows form application

Howdy all

On a window application vb.net

a 'frmOne' open a 'frmTwo'

from 'frmTwo' i get and ID

when i close 'frmTwo', i want to pass the ID to 'frmOne'
to initialize a List view

How can i do that?

Thanx
El Camino
Nov 20 '05 #1
2 1873
Cor
Hi ElCamino,

I think this is a standard dialog situation

The most simple is something like (you can also integrate the dialogresult
in it)
\\\ rougly written watch typos
dim frm as new form2
frm.showdialog(me)
dim myId = frm.ID
frm.dispose
///
And make ID public in form2

(Or if you like that, you can make a read only property from it, but that I
find to much work for a simple dialogform)

Cor

On a window application vb.net

a 'frmOne' open a 'frmTwo'

from 'frmTwo' i get and ID

when i close 'frmTwo', i want to pass the ID to 'frmOne'
to initialize a List view

Nov 20 '05 #2
Awright, thanx man!

El Camino
-----Original Message-----
Hi ElCamino,

I think this is a standard dialog situation

The most simple is something like (you can also integrate the dialogresultin it)
\\\ rougly written watch typos
dim frm as new form2
frm.showdialog(me)
dim myId = frm.ID
frm.dispose
///
And make ID public in form2

(Or if you like that, you can make a read only property from it, but that Ifind to much work for a simple dialogform)

Cor

On a window application vb.net

a 'frmOne' open a 'frmTwo'

from 'frmTwo' i get and ID

when i close 'frmTwo', i want to pass the ID to 'frmOne'
to initialize a List view

.

Nov 20 '05 #3

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

Similar topics

8
by: Brian F | last post by:
Exactly what the subject says. I have an ASP page that I want my C# windows application to open in Internet Explorer, and if possible have it send along a list of values from a list box. Thank you.
3
by: Tim | last post by:
Hi, I am trying to pass a SQL Command, complete with parameters and their values from one form to a modal form. The modal form has; public void...
5
by: Tom Bower | last post by:
I have a simple one-form Windows App I'm working on in VB. I need to be able to pass some command-line parameters to the application in order for it to do what it needs to do when it fires up. ...
0
by: Helen | last post by:
I have a simple oledb dataset on one windows form in vb .net 2002 calling one column from oracle 7, results appear in a text box But, only the first results appears. Goal is to show all results...
1
by: Mikey G | last post by:
Hi, I created a simple VB.NET 2003 application through Visual Studio that connects to a MySQL database and loads a table into a Dataset, and then displays that table information in a DataGrid on a...
6
by: juky | last post by:
Hi all, I have 2 applications one in VB.net and the other in VC6. I need to pass data between them. How can I do it? what's the best way to implement such communication ? Any comment will be...
2
by: =?Utf-8?B?dmlzaHJ1dGg=?= | last post by:
Hi, I have 2 applications running, one Windows application project and the other windows services project. I want to call my Windows application in my windows services. I want to run them as...
1
by: =?Utf-8?B?dmlzaHJ1dGg=?= | last post by:
Hi, I have 2 applications running, one Windows application project and the other windows services project. I want to call my Windows application in my windows services. I want to run them as...
24
by: =?Utf-8?B?U3dhcHB5?= | last post by:
Can anyone suggest me to pass more parameters other than two parameter for events like the following? Event: Onbutton_click(object sender, EventArgs e)" Event handler: button.Click += new...
12
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.