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

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ธ.ค. 2024

ความคิดเห็น • 74

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

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

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

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

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

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

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

    Thanks lot you saved my day.

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

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

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

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

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

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

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

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

    simple and straight on point..

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

    Thanks a lot sir.
    Keep sharing the knowledge.

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

    great job helped me a lot

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

    Very helpful, thanks!

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

    Very helpful. Thank you for posting this.

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

    Thank you for the help!

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

    Thanks bro❤

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

    Thank you bruh!

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

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

    Great explanation, thanks!

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

    Thanks sir 😊😊

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

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

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

    Thanks multithread don't have issues in this way.

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

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

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

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

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

    Thank you

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

    thx bro, 🤝🤝🤝

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

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

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

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

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

    cool stuff!!!

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

    Thank you vevry much.

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

    okay, thanks dinesh

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

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

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

    Hi
    Can this work on LAN network. Thanks

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

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

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

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

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

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

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

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

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

    is that work remote server/client?

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

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

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

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

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

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

    thankiee

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

    I cannot understand where String Pass came from ?

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

    good

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

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

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

    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.

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

    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

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

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

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

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

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

    Stop changing fonts, nobody cares.

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

    aabe kuch ni a rha ha yr

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

    ::,how,,

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

    leeeeebleee

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

    april fool HAHAHAHAHA!!!!

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

    THANK YOU VERY MUCH

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

    thank you