EnableVisualStyles in Loaded DLL

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jason Schneekloth

    EnableVisualStyles in Loaded DLL

    Hey all, quick question for you...my main application uses the
    EnableVisualSty les functionality in .NETv1.1 and I load some dll's which
    contain some windows forms which I would also like to EnableVisualSty les in,
    but there is no "Applicatio n" to enable it within the dll code....how do I go
    about enabling xp visual styles on the loaded dll forms? If at all possible,
    I would like to not use a .manifest file.....
  • Mattias Sjögren

    #2
    Re: EnableVisualSty les in Loaded DLL

    Jason,

    A single call to EnableVisualSty les from the EXE should be enough, and
    it should apply to all windows created on the main UI thread. Is that
    not what you're seeing?



    Mattias

    --
    Mattias Sjögren [MVP] mattias @ mvps.org
    http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
    Please reply only to the newsgroup.

    Comment

    • Jason Schneekloth

      #3
      Re: EnableVisualSty les in Loaded DLL

      Wow, you are right, for some reason I overlooked that fact....thanks for your
      quick reply....

      Jason

      "Mattias Sjögren" wrote:
      [color=blue]
      > Jason,
      >
      > A single call to EnableVisualSty les from the EXE should be enough, and
      > it should apply to all windows created on the main UI thread. Is that
      > not what you're seeing?
      >
      >
      >
      > Mattias
      >
      > --
      > Mattias Sjögren [MVP] mattias @ mvps.org
      > http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
      > Please reply only to the newsgroup.
      >[/color]

      Comment

      Working...