473,756 Members | 3,111 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

data passing between windows forms

i am new to windows aplication, i am planning to desing a program which has
login form. i want to use in formation at second form which i used in login
form.

ex: i filled a dataset in login form how i can use this filled dataset in
the other forms, or i want to use user name in the second form which was
entered at login form
Nov 15 '05 #1
4 1618
You can create properties of the forms and set them to the dataset or given
variable. Or you can create a class with static properties one of which is
your dataset. Then you can reference it from anywhere.

HTH,

Bill
"Cantekin Guneser" <ca************ *@hotmail.com> wrote in message
news:OP******** ******@TK2MSFTN GP11.phx.gbl...
i am new to windows aplication, i am planning to desing a program which has login form. i want to use in formation at second form which i used in login form.

ex: i filled a dataset in login form how i can use this filled dataset in the other forms, or i want to use user name in the second form which was
entered at login form

Nov 15 '05 #2
Hi,
In the second form declare a property or field of type Form and assign the
login form to that variable and the show the second form...in the second
form you can access the login form and the controls in it.. Make sure that
the controls in the login form should have the access modifiers as internal
or public. If it is priave it wont be visible in the second form
Thanks
balu
"Cantekin Guneser" <ca************ *@hotmail.com> wrote in message
news:OP******** ******@TK2MSFTN GP11.phx.gbl...
i am new to windows aplication, i am planning to desing a program which has login form. i want to use in formation at second form which i used in login form.

ex: i filled a dataset in login form how i can use this filled dataset in the other forms, or i want to use user name in the second form which was
entered at login form

Nov 15 '05 #3
can you explain more if it is possible send me example code
"William Ryan" <do********@com cast.nospam.net > wrote in message
news:Oc******** ******@TK2MSFTN GP11.phx.gbl...
You can create properties of the forms and set them to the dataset or given variable. Or you can create a class with static properties one of which is your dataset. Then you can reference it from anywhere.

HTH,

Bill
"Cantekin Guneser" <ca************ *@hotmail.com> wrote in message
news:OP******** ******@TK2MSFTN GP11.phx.gbl...
i am new to windows aplication, i am planning to desing a program which

has
login form. i want to use in formation at second form which i used in

login
form.

ex: i filled a dataset in login form how i can use this filled dataset

in
the other forms, or i want to use user name in the second form which was
entered at login form


Nov 15 '05 #4
can you explain more and send me example

"William Ryan" <do********@com cast.nospam.net > wrote in message
news:Oc******** ******@TK2MSFTN GP11.phx.gbl...
You can create properties of the forms and set them to the dataset or given variable. Or you can create a class with static properties one of which is your dataset. Then you can reference it from anywhere.

HTH,

Bill
"Cantekin Guneser" <ca************ *@hotmail.com> wrote in message
news:OP******** ******@TK2MSFTN GP11.phx.gbl...
i am new to windows aplication, i am planning to desing a program which

has
login form. i want to use in formation at second form which i used in

login
form.

ex: i filled a dataset in login form how i can use this filled dataset

in
the other forms, or i want to use user name in the second form which was
entered at login form


Nov 15 '05 #5

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

Similar topics

4
7169
by: Ryann | last post by:
Hello. I am creating a form that has 5 steps/pages. Each page contains about 20 fields. But I don't want to write them until they submit on the last page. I figured out that I can use hidden fields to carry the data from the previous forms forward. If should bascially work like this: Page 1 Page 2 Page 3 Page 4 Page 5 Page 6 20 Fields 20 Fields 20 Fields 20 Fields 20 Fields 100 Hidden
10
2907
by: Noozer | last post by:
Below is some ASP, HTML and javascript. It is part of a page used to maintain a small database. This code did work at one time, but has since stopped. For some reason the data on my form is not being passed to the page specified in the Action property of the form. This is on a Windows 2000 Pro PC. I copied the code to another server (Windows XP Pro machine) and it DOES work as expected there. The first block is the data located near...
4
2084
by: Al Jones | last post by:
I have an application - an insurance form - which requests personal data on form one. If the user checks auto or homeowner (or both) on the first form I need to collect data from each of these (popup?) forms (Auto and HomeOwner respectively) and then write this collected data to an email message. Passing selected data to the child forms via the url is possible, but I'm certain I'd run into a length problem. Since I still have the parent...
2
1510
by: Chris Dunaway | last post by:
I'm working on a Windows Forms app that communicates with a server through web services. One requirement that I have is that I need to be able to send a .wav file as well as a number of records to the server. What is the recommended method for doing this? I can package the data records into a dataset and send that, but how would I send the .wav file? I want to create a web method that will take both in one call but I'm not sure how...
6
6704
by: Tejpal Garhwal | last post by:
I have datagrid filled with some data rows. At the run time i want know how many total rows are there in the data grid ? Any idea ? Any Suggestions ? Thanks in advance Tej
6
1219
by: RBCC | last post by:
Public Class fraction Dim m_numerator As Int16 Dim m_denominator As Int16 Public Event zerodenom() Public Property numerator() As Int16 Get Return m_numerator
3
2881
by: Uma sakshi | last post by:
Hi I have one VB.NET application,in that application i have one datagrid control.The datagrid control contains somedata.I want to copy the data in a particular cell and paste it into my C#.NET application or notepad where i want to paste it to be.How can i do it?If anyone knows source code or any website URL's please let me know. Umasakshi
0
1486
by: Eric Sabine | last post by:
OK, I'm trying to further my understanding of threading. The code below I wrote as kind of a primer to myself and maybe a template that I could use in the future. What I tried to do was pass data into a background thread and get other data out and also update the main thread on which the main form was created. It seems to work fine. The basic function of the app is cheesy, I didn't spend any time on exception handling. northwind.mdb...
15
5085
by: http://www.visual-basic-data-mining.net/forum | last post by:
Does anyone have any idea how to transferring data from TextBox1 in form1 to textBox2 in form2..... That means after i fill in any data in textBox1 and click Next button... It will bring me to form2....and there the data that i key in form1 will appear to form2 in textbox2 Thanks
1
2310
by: SteveDouglas | last post by:
Hi all, I am currently writing an application in VB.NET that has a lot of controls (treeviews/listviews/labels and so forth) that represent "things" that need to be draggable from place to place, including between controls and windows. In the past when I've implemented Drag and Drop in other projects, I've always passed the item being dragged (for example the listviewitem or the treenode) to the DoDragDrop and then retrieved it in the...
0
9325
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9152
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9716
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9716
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9571
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4996
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3676
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3185
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.