473,386 Members | 1,602 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,386 software developers and data experts.

need help with 2 winforms

Hi,

Newbie I am, I need to understand something with vb.
I have a winform (A) where the user fills out some datas.
On this form, I have a combo box where he can select an item.
If the item doesn't exist, I would like he creates it by clicking on a
button.
At this point, I open a new winform (B) where he can do it.
So my question is, How can I retrieve this new data on the winform (A).
The new data have to be added on the combobox and the selecteditem must be
this data.
To be more clear, the winform (B) can be also called by another winform (C).

Stan

Nov 20 '05 #1
2 980
Stan,
If you think about it, a form is just another object. Objects
have properties and methods. You can add methods to retrieve properties from
your second form or simply retreive them from the form if they are Public
members. using

FormObject.PropertyName

Regards - OHM
Stan Sainte-Rose wrote:
Hi,

Newbie I am, I need to understand something with vb.
I have a winform (A) where the user fills out some datas.
On this form, I have a combo box where he can select an item.
If the item doesn't exist, I would like he creates it by clicking on a
button.
At this point, I open a new winform (B) where he can do it.
So my question is, How can I retrieve this new data on the winform
(A).
The new data have to be added on the combobox and the selecteditem
must be this data.
To be more clear, the winform (B) can be also called by another
winform (C).

Stan

Nov 20 '05 #2
* "Stan Sainte-Rose" <st**@cyber972.com> scripsit:
Newbie I am, I need to understand something with vb.
I have a winform (A) where the user fills out some datas.
On this form, I have a combo box where he can select an item.
If the item doesn't exist, I would like he creates it by clicking on a
button.
At this point, I open a new winform (B) where he can do it.
So my question is, How can I retrieve this new data on the winform (A).
The new data have to be added on the combobox and the selecteditem must be
this data.
To be more clear, the winform (B) can be also called by another winform (C).


<http://www.google.com/groups?selm=u5Y8SnOXDHA.1872%40TK2MSFTNGP12.phx.gb l>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3

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

Similar topics

10
by: BBFrost | last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net 2003. At first things were looking ok, now problems are starting to appear. So far ... (1) ...
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: Mad Joe | last post by:
Hi! I have a window form that contains 4 elements (2x2) on one panel. Those 4 elements are GroupBoxes of the exact same size, sorted like this: groupBox1 groupBox2 groupBox3 groupBox4 ...
21
by: Paul Tremblay | last post by:
Hi All, I am a veteran C/C++ programmer (Unix background) and I want to get to speed with Visual Studio .Net I have legacy C/C++ code that I want to use in my application. However, I'm not...
5
by: Cesar Ronchese | last post by:
Hey all. I need to show a usercontrol (built on Winforms) in a webpage, the same way I do with OCX or Javascript (Object tag). How can I do it? s Cesar
2
by: Mahesh Kumar.R | last post by:
I'm into designing an application in winforms but in near future my client may request the same thing in webforms. so (1) what are all the design guidelines and ways are there to migrate easily in...
0
by: netflex | last post by:
Working on a handed off C# project and pretty much my third time dipping into C#. In my solution file, I have a collection of .resx files in their own folder, several .cs files, and my winforms .cs...
1
by: Peter931 | last post by:
I have a winforms Application that should share some data via WEB-Services. Remoting is not possible for other reasons. How can this be done ? When the WEB-Service is hosted in IIS on the...
23
by: raylopez99 | last post by:
Here I am learning WinForms and two months into it I learn there's a WPF API that is coming out. Is this WPF out yet, and is it a threat to WinForms, in the sense that all the library routines I...
4
by: JDeats | last post by:
So I have bugs in my application that stem from the VS.NET 2008 WPF desinger. The XML/XAML has gotten corrupted a few times (aparently due to drag and drop operations executed by the designer from...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.