Visual Basic .NET Tutorial 46 - Passing a value from one form to another form in VB.NET

Поделиться
HTML-код
  • Опубликовано: 11 дек 2024

Комментарии • 74

  • @imabweaver
    @imabweaver 10 лет назад +6

    This is a good technique as far as it goes - but what if I want to pass a value from one form that is open to another form that is open? As Dark says, we can write in Form2 "Label1.Text = Form1.Textbox1.Text", but to be useful there has to be a way to raise an event that can update Form 2 from outside of Form 2 when the textbox is changed / button is pressed. So how do you refer to an instance of Form 2 that has already been created?

  • @dharanignanasekar6586
    @dharanignanasekar6586 3 года назад

    I search a lot in Google finally I got this vedio. Thank u chlkutty❤️👍🏼

  • @ProgrammingKnowledge
    @ProgrammingKnowledge  10 лет назад +4

    • @ethanwehrle
      @ethanwehrle 8 лет назад +1

      Thanks man... You have helped me out a lot on my final assignment!

  • @UmitDurupinar
    @UmitDurupinar 9 лет назад +1

    Hi... I have a question about value calibration. I get some values from PLC (0-10V Analog values). I see these values on my form as integers between 0-65000. but these values are meaningless for me. I want to calibrate these values to meaning values. I mean I want to create a calibration page. How can I do it please help me.

  • @7AngelOfDarkness
    @7AngelOfDarkness 10 лет назад +3

    And wtf at 3:21 ... there is property and he reads prototype... just wtf

  • @mohamadaiman3813
    @mohamadaiman3813 3 года назад +1

    Thank you!! It is very helpful for me to complete my assignment :)

  • @MrsLeer
    @MrsLeer 9 лет назад

    Ahhhh, Okay, so the way my textbook explained this confused me. I've been working on my final project for class and was so confused. Thank you for making it simple! It works!

    • @michaelburdetsky3796
      @michaelburdetsky3796 8 лет назад

      +Andrea Leer What's the name of your text book? I'm just freelance studying atm, would love to know more!

    • @MrsLeer
      @MrsLeer 8 лет назад

      Clearly Visual Basic, I think. It's been a while and I don't seem to have all of my books in my shelf from my studies. I do know though that this book was pretty handy for a couple of my classes, but I had so many classes to take that semester that videos like this really got me through it haha.
      books.google.com/books?id=7IYQD4W-LrsC

  • @josephngasseufa3365
    @josephngasseufa3365 Год назад

    this is t very good tutos.. thanks you my best friend

  • @gtag174
    @gtag174 10 лет назад +1

    nice video bhai. now how do i pass a griedview data filtered from one form into a report in another form ?

  • @adlersongs4460
    @adlersongs4460 6 лет назад

    Thank you! Do you know how can I show this form on all other client computers with the button click

  • @mesutyenigun7609
    @mesutyenigun7609 2 года назад

    Thanks lot you saved my day.

  • @normangon
    @normangon 10 лет назад

    Thanks multithread don't have issues in this way.

  • @spatil6522
    @spatil6522 5 лет назад

    Thanks a lot sir.
    Keep sharing the knowledge.

  • @qual1481
    @qual1481 6 лет назад

    could you send the value to a combo box to make it an option to choose from?

  • @bhubesi9425
    @bhubesi9425 9 лет назад

    simple and straight on point..

  • @terryalleyne8455
    @terryalleyne8455 5 лет назад

    great job helped me a lot

  • @educationhub8241
    @educationhub8241 5 лет назад

    How to open win word application in child parent box or richtextbox or any other box and after writing some word vb save btn which is automatic save in specific drive like D:\or C:\any other plzzzzz detail plzzzzz

  • @aubintalawou3642
    @aubintalawou3642 6 лет назад

    How do you transfer a multiple text saved file to a list box on a different form?

  • @aggarwalg4503
    @aggarwalg4503 3 года назад

    Thanks sir 😊😊

  • @lykamaebamba2631
    @lykamaebamba2631 7 лет назад

    how to uhm have a button in the message box and when you clicked it, it will lead you to the next form ?

  • @daniel49245
    @daniel49245 3 года назад

    Form2.Label1.Text = TextBox1.Text.ToString()
    Form2.Show()
    ----------
    It's simpler

  • @unknownstardust_
    @unknownstardust_ 3 года назад

    Very helpful, thanks!

  • @goodairin
    @goodairin 8 лет назад

    Very helpful. Thank you for posting this.

  • @keladriel
    @keladriel 5 лет назад

    Thank you for the help!

  • @keshavkishore
    @keshavkishore 7 лет назад

    When i use me.hide() then form2 label data is deleted plz can you do this with textbox.text instead of label.text

  • @Skystarish
    @Skystarish 11 месяцев назад

    Thanks bro❤

  • @kangarooshotgun
    @kangarooshotgun 8 лет назад

    Great explanation, thanks!

  • @eijunorbeta5155
    @eijunorbeta5155 7 лет назад

    i want to stack the data in form2 label, is it possible?

  • @the-eta
    @the-eta 7 лет назад

    hello sir! how can i save all the of form1 and form to and the same database.

  • @daveb9099
    @daveb9099 7 лет назад

    I NEED A HELP,
    How to do this in C++ using qt creator??

  • @actimix9
    @actimix9 3 года назад

    Thank you bruh!

  • @alanwu6301
    @alanwu6301 5 лет назад

    Hi
    Can this work on LAN network. Thanks

  • @dummyangdami3461
    @dummyangdami3461 3 года назад

    Thank you

  • @ghostman2876
    @ghostman2876 4 года назад

    okay, thanks dinesh

  • @bhanu3353
    @bhanu3353 3 года назад

    thx bro, 🤝🤝🤝

  • @sebiroulola1919
    @sebiroulola1919 8 лет назад

    i need help
    1 Write a program to implement the following function: when you click a subject in the listbox, it tells you the corresponding score of that subject. For example, if you choose maths in the listbox, a sentence like “math score is 94” will display in the textbox. Physics: 90; Maths: 94; English: 86; C: 80; Python: 83; Ecology: 78; History: 74; Education: 80; Social Science: 73
    2 Write a program to display the admission fee to an event. After the user clicks on a radio button and clicks on the Determine Fee button, the fee is displayed in a text box. If you didn’t choose any option, a message will show up with contents “You must make a selection.”
    Note: the fees of each period is :
    Child: $0
    Minor: 5
    Adult: 10
    Senior: 7.5
    3 Write a program to calculate the monthly cost of a company health plan. The user checks the desired plans, and then clicks on the button to calculate the total cost.

  • @jitendrakumardas
    @jitendrakumardas 5 лет назад

    Similarly I would like to pass the string value from one VB.exe file to another vb.exe file. Bothe the executing files are running and would like to pass the string data from one to another. Please help me with the code. else please provide me your email ID to describe elaborately.

  • @Legendax0201
    @Legendax0201 3 года назад

    how can i make 2 variable and show 2 output for another form?

  • @cherrymaetoledo1628
    @cherrymaetoledo1628 8 лет назад

    how about passing 1point to another form? can you make a tutorial for that?

  • @karthikgowda.s8174
    @karthikgowda.s8174 5 лет назад

    dim OBJ as new form2 and obj. Show()
    This would load this new form
    Once the loaded data would not be retained
    Like I would like pass value to 2forms like form1 would be getting data from form2 and 3 each form passes data to different textbox.......when the value is passed from one form and u get data from another form the .. . . The first form passed value would be gone

  • @Uciferzalunje
    @Uciferzalunje 8 лет назад

    is that work remote server/client?

  • @sindupratama8966
    @sindupratama8966 2 года назад

    WOW, thank you a lot for helping me in my homework. Subs +1

  • @rechiebernabe3786
    @rechiebernabe3786 9 лет назад

    may i know on how to apply this in asp.net visual basic?

  • @armstrong4709
    @armstrong4709 6 лет назад

    Thank you vevry much.

  • @maryjoylobaton7143
    @maryjoylobaton7143 6 лет назад

    I cannot understand where String Pass came from ?

  • @dennisgallardo1129
    @dennisgallardo1129 8 лет назад

    thank you man!!1 you help me a lot!!

  • @wilfredyeboah
    @wilfredyeboah 10 лет назад

    very good it has helped me a lot. but how can we pass pictures from one form to another

  • @drallisimo34
    @drallisimo34 6 лет назад

    cool stuff!!!

  • @CODERDO
    @CODERDO 8 лет назад

    in vb its much easier than your way no need much of codes

  • @naseemsa
    @naseemsa 3 года назад

    Not working in MDI Forms / MDichild Form

  • @lavakushsingh7330
    @lavakushsingh7330 5 лет назад

    good

  • @mihailomilanovic1748
    @mihailomilanovic1748 7 лет назад +1

    label1.text = form1.textbox1.text
    tnx

    • @gonfreeccs4776
      @gonfreeccs4776 6 лет назад

      Error 1 Reference to a non-shared member requires an object reference. How can I fix it?

    • @osama4937
      @osama4937 5 лет назад

      thank you so much

  • @deanaque6153
    @deanaque6153 10 лет назад +1

    thankiee

  • @7AngelOfDarkness
    @7AngelOfDarkness 10 лет назад +4

    Omg we could easily write in form2 "Label1.Text = Form1.Textbox1.Text"

    • @aldouskenneth
      @aldouskenneth 10 лет назад

      Does it still work if you changed the value in form 1 using this code?

    • @MrsLeer
      @MrsLeer 9 лет назад

      +Dark I've actually tried that many times and it always comes up with an error. This, however, works.

    • @shotokan1329
      @shotokan1329 7 лет назад

      Wow no need to watch just do what Dark say, works great
      Thanks Dark

    • @deliciasuprema9641
      @deliciasuprema9641 6 лет назад

      love you

  • @chenweicheow7740
    @chenweicheow7740 7 лет назад +1

    not work

  • @vivekmodi726
    @vivekmodi726 7 лет назад

    aabe kuch ni a rha ha yr

  • @waseemabusultan8984
    @waseemabusultan8984 7 лет назад

    ::,how,,

  • @yanadoodle6065
    @yanadoodle6065 7 лет назад

    leeeeebleee

  • @7AngelOfDarkness
    @7AngelOfDarkness 10 лет назад +8

    Stop changing fonts, nobody cares.

  • @TheForgottenIce
    @TheForgottenIce 9 лет назад +1

    april fool HAHAHAHAHA!!!!

  • @basetmohreb6152
    @basetmohreb6152 3 года назад

    THANK YOU VERY MUCH

  • @thesamrex3063
    @thesamrex3063 3 года назад

    thank you