Windows Framework

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tim Zottberg

    #1

    Windows Framework


    Hello!

    I thought that the last post was closed, but then Tom wrote something
    interesting.
    Sorry I didn't post in the old subject...

    The Windows Framework is meant to enabled XP styles, correct?
    If I want to start with a sub main then I cannot have XP styles, correct?

    So what is the usual workaround?
    Put all initialization into the form's load event?

    Out of curiosity... does somebody know why there is such a big
    difference resulting in such elementary decision if we want to use the
    Windows Framework just because we decide to use a sub main??? Or in
    other words: WHY?? :-)

    Best regards!
    Tim.

  • Armin Zingler

    #2
    Re: Windows Framework

    "Tim Zottberg" <tim.zottberg@e mail.comschrieb
    >
    Hello!
    >
    I thought that the last post was closed, but then Tom wrote
    something interesting.
    Sorry I didn't post in the old subject...
    >
    The Windows Framework is meant to enabled XP styles, correct?
    If I want to start with a sub main then I cannot have XP styles,
    correct?
    No. Call Application.Ena bleVisualStyles as the first line in Sub Main.

    So what is the usual workaround?
    Put all initialization into the form's load event?
    >
    Out of curiosity... does somebody know why there is such a big
    difference resulting in such elementary decision if we want to use
    the Windows Framework just because we decide to use a sub main??? Or
    in other words: WHY?? :-)
    You probably mean the Application Framework, right? Well, it does things for
    us that are not done if we don't use it. :) It includes enabling visual
    styles, but you can enable it also.


    Armin

    Comment

    • Tim Zottberg

      #3
      Re: Windows Framework

      Yes! Right! I mean the Application Framework! Phew, thanks :-)))

      Good to hear that I can keep my old programming style...

      Cheers,
      Tim

      Comment

      • Anon-E-Moose

        #4
        Re: Windows Framework

        Tim Zottberg <tim.zottberg@e mail.comwrote in news:ubUI6yr1HH A.3640
        @TK2MSFTNGP06.p hx.gbl:
        Yes! Right! I mean the Application Framework! Phew, thanks :-)))
        >
        Good to hear that I can keep my old programming style...

        Times are changing ;-)

        Comment

        • Tim Zottberg

          #5
          Re: Windows Framework

          Times are changing ;-)

          Okay, I want to get left behind... Can you tell me what the Application
          Framework means in this case?

          Best regards,
          Tim.

          Comment

          • Spam Catcher

            #6
            Re: Windows Framework

            Tim Zottberg <tim.zottberg@e mail.comwrote in news:OCx3nCs1HH A.4672
            @TK2MSFTNGP05.p hx.gbl:
            >Times are changing ;-)
            >
            Okay, I want to get left behind... Can you tell me what the Application
            Framework means in this case?

            I noticed you wrote:

            "Out of curiosity... does somebody know why there is such a big
            difference resulting in such elementary decision if we want to use the
            Windows Framework just because we decide to use a sub main??? Or in
            other words: WHY?? :-)"

            There isn't really - it's just that with the application framework MS has
            provided all the initialization code. You can still write your own as you
            see...

            Or you can use the provided applicatino framework and handle intialization
            using the application framework events.

            Comment

            Working...