|
Hey Christian, thanks for the great tutorial, helped me a lot!
"..Commit yourself to quality from day one..it's better to do nothing at all than to do something badly.."
-- Mark McCormick
|
|
|
|
|
The forms are irrelevant. Events work the same in all classes. To watch the change of a variable, make it a property, so you can write code that is called when it changes. Then, fire your events, which are created and subscribed to in accordance with the sample I gave you. If you look for model view controller in this site, there's at least one C# sample using delegates to create this design pattern, and it's sure to be a forms app, although that just adds a lot of code that distracts from what you need to see, which is how delegates work.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
ROTFL - glad it helped someone....
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
He deleted them all almost as soon as he realised that I was suggesting he read some stuff for himself instead of asking me for a full code example.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
You know what's really funny ? He's asked three questions before this one ( I answered at least one, about events as it happens, and he post voted me a 5 for the answer ), this morning his post count was in the mid twenties, and now it's down to four ( three once he deletes his reply to this post of yours ).
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Why did you delete all your posts ? Did you solve the problem ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
OK, well, first of all, it's kind of childish to delete your posts. Secondly, you seem to me to be saying that you're incapable of research, even when given the links, and you'd like someone to write all the code for you. Is that correct ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
That's weird. It's childish of me to try and help you ? I'm incapable of learning from a link, on the basis that I gave you one ? How old are you ? Does it occur to you that the help you're getting here is completely free, and despite how rude and obtuse you are being, I'm still trying to help you ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Nick, you have a lot to learn, both about programming, and about life in general. I wish you all the best.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Cool Down....
There are people who need to be given with all codes, and they need to be instructed on how/where to copy/paste into their computer. We will have to adjust with them.
They also play silly by rating other posts with lower votes....
Just let them play. They will grow up one day
"He that is good with a hammer tends to think everything is a nail." - Abraham Maslow
|
|
|
|
|
S P S wrote:
There are people who need to be given with all codes, and they need to be instructed on how/where to copy/paste into their computer. We will have to adjust with them.
The thing is, I was willing to give a more elaborate example, if it was needed. It was the other guy who started getting rude. And certainly, I was doing my best to hold it together, and tried to steer things back towards me helping him further.
S P S wrote:
They also play silly by rating other posts with lower votes....
LOL - I don't pay attention to post votes, I could care less about that.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
The concepts in the link helps to answer your actual query
"He that is good with a hammer tends to think everything is a nail." - Abraham Maslow
|
|
|
|
|
Man, this is so funny. I can't believe that this guy is not only too dumb to work out hte answer from the info I provided, but dumb enough to insult everyone who is trying to offer him free help.
I'll keep an eye out for him when I'm in the states, I'm sure he'll serve me a burger and fries at some point.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
|
Here's the funny thing. I don't have a problem with you being too inexperienced to work out the answer from what I told you, and the link I gave you. I asked further questions, even though your deleting your comments showed me that you're an immature sort of person, because I wanted to see if you needed more help. While I surely hope no-one is paying you to write code if you're incapable of working out the answer from the info I gave you, I have no trouble with helping absolute beginners, or holding the hands of people who are completly incapable of thinking for themselves. But you responded by insulting me, and now you can get stuffed.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
HEY..i think u r real expert in C#, could u just reply to my query on Tab Control Problem...if m missin out on any thing plz do tell me
regards,
Dee
|
|
|
|
|
Nick932 wrote:
Hey, Do noy blame me because he could not ansser. Can you?
But Christian did answer your query by giving you links to the appropriate resources.
If there was something specific about it that you did not understand you could ask - perhaps you did, but you deleted your posts so I cannot help either now.
My: Blog | Photos
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More
|
|
|
|
|
Nick932 wrote:
He replied with a console app link. Not a specific windows forms link.
But, event handling in a console application works exactly the same way as in a Windows Forms application or an ASP.NET application.
Nick932 wrote:
If you do read his replies all of them are somewhat related. I just do not want to mud the waters and that's all that he has achieved to do so far with his irrelevant answers.
Looking at the answers they do appear to be relevant, just not precisely exactly 100% what you were looking for.
My: Blog | Photos
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More
|
|
|
|
|
Nick932 wrote:
They might but is not the answer.
Do you expect the answer to be handed to you on a plate?
If you do, I suggest calling Microsoft support because if you pay them money they will answer your questions exactly as you want them. However, this is a free resource. People here are volunteers. We don't have to help at all, but we try to help where we can. We are not a homework service and we don't always answer exactly how you would like your question answered. You have to show that you are willing to do some work yourself. You have to show that you are capable of doing more than a copy and paste.
If you show that you have looked at the link and attempted to apply it to your application and it doesn't work, you can paste the code and ask why it didn't work. Then we can see where the misunderstanding is.
If you don't understand the answer then often there will be some keywords in the answer that you can use in a google search to find some documentation that you do understand.
My: Blog | Photos
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More
|
|
|
|
|
|
Nick932 wrote:
It amazes me that people can not even code 15 lines of simple code and they think that they are experts. Instead they give you solutions to unexisted problems and issues.
Actually, you are the one who is incapable of writing simple code, it would seem, and it will take less than 15 lines.
Given that you're looking for a cut and paste solution, and that you think you can be rude to people who are trying to help you, I'm happy to give you the full solution that I was previously trying to offer for free, at a cost of $1000. Contact me if you'd like to take this further.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Yeah, I can say, for sure, that he's looking for a reply like this[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Man, I don't see how you can say it better than that. He gave you a 1 ? I'm dumbfounded.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
You might pay attention to the fact that Christian is one of about 80 MVPs on the planet in C++/C# so should be listened to more carefully.
His advice has helped me in the past.
Elaine
The tigress is here
|
|
|
|
|
Nick932 wrote:
He and you might want to listen to somebody that does hold specific worldwide software patents.
Are you saying that you hold software patents, but you're too dumb to work out some event handling code when given a link that explains them ? I bet those patents are real lucrative then....
People who are asking for help, and who are too stupid to understand it when given, are rarely this arrogant. Thanks for giving me a belly laugh.
Christian Graus - Microsoft MVP - C++
|
|
|
|