• Changing the text in a label from one form to another (VB)
    33 replies, posted
Basically I'm making a scoring system, I know how to make the scoring system work. But I want to display the number in a label on a different form. How would I go about this?
I would include a reference to the other form in the form you have the original data on, and make a method to save the score. Ergo. [cpp]myFirstForm.SetScore(scoreLabel.Text);[/cpp] Don't forget to make it public. Also, you could do a static class to handle the whole thing. Which is probably a better idea. Oh, and note that I do C#, and while it can directly convert to VB.net, I don't know VB's syntax very well anymore.
[QUOTE=ShaRose_;21454467]I would include a reference to the other form in the form you have the original data on, and make a method to save the score. Ergo. [cpp]myFirstForm.SetScore(scoreLabel.Text);[/cpp] Don't forget to make it public. Also, you could do a static class to handle the whole thing. Which is probably a better idea. Oh, and note that I do C#, and while it can directly convert to VB.net, I don't know VB's syntax very well anymore.[/QUOTE] ?: TheFormHere.ScoreLabel.Text = "The score here in text, or blah.text if you get my drift." I hope I didn't screw that up. I'm a little rusty.
[QUOTE=TomW411;21467376]?: TheFormHere.ScoreLabel.Text = "The score here in text, or blah.text if you get my drift." I hope I didn't screw that up. I'm a little rusty.[/QUOTE] Pretty much. I was aiming for a procedure that takes a string argument, so you could go TheFormHere.SetScore("The score")
Awesome, I was wondering this myself a while ago.
[QUOTE=ShaRose_;21474620]Pretty much. I was aiming for a procedure that takes a string argument, so you could go TheFormHere.SetScore("The score")[/QUOTE] Ah, ok!
[QUOTE=Chad Mobile;21475051]Awesome, I was wondering this myself a while ago.[/QUOTE] So you can shit up the WAYWO thread some more?
No, get out.
[QUOTE=Chad Mobile;21531061]No, get out.[/QUOTE] I think i'm more wanted in the programming forum then you. So don't you tell me to get out.
[QUOTE=Joshyy;21533432]I think i'm more wanted in the programming forum then you. So don't you tell me to get out.[/QUOTE] +1 Agree. You only have 41 posts and they're already better than the entire of Chad Mobile's 1,700
If you've also noticed, he joined this month. Good observation Captain smart.
[QUOTE=Chad Mobile;21534697]If you've also noticed, he joined this month. Good observation Captain smart.[/QUOTE] If you've also noticed, i'm an alt.
[QUOTE=Chad Mobile;21534697]If you've also noticed, he joined this month. Good observation Captain smart.[/QUOTE] You completely missed the point of my post
[QUOTE=turb_;21536866]You completely missed the point of my post[/QUOTE] What did you expect? It's chad.
And here goes yet another thread, destroyed by Chad Mobile
[QUOTE=Chris220;21544608]And here goes yet another thread, destroyed by Chad Mobile[/QUOTE] By Joshyy and Turbulence, rather. It's getting quite pathetic.
[QUOTE=Chad Mobile;21534697]If you've also noticed, he joined this month. Good observation Captain smart.[/QUOTE] Join date elitism, tisk, tisk, and you do realize that a join date or a post count is irrelevant? And every single one of your posts seems to be garbage. @ THREAD: Basically, if you want do change it, it'd be like this: [code]textbox1.text = form1.label1.text[/code] Something along those lines
[QUOTE=jA_cOp;21544653]By Joshyy and Turbulence, rather. It's getting quite pathetic.[/QUOTE] Threads been solved before Chad came in. Not ruined.
I said that I'd been wondering how to do this, and you came in and started being a shitface. What did I do wrong? Now get out.
Chad do you like when people hate you or something? Stop being a baby and ignore posts that bother you. And yes I know "I didn't start anything, HE did."
I didn't do anything wrong and he came in being a dick. Explain why I am at fault. Please.
Guys guys guys why are we fighting. We're supposed to be friends. Oh who am I kidding. Chad fuck off. Obviously you aren't wanted here, so why do you stay?
Because you replied. If 10 people hate you and only one of them says something, when you reply, you only prolong the pointless argument and then the rest of them come. You might think that it's not your fault, you might even be right but if you just ignored those comments instead of replying to them people would stop being against you. They won't stop, it's 10 of them and one of you.
Chad, you post too much rubbish. This forum isn't a chat room. Posting "Oh i was wondering how to do this" is completely irrelevant to the thread. Unless you have something that is actually about the topic to contribute, please refrain from telling us your life story. But I do agree, people are getting ridiculous with the Chad bandwagon. You guys post "cool" and stuff that is good, then when Chad does it he gets 10 dumb. Stop acting like children.
[QUOTE=Joshyy;21500814]So you can shit up the WAYWO thread some more?[/QUOTE] This is a perfect example of a dick. EXPLAIN what I did wrong.
Yes thank you. You know, I'm starting to hate you to. You just can't drop it. After I write a 50 words long reply you come back, COMPLETELY ignoring everything I said with a 5 word reply. If that was too long for you here's the summary: -IGNORE THE COMMENTS, DON'T REPLY.
Why can't other people do the same thing?
[QUOTE=Darwin226;21551890]Yes thank you. You know, I'm starting to hate you to. You just can't drop it. After I write a 50 words long reply you come back, COMPLETELY ignoring everything I said with a 5 word reply. If that was too long for you here's the summary: -IGNORE THE COMMENTS, DON'T REPLY.[/QUOTE] This. And Chad really. Your being very, very immature. If you would kindly shut the fuck up maybe people would like you better.
You're one to talk.
[QUOTE=Chad Mobile;21551980]You're one to talk.[/QUOTE] You can't help yourself can you? Stop trying to get the last word, your making things worse. Moving away from this mess and something for the topic. How do I create a sphere of pixels with a given diameter? Say like, 7 pixels.
Sorry, you need to Log In to post a reply to this thread.