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

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 มี.ค. 2014
  • Passing Data Between Forms. VB.NET - How to pass string value from one form to another form's load
    ★★★Top Online Courses From ProgrammingKnowledge ★★★
    Python Programming Course ➡️ bit.ly/2vsuMaS ⚫️ bit.ly/2GOaeQB
    Java Programming Course ➡️ bit.ly/2GEfQMf ⚫️ bit.ly/2Vvjy4a
    Bash Shell Scripting Course ➡️ bit.ly/2DBVF0C ⚫️ bit.ly/2UM06vF
    Linux Command Line Tutorials ➡️ bit.ly/2IXuil0 ⚫️ bit.ly/2IXukt8
    C Programming Course ➡️ bit.ly/2GQCiD1 ⚫️ bit.ly/2ZGN6ej
    C++ Programming Course ➡️ bit.ly/2V4oEVJ ⚫️ bit.ly/2XMvqMs
    PHP Programming Course ➡️ bit.ly/2XP71WH ⚫️ bit.ly/2vs3od6
    Android Development Course ➡️ bit.ly/2UHih5H ⚫️ bit.ly/2IMhVci
    C# Programming Course ➡️ bit.ly/2Vr7HEl ⚫️ bit.ly/2W6RXTU
    JavaFx Programming Course ➡️ bit.ly/2XMvZWA ⚫️ bit.ly/2V2CoAi
    NodeJs Programming Course ➡️ bit.ly/2GPg7gA ⚫️ bit.ly/2GQYTQ2
    Jenkins Course For Developers and DevOps ➡️ bit.ly/2Wd4l4W ⚫️ bit.ly/2J1B1ug
    Scala Programming Tutorial Course ➡️ bit.ly/2PysyA4 ⚫️ bit.ly/2PCaVj2
    Bootstrap Responsive Web Design Tutorial ➡️ bit.ly/2DFQ2yC ⚫️ bit.ly/2VoJWwH
    MongoDB Tutorial Course ➡️ bit.ly/2LaCJfP ⚫️ bit.ly/2WaI7Ap
    QT C++ GUI Tutorial For Beginners ➡️ bit.ly/2vwqHSZ
    ★★★ Online Courses to learn ★★★
    Get 2 FREE Months of Unlimited Classes from skillshare - skillshare.eqcm.net/r1KEj
    Data Science - bit.ly/2lD9h5L | bit.ly/2lI8wIl
    Machine Learning - bit.ly/2WGGQpb | bit.ly/2GghLXX
    Artificial Intelligence - bit.ly/2lYqaYx | bit.ly/2NmaPya
    MERN Stack E-Degree Program - bit.ly/2kx2NFe | bit.ly/2lWj4no
    DevOps E-degree - bit.ly/2k1PwUQ | bit.ly/2k8Ypfy
    Data Analytics with R - bit.ly/2lBKqz8 | bit.ly/2lAjos3
    AWS Certification Training - bit.ly/2kmLtTu | bit.ly/2lAkQL1
    Projects in Java - bit.ly/2kzn25d | bit.ly/2lBMffs
    Machine Learning With TensorFlow - bit.ly/2m1z3AF | bit.ly/2lBMhnA
    Angular 8 - Complete Essential Guide - bit.ly/2lYvYRP
    Kotlin Android Development Masterclass - bit.ly/2GcblsI
    Learn iOS Programming Building Advance Projects - bit.ly/2kyX7ue
    ★★★ Follow ★★★
    My Website - www.codebind.com
    DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
    VB.NET - how to pass values from one form to another
    VB.NET - 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 - VB.NET / C Sharp
    Sample Code in C#: How to Pass values to another Form Visual Basic .NET
    VB.NET - Get value from another Form
    Passing Data To another Form (C# .NET)
    VB.NET - Send value from one form to another
    Passing Values From Form to Form in C# Complete Step by Step Visual Basic .NET
    How To Pass Values From Page to Page Using Visual Basic .NET

ความคิดเห็น • 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❤️👍🏼

  • @goodairin
    @goodairin 7 ปีที่แล้ว

    Very helpful. Thank you for posting this.

  • @adlersongs4460
    @adlersongs4460 5 ปีที่แล้ว

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

  • @spatil6522
    @spatil6522 4 ปีที่แล้ว

    Thanks a lot sir.
    Keep sharing the knowledge.

  • @kangarooshotgun
    @kangarooshotgun 8 ปีที่แล้ว

    Great explanation, thanks!

  • @UmitDurupinar
    @UmitDurupinar 8 ปีที่แล้ว +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.

  • @bhubesi9425
    @bhubesi9425 9 ปีที่แล้ว

    simple and straight on point..

  • @unknownstardust_
    @unknownstardust_ 2 ปีที่แล้ว

    Very helpful, thanks!

  • @keladriel
    @keladriel 4 ปีที่แล้ว

    Thank you for the help!

  • @mohamadaiman3813
    @mohamadaiman3813 3 ปีที่แล้ว +1

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

  • @mesutyenigun7609
    @mesutyenigun7609 ปีที่แล้ว

    Thanks lot you saved my day.

  • @terryalleyne8455
    @terryalleyne8455 5 ปีที่แล้ว

    great job helped me a lot

  • @qual1481
    @qual1481 6 ปีที่แล้ว

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

  • @gtag174
    @gtag174 9 ปีที่แล้ว +1

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

  • @SuperMamaLeer
    @SuperMamaLeer 8 ปีที่แล้ว

    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!

    • @SuperMamaLeer
      @SuperMamaLeer 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

  • @dennisgallardo1129
    @dennisgallardo1129 7 ปีที่แล้ว

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

  • @aubintalawou3642
    @aubintalawou3642 5 ปีที่แล้ว

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

  • @basetmohreb6152
    @basetmohreb6152 3 ปีที่แล้ว

    THANK YOU VERY MUCH

  • @drallisimo34
    @drallisimo34 6 ปีที่แล้ว

    cool stuff!!!

  • @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 ?

  • @actimix9
    @actimix9 2 ปีที่แล้ว

    Thank you bruh!

  • @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

  • @normangon
    @normangon 9 ปีที่แล้ว

    Thanks multithread don't have issues in this way.

  • @armstrong4709
    @armstrong4709 6 ปีที่แล้ว

    Thank you vevry much.

  • @the-eta
    @the-eta 7 ปีที่แล้ว

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

  • @daveb9099
    @daveb9099 6 ปีที่แล้ว

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

  • @eijunorbeta5155
    @eijunorbeta5155 6 ปีที่แล้ว

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

  • @Uciferzalunje
    @Uciferzalunje 7 ปีที่แล้ว

    is that work remote server/client?

  • @Skystarish
    @Skystarish 4 หลายเดือนก่อน

    Thanks bro❤

  • @educationhub8241
    @educationhub8241 4 ปีที่แล้ว

    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

  • @dummyangdami3461
    @dummyangdami3461 3 ปีที่แล้ว

    Thank you

  • @cherrymaetoledo1628
    @cherrymaetoledo1628 8 ปีที่แล้ว

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

  • @sindupratama8966
    @sindupratama8966 2 ปีที่แล้ว

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

  • @thesamrex3063
    @thesamrex3063 2 ปีที่แล้ว

    thank you

  • @alanwu6301
    @alanwu6301 4 ปีที่แล้ว

    Hi
    Can this work on LAN network. Thanks

  • @aggarwalg4503
    @aggarwalg4503 3 ปีที่แล้ว

    Thanks sir 😊😊

  • @rechiebernabe3786
    @rechiebernabe3786 8 ปีที่แล้ว

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

  • @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.

  • @bhanu3353
    @bhanu3353 2 ปีที่แล้ว

    thx bro, 🤝🤝🤝

  • @Legendax0201
    @Legendax0201 2 ปีที่แล้ว

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

  • @sebiroulola1919
    @sebiroulola1919 7 ปีที่แล้ว

    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.

  • @maryjoylobaton7143
    @maryjoylobaton7143 6 ปีที่แล้ว

    I cannot understand where String Pass came from ?

  • @daniel49245
    @daniel49245 2 ปีที่แล้ว

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

  • @7AngelOfDarkness
    @7AngelOfDarkness 10 ปีที่แล้ว +3

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

  • @deanaque6153
    @deanaque6153 9 ปีที่แล้ว +1

    thankiee

  • @ghostman2876
    @ghostman2876 4 ปีที่แล้ว

    okay, thanks dinesh

  • @karthikgowda.s8174
    @karthikgowda.s8174 4 ปีที่แล้ว

    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

  • @lavakushsingh7330
    @lavakushsingh7330 5 ปีที่แล้ว

    good

  • @ProgrammingKnowledge
    @ProgrammingKnowledge  10 ปีที่แล้ว +3

    • @ethanwehrle
      @ethanwehrle 7 ปีที่แล้ว +1

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

  • @naseemsa
    @naseemsa 2 ปีที่แล้ว

    Not working in MDI Forms / MDichild Form

  • @wilfredyeboah
    @wilfredyeboah 10 ปีที่แล้ว

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

  • @CODERDO
    @CODERDO 7 ปีที่แล้ว

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

  • @7AngelOfDarkness
    @7AngelOfDarkness 10 ปีที่แล้ว +4

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

    • @aldouskenneth
      @aldouskenneth 9 ปีที่แล้ว

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

    • @SuperMamaLeer
      @SuperMamaLeer 8 ปีที่แล้ว

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

    • @shotokan1329
      @shotokan1329 6 ปีที่แล้ว

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

    • @deliciasuprema9641
      @deliciasuprema9641 5 ปีที่แล้ว

      love you

  • @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

  • @chenweicheow7740
    @chenweicheow7740 7 ปีที่แล้ว +1

    not work

  • @vivekmodi726
    @vivekmodi726 7 ปีที่แล้ว

    aabe kuch ni a rha ha yr

  • @waseemabusultan8984
    @waseemabusultan8984 6 ปีที่แล้ว

    ::,how,,

  • @yanadoodle6065
    @yanadoodle6065 6 ปีที่แล้ว

    leeeeebleee

  • @7AngelOfDarkness
    @7AngelOfDarkness 10 ปีที่แล้ว +8

    Stop changing fonts, nobody cares.

  • @TheForgottenIce
    @TheForgottenIce 9 ปีที่แล้ว +1

    april fool HAHAHAHAHA!!!!