Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 474601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T00:18:14+00:00 2026-05-13T00:18:14+00:00

I want to take advantage of the new Windows 7 taskbar functionality in a

  • 0

I want to take advantage of the new Windows 7 taskbar functionality in a .NET application and would like to know what people think is the best way to check for Windows 7 features in .NET. My aim is to have distinct code for Windows XP and Windows 7.

I’m not overally keen on:

  • just wrapping the Windows 7 code in a try catch
  • if OS = “Windows 7” Then…

Unless of course this is what most are doing. I really have hunted everywhere for a good approach but without success. The Microsoft unmanaged code wrapper library seems to just assume it’s running on Windows 7…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T00:18:15+00:00Added an answer on May 13, 2026 at 12:18 am

    I think there’s nothing wrong with if OS = "Windows 7“. Of course,

    • it should be if OS >= "Windows 7" (so that it doesn’t break in Windows 7.1 or whatever will be the successor) and
    • it should be done by checking Environment.OSVersion (Platform and >= Version).

    If you don’t want to clutter your code with if (isWindows7) {...}, you might want to put the platform-specific code into a separate class. For example, you could create an interface

    interface IOSSpecific {
        void AddToJumpList(...);
        ...
    }
    

    and two implementations of this class, one for >= Win 7 and one for others (which does different things or nothing at all). When your application starts, you instantiate some global variable of type IOSSpecific with either one of the two implementations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to take advantage of the new features in Windows 7 using C#
I'm using ActiveMerchant with Braintree as my payment processor. I want to take advantage
I want to take backup of BugTracker.Net hosted on my local and restore it
Suppose you want to take advantage of move semantics, but one of your movable
I have a java app, and, I want it to take advantage of multicore
I want to take multiple integer inputs in same line eg :- input -1
I want to take an array and use that array's values to populate an
I want to take a snapshot with my webcam using java and save it
I want to take an XML file and replace an element's value. For example
I want to take two lists and find the values that appear in both.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.