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

  1. //for functions from another forms
    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
  2. You completely fucked my program by mixing up which form was receiving the value. I had to start over from scratch. Thanks.
  3. you just passed username what if based on username and pasword it retrieves rest of information like name etc in other form textboxes
  4. 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.
  5. nebesvaik
  6. best video quality... 360p
  7. I'm trying to pass all items from a listbox (or list, idc) to the second form.. any suggestions?
  8. absolute trash cant understand your voice
  9. Thank you.
  10. thank you very much.
  11. 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
  12. Thank you for this...
    BUT what if i want to pass multiple data from one form to another>>>>????
    HELP PLEASE
  13. Thank you!!!
  14. can you please tell how to display the form 1 details in form 2.no video i ever found here
  15. can you please upload for how to enable or disable radio button from previous from in c#
  16. Thanks that helps alot
    \
  17. 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 ..
  18. What if i want to pass some data back to form1 one from form2?? can u please guide me??
  19. WOW!! Working like a charm!! :) THANKS!
  20. 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.