C# Tutorial 55: Passing a value from one form to another form in C#
Author: ProgrammingKnowledge
75412 View
11m 51s Lenght
182 Rating
Passing Data Between Forms c# - How to pass string value from one form to another form's load c# - how to pass values from one form to another c# - Passing a value from one form to another form HOw to pass values from one Form to another pass a variable from one form to another - C# / C Sharp Sample Code in C#: How to Pass values to another Form C# - Get value from another Form Passing Data To another Form (C# .NET) C# - Send value from one form to another Passing Values From Form to Form in C# Complete Step by Step How To Pass Values From Page to Page Using ASP.NET
Comments
-
You completely fucked my program by mixing up which form was receiving the value. I had to start over from scratch. Thanks.
-
you just passed username what if based on username and pasword it retrieves rest of information like name etc in other form textboxes
-
Am I the only one that thinks that the example works in the opposite way that he says it should work? at 2:09, he said whatever value he entered in Form2 will pop up in Form 1 after clicking the button; however, when he clicked, it sends the information from Form 1 to Form 2 instead. This got me confused at first because I couldn't understand why he was declaring a variable in the Form 2 method that would be accepting the text rather than sending the text.
-
nebesvaik
-
best video quality... 360p
-
I'm trying to pass all items from a listbox (or list, idc) to the second form.. any suggestions?
-
absolute trash cant understand your voice
-
Thank you.
-
thank you very much.
-
can i use a form for two fonctions ????
i mean for exemple :
if i click on the button add or button show take me to the second form but when i click Button add the second form will save informations
and when i click Buttonshow the second form will show informations -
Thank you for this...
BUT what if i want to pass multiple data from one form to another>>>>????
HELP PLEASE -
Thank you!!!
-
can you please tell how to display the form 1 details in form 2.no video i ever found here
-
can you please upload for how to enable or disable radio button from previous from in c#
-
Thanks that helps alot
\ -
SIR I AM USING CROSS THREADING
public void startform2()
{
Form2 form2 = new Form2(comboBox1.Text); <<<<------ ERROR (
Application.Run(form2);
}
ERROR(Cross-thread operation not valid: Control 'comboBox1' accessed from a thread other than the thread it was created on.) ) PZZ HELP ME .. -
What if i want to pass some data back to form1 one from form2?? can u please guide me??
-
WOW!! Working like a charm!! :) THANKS!
-
I have a problem, once I put the constructor on the arguments in Form1 the Program.cs has the error "constructor that takes 0 arguments." I have no idea on what am I going to input in this constructor.
Main_Form main_form = this.Owner as Main_Form;
main_form.FUNCTION_FROM_MAIN_FORM
//for data from another forms
Main_From.VAR_From_Main_Form -->all VARs should be public static