.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

SystemParametersInfo in VB.Net for detection of HighContrast theme

Posted By:      Posted Date: September 02, 2010    Points: 0   Category :Windows Application
Hello I am working in VB.Net 2010, framework 2.0. I want to detect weather high contrast theme is applied or not and so I want to use SystemParametersInfo function. Can anybody tell me the sample example for this? I am using the structure Type tHIGHCONTRAST cbSize As Long dwflags As Long lpszDefaultScheme As String End Type but everytime i am getting the "lpszDefaultScheme " as NULL. Thanks in advance for any suggestion

View Complete Post

More Related Resource Links

Browser detection and content adaptation


hi everyone

 Here i'm creating two sites for internet version and mobile version.

 When the user enters site name, we would detect the mobile browser automatically and redirect the user to mobile version of the site .

is it possible??

if yes, please tell the way i need to develop the application for mobile web application

Device detection: standard & mobile web applications


I would like to host standard web pages as well as mobile web pages on a single website/virtual directory.


Is there a simple way of sniffing out the machine type and then presenting either web or mobile application depending on the device?

Or is there a better solution other than creating separate website?

Many thanks

Mobile detection and redirection


Hi all,


I want to check with you what things to add  to implement a mobile browser and then redirect it to other site.

Do I have to add Browsercap in the web.config?

also I want you to help me with this script that i coded (not a programmer):

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
public partial class _Default : System.Web.UI.Page
    // SqlConnection con;
    protected void Page_Load(object sender, EventArgs e)

        if (Request.Browser.Browser == "AppleWebKIt" )

Mobile phone browser detection


Hi i am planning to develop a site for mobiles. My first problem is how to find the mobile browser so that i can redirect to the mobile site for good look. When i searched for that i came accross WURFL which contains the list of mobile user agents? Is this the good solution or anybody having good solution please tell which will be helpful for me.

Waiting for the reply

Proxy Detection: Take the Burden Off Users with Automatic Configuration in .NET


Proxy settings can be a real pain in the neck and very frustrating for users to configure properly. In this article, Durgaprasad Gorti discusses how you can use automatic proxy configuration via script and how it works in the Microsoft .NET Framework 1.1 and 2.0.

Durgaprasad Gorti

MSDN Magazine August 2005

WPF Ribbon theme customization

Hello everybody!   Is it possibile to customize the builtin wpf ribbon themes?   Thank you very much!

Custom Theme for entire Site Collection

I created a theme with custom css for sharepoint 2010 Is it possible for me to use my custom CSS and have it be a selectable theme from each site without me having to modify the master pages of each site that wants to use the theme?

Anounmouse user Theme Issue

Hi All, I am using sharepoint foundation 2010,my problem is when anounmous user visit my site it's shows diffrent css file , but when registerd user enter in to my site it's show diffrent CSS for home page. I have already created custom theme through powerpoint and uploaded it on sharepoint 2010 and it's working fine for all  registered user. But some how anonymous user view is not picking up CSS from the Custom Theme. Please help  

How to customise theme secondary colors?

When editing a theme it is possible to set the primary colors and the secondary colors are auto-generated. Is it possible to customise the secondary colors somehow if I don't like the auto-generated ones?

Applying theme on tabs.

Hi,   I have a web application. In which user can able to create one or more tabs. Also I would like to introduce the following .   Selecting themes on ever tabs. All tabs will be on the same page. So user can have theme for each tabs.   How will I apply the theme for each tabs when clicking on them ?    See the sample website url ; http://dropthings.omaralzabir.com/   In this how will I apply theme for each tab when user clicking on it ?Suresh.

Could not edit " jquery.ui.theme.css" because it is not in the Web site.

I add jquery 8 (css, development, and js folders) to my ASP.net project, everything is fine but when I open a page design I get the following error: Could not edit  "MyProjectPath\ jquery.ui.theme.css" because it is not in the Web site.     do you have an idea about it? Thanks in Advance  

Site Theme in MOSS 2007

Hi,   Can you provide me a code/program to list the site themes applied to all the site collections in my web application.   Regards, Garima

How to detect high contrast theme applied or not

I am working in VB.Net 2010, framework 2.0. I want to theme my application and I want to detect that high contrast theme is applied or not. I am using "Microsoft.Win32.SystemEvents.UserPreferenceChanged" events but exactly how to know which theme applied?. In the event of "Microsoft.Win32.SystemEvents.UserPreferenceChanged", controls many times after changing the event and so it is becoming difficult to know which theme is applied. Can anyone please tell me the exact way to know high contrast theme is applied or not???   Thanks in advance.

Setting theme to windows application

Hi I am having Vista Machine & I am developing windows application with VS2008. When i run my application it is showing the current windows theme by default. I want to apply XP classic theme to it. Can you please suggest me how to set my winform as well as control style to XP classic theme. Means after developing my winform application on vista if i run that application on any of the Windows OS it will show me XP theme not the default theme of that operating system. Is there any way for doing the same ? If yes please share it. Thanks, Devendra
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend