473,609 Members | 2,186 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Passing text box info from one form to another.

20 New Member
hey guys

i am trying pass login information from one form to another.

basically, i have a login box with the names Username and Password on the login form, then that disposes and runs the next form by doing
Expand|Select|Wrap|Line Numbers
  1. Application.Run(new Window(parameters));

how can i pass this information onto my "Window" form?
Jun 19 '10 #1
2 1751
ddsuresh
5 New Member
You need to create properties on the form want to read the values. For example

Expand|Select|Wrap|Line Numbers
  1. public string Username
  2. {
  3.     get; set;
  4. }

You can pass the username to your form object.
Expand|Select|Wrap|Line Numbers
  1. myformObj.Username = "ddsuresh";
Suresh
Jun 20 '10 #2
ThatThatGuy
449 Recognized Expert Contributor
@USBZ0r
do as ddsuresh suggested, but make sure you assign the properties of the second form before you call ShowDialog() or before you show the form
Jun 21 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1611
by: Unregistered | last post by:
How do i pass info into another website which is not mine into a popu window Unregistered ----------------------------------------------------------------------- Posted via http://www.forum4designers.co ----------------------------------------------------------------------- View this thread: http://www.forum4designers.com/message27841.htm
12
15247
by: Gactimus | last post by:
I wrote a C++ program that is supposed to copy one text file to another. It works fine if I specify the files to be opened and copied but when I try to have the file names inputted by the user it doesn't work and I am stumped. Can anyone clue me in to what I am missing? Here is my code: #include <iostream> #include <fstream>
2
363
by: Mike P | last post by:
When you are passing a value to another page, and will need access to it throughout the page and on any postbacks, what is the best way to store it? By making it a variable accessible to the whole page, or by putting it in the ViewState? Thanks, Mike
2
8586
by: Roy Gourgi | last post by:
Hi, How could I append a text file to another text file. Let's say that I have a File1 and I want to append File2 at the end of File1, how would I do that? TIA Roy
9
2058
by: ad | last post by:
I use the codes below to clear the cookie: HttpCookie myCookie = new HttpCookie("us_id"); myCookie.Expires = DateTime.Now.AddDays(-1d); Response.Cookies.Add(myCookie); It do well when the cookie is from the web application itself, But fail to clear when the cookie is form another application, like php. How can I do?
2
1149
by: twindude | last post by:
trying to figure out how to make this work....... read some thngs but can't get it to work. a page that shows me a list of items from a DB query with a repeat region then I clik on the "view record link" and it shows me the different rows in the address bar (page.asp?row="xx"), so i think i'm passing ther row count but the data is not updated for that row???? , only shows me information for row 1
2
1526
by: dangonzale | last post by:
I cannot use anchors on this page so I was wondering first of all if its possible and second if there are scripts out there that do this. I'd like javascript to find a text string on another page and jump to it like an regular anchor would. Thanks.
2
3186
by: saiprasanthi | last post by:
Hi, I want to copy data from one text box to another in html automatically ie., as I edit the first text box the second one should reflect the same spontaneously... can you help me??? Thanks in advance.
2
2584
kamill
by: kamill | last post by:
i need to write content of one text file into another text file. My code is working ,if i choose both files from same directory where my program reside..BUT,its not working if i select files from out of that directory(where my application reside). how can i overcome to it. my code is this.. Form to select two files <form method="post" action="" enctype="multipart/form-data">
1
1112
by: jitupatil2007 | last post by:
hi friends can anyone suggest me any method or function in C#.Net for moving a whole string from one text file to another text file. or moving a statement from one text file to another text file.. any help is appreciated please.......
0
8101
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
8030
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
8524
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8369
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
6858
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6025
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5500
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2494
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
1
1624
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.