Type: Posts; User: MrGibbage
Search took 0.01 seconds.
August 19th, 2013, 10:54 AM
Philosophical question here. When I write windows form applications, I try very hard to keep UI and data structures separate. But I wonder if I am doing it the best way, OO-wise.
For instance, if...
December 28th, 2011, 02:22 PM
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...
December 14th, 2011, 09:55 AM
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...
December 13th, 2011, 01:22 PM
This is the code in question:
September 5th, 2011, 02:18 PM
*sigh*... how did I miss that???
Thanks, PeejAvery :)
September 4th, 2011, 07:03 PM
Yes, definitely agree that we need android forums. Maybe start small and just make a "mobile devices" forum???
August 11th, 2011, 08:30 AM
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...
August 10th, 2011, 12:51 PM
*sigh* I figured it out.
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...
August 10th, 2011, 12:23 PM
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.
August 10th, 2011, 09:45 AM
I was looking through a program I am working on, and my Form1 class has several methods that are NOT static, but I call them like they are static.
public partial class Form1 : Form
August 8th, 2011, 09:48 PM
That totally makes sense. I always used .InnerText to read data, so I... ahem.. *assumed* it was read-only. *sigh*
August 8th, 2011, 02:13 PM
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...
August 7th, 2011, 07:10 PM
If I have an XML file with several sections, is there an easy way to rewrite just one section of it?
Say I have
August 5th, 2011, 12:12 PM
A humble and polite bump, please. :)
August 4th, 2011, 10:43 AM
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,...
July 28th, 2011, 09:58 AM
So I guess the MSDN page is wrong????
In the remarks near the top, they say "File and Font are examples of managed types that access...
July 26th, 2011, 03:41 PM
According to several websites I have seen, and this MSDN page:
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.
Thank you so much for the detailed and comprehensive response! If you aren't teaching this stuff as a profession, I think you should consider it!
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...
Ahh.. perfect! Thank you so much :)
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.