Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. WindowsAPICodePack GlassForm Question

WindowsAPICodePack GlassForm Question

Scheduled Pinned Locked Moved C#
questionjsonhelp
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    harsimranb
    wrote on last edited by
    #1

    Hi, I had a question regarding the Windows Aero Glass Feature, found in Windows API Code Pack. This feature is not included in Windows XP and Vista, I believe. So if the GlassForm is shown in Windows XP, will an error be thrown? or will the GlassForm window be shown, without the aero feature and without anyerror error? To be more clear: What will happen if the GlassForm is show in Windows XP/Windows Vista? Thanks, Harsimran Singh

    realJSOPR 1 Reply Last reply
    0
    • H harsimranb

      Hi, I had a question regarding the Windows Aero Glass Feature, found in Windows API Code Pack. This feature is not included in Windows XP and Vista, I believe. So if the GlassForm is shown in Windows XP, will an error be thrown? or will the GlassForm window be shown, without the aero feature and without anyerror error? To be more clear: What will happen if the GlassForm is show in Windows XP/Windows Vista? Thanks, Harsimran Singh

      realJSOPR Offline
      realJSOPR Offline
      realJSOP
      wrote on last edited by
      #2

      WPF also allows aero to be forced on an app, but when you do that, the appropriate DLL is already in the GAC on the user's machine (because they're running the appropriate version of .Net. I suspect that if you include a CodePack assembly in your references, the appropriate DLL will get copied to your bin folder. Try it and see...

      .45 ACP - because shooting twice is just silly
      -----
      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
      -----
      "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

      H 1 Reply Last reply
      0
      • realJSOPR realJSOP

        WPF also allows aero to be forced on an app, but when you do that, the appropriate DLL is already in the GAC on the user's machine (because they're running the appropriate version of .Net. I suspect that if you include a CodePack assembly in your references, the appropriate DLL will get copied to your bin folder. Try it and see...

        .45 ACP - because shooting twice is just silly
        -----
        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
        -----
        "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

        H Offline
        H Offline
        harsimranb
        wrote on last edited by
        #3

        Even if I try that, I can't test it. I don't own a XP or a Vista machine. I only have Windows 7. For more information, you should check out my article: Windows 7 FTP Application It only runs on Windows 7, because of the Windows 7-specific features. I can control other windows 7-specific features on Windows XP/Vista using if(CoreHelpers.RunningOnWin7), however, some of my forms use the glass form. which I can't really control using CoreHelpers.RunningOnWin7, because a Form inherits from GlassForm to use the GlassForm feature. First question would be: What happens if GlassForm is shown in Windows XP? Will an error be thrown? It doesn't matter if the aero feature is not shown, since it is Windows XP/Vista. I only require the glass feature in Windows 7. I hope I am clear, Thanks, Harsimran Singh

        realJSOPR 1 Reply Last reply
        0
        • H harsimranb

          Even if I try that, I can't test it. I don't own a XP or a Vista machine. I only have Windows 7. For more information, you should check out my article: Windows 7 FTP Application It only runs on Windows 7, because of the Windows 7-specific features. I can control other windows 7-specific features on Windows XP/Vista using if(CoreHelpers.RunningOnWin7), however, some of my forms use the glass form. which I can't really control using CoreHelpers.RunningOnWin7, because a Form inherits from GlassForm to use the GlassForm feature. First question would be: What happens if GlassForm is shown in Windows XP? Will an error be thrown? It doesn't matter if the aero feature is not shown, since it is Windows XP/Vista. I only require the glass feature in Windows 7. I hope I am clear, Thanks, Harsimran Singh

          realJSOPR Offline
          realJSOPR Offline
          realJSOP
          wrote on last edited by
          #4

          Pathachiever wrote:

          It only runs on Windows 7, because of the Windows 7-specific features.

          If it only runs on Windows 7, then why are you asking about XP? If you don't want it to to run on XP, then do a Windows version check before you display the first form, and terminate the program if it's running on XP.

          .45 ACP - because shooting twice is just silly
          -----
          "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
          -----
          "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

          H 1 Reply Last reply
          0
          • realJSOPR realJSOP

            Pathachiever wrote:

            It only runs on Windows 7, because of the Windows 7-specific features.

            If it only runs on Windows 7, then why are you asking about XP? If you don't want it to to run on XP, then do a Windows version check before you display the first form, and terminate the program if it's running on XP.

            .45 ACP - because shooting twice is just silly
            -----
            "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
            -----
            "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

            H Offline
            H Offline
            harsimranb
            wrote on last edited by
            #5

            Sorry. I knew I wasn't clear on my side. Actually, I want the application to run on Windows XP. However, I don't know what will happen if the application is ran on Windows XP, since Windows XP probably does not support the glass form feature. I hope I am more clear now. I just need to know what will happen when the Glass Form is shown in Windows XP. Thanks, Harsimran Singh

            realJSOPR 1 Reply Last reply
            0
            • H harsimranb

              Sorry. I knew I wasn't clear on my side. Actually, I want the application to run on Windows XP. However, I don't know what will happen if the application is ran on Windows XP, since Windows XP probably does not support the glass form feature. I hope I am more clear now. I just need to know what will happen when the Glass Form is shown in Windows XP. Thanks, Harsimran Singh

              realJSOPR Offline
              realJSOPR Offline
              realJSOP
              wrote on last edited by
              #6

              Then run it on XP (in a VM if necessary) and see what happens. If you're not doing anything to actually skin the forms, it should fall back to whatever the host OS is capable of.

              .45 ACP - because shooting twice is just silly
              -----
              "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
              -----
              "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups