Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: MrGibbage

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Where should my collection of data objects be instantiated?

    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...
  2. Replies
    1
    Views
    1,591

    WebBrowser control and timer threads

    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...
  3. Replies
    4
    Views
    1,215

    Re: What does this code do?

    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...
  4. Replies
    4
    Views
    1,215

    What does this code do?

    From here:
    http://blogs.msdn.com/b/ericwhite/archive/2008/08/21/using-linq-to-xml-to-retrieve-content-controls-in-word-2007.aspx

    This is the code in question:


    using (WordprocessingDocument...
  5. Replies
    5
    Views
    1,589

    Re: we need android and iOS forums

    *sigh*... how did I miss that???

    Thanks, PeejAvery :)
  6. Replies
    5
    Views
    1,589

    Re: we need android and iOS forums

    Yes, definitely agree that we need android forums. Maybe start small and just make a "mobile devices" forum???
  7. Re: Just when I thought I fully understood static vs non-static methods...

    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...
  8. Re: Just when I thought I fully understood static vs non-static methods...

    *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...
  9. Re: Just when I thought I fully understood static vs non-static methods...

    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'm...
  10. Just when I thought I fully understood static vs non-static methods...

    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
    {
    ...
  11. Replies
    3
    Views
    596

    Re: Rewrite one section of an xml file

    That totally makes sense. I always used .InnerText to read data, so I... ahem.. *assumed* it was read-only. *sigh*

    Thanks :)
  12. Re: [RESOLVED] Transferring info between forms

    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...
  13. Replies
    3
    Views
    596

    Rewrite one section of an xml file

    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>
    ...
  14. Replies
    2
    Views
    2,943

    Re: WebClient vs. WebRequest

    A humble and polite bump, please. :)
  15. Replies
    2
    Views
    2,943

    WebClient vs. WebRequest

    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,...
  16. Replies
    3
    Views
    595

    Re: IDisposable and "using" statements

    So I guess the MSDN page is wrong????
    http://msdn.microsoft.com/en-us/library/yh598w02.aspx

    In the remarks near the top, they say "File and Font are examples of managed types that access...
  17. Replies
    3
    Views
    595

    IDisposable and "using" statements

    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...
  18. Re: Troubleshooting Timers with VS 2010 Express

    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...
  19. Troubleshooting Timers with VS 2010 Express

    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.
  20. Replies
    9
    Views
    1,587

    Re: Which timer fired?

    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!
  21. Replies
    9
    Views
    1,587

    Re: Which timer fired?

    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...
  22. Replies
    9
    Views
    1,587

    Re: Which timer fired?

    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...
  23. Replies
    9
    Views
    1,587

    Re: Which timer fired?

    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...
  24. Replies
    9
    Views
    1,587

    Which timer fired?

    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...
  25. Replies
    3
    Views
    323

    Re: What events are available?

    Ahh.. perfect! Thank you so much :)
Results 1 to 25 of 58
Page 1 of 3 1 2 3


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center