I am building a C# application that uses the Facebook SDK to poll a person's FB feed periodically for updates. Facebook uses OAuth and I can check to see if a person is logged in upon application...
Wow! What an incredible response. This must have taken at least an hour or more to write! I am impressed. And enlightened. Your explanations are perfectly clear and I have already made adjustments to...
This is really clearing things up for me. Somehow I got the notion in my head that static methods should be kept to a minimum, because it doesn't follow standard OOP practices. I think the real...
I had one method in my Form1 class that I had accidentally declared as static. When I tried calling another non-static function in the class, the autocomplete wouldn't...
I understand that the "this." can be implicit, but what about the "static"? My method, "DoSomething" is not declared as static. I thought non-static was implied unless static was declared.
I have a closely related question (at least I *THINK* it is).
How do I pass form controls to another class? If I have 40-some controls on a form, how should I pass them from my main Form2.cs? I...
If I have an XML file with several sections, is there an easy way to rewrite just one section of it?
Say I have
<settingsFile>
<section1>
<element />
</section1>
<section2>
...
If I need to get some data from a web site, what should I consider when choosing between WebClient and WebRequest? I have used these two methods, and they seem to do pretty much the same thing,...
According to several websites I have seen, and this MSDN page:
http://msdn.microsoft.com/en-us/library/yh598w02.aspx
when declaring a new object of a class that inherits from IDisposable, one...
That's pretty much what I thought, and I do already add my timers to a Dictionary. I do dispose of the timer and then remove it from the Dictionary at the same time, but in the interest of...
Is there a way to see all of the active timers in an application in VS 2010? My application sets many timers, and I want to see if they are getting disposed and created when they are supposed to.
I thought that it was the base class because I had to cast it back to my inherited class in order to access the other properties and objects of the inherited class. Is that not the right way to...
I think my question may be specific to Timer-fired events, and more specifically to classes that inherit from System.Timers.Timer. When an instance of an inherited class fires the Elapsed event, the...
It worked perfectly. Thanks. I got rid of the LINQ query too. My only question is why does this work? If the elapsed eventhandler only passes the actual timer, then how does casting it back to my...
OK, I asked this question a couple of weeks ago, and I was given an answer that suited me at the time, but my requirements have changed a bit. I would like to know when a time.elapsed fires, which...
In VS 2010 Express, after I add a control to a form, I can double-click it and it will take me to the event handler stub for the default action. But don't some controls have more than one event? ...