473,385 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Enumerate and Host Control Panel Applets using C#.

yxq
Hello,

I found a sample code for enumerating and hosting control panel applets,
http://www.codeproject.com/csharp/appletengine.asp

but the applet icons have ugly shadow, how to get rid of it?

Thank you
Nov 20 '05 #1
3 1946
"yxq" <ga***@163.net> schrieb:
I found a sample code for enumerating and hosting control
panel applets,
http://www.codeproject.com/csharp/appletengine.asp

but the applet icons have ugly shadow, how to get rid of it?


In your 'Sub Main', call 'Application.EnableVisualStyles' followed by
'Application.DoEvents' before showing the forms.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #2
yxq
Thank you, but my vb.net is v2002, but not v2003.
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> дÈëÓʼþ
news:ed**************@TK2MSFTNGP12.phx.gbl...
"yxq" <ga***@163.net> schrieb:
I found a sample code for enumerating and hosting control
panel applets,
http://www.codeproject.com/csharp/appletengine.asp

but the applet icons have ugly shadow, how to get rid of it?


In your 'Sub Main', call 'Application.EnableVisualStyles' followed by
'Application.DoEvents' before showing the forms.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #3
* "yxq" <ga***@163.net> scripsit:
Thank you, but my vb.net is v2002, but not v2003.


<URL:http://msdn.microsoft.com/library/en-us/dnwxp/html/xptheming.asp>

My FAQ:

NET 1.0:

Set the controls' 'FlatStyle' properties to 'System', then add an
application manifest.

Tools

<URL:http://www.msjogren.net/dotnet/eng/tools/default.asp>
-> "ThemeMe"

Anternativ:

<URL:http://dotnet.mvps.org/dotnet/samples/tools/>
-> "ThemeUtil"

MSDN:

VS.NET Addin for using XP visual styles
<URL:http://tinyurl.com/37yk>

Using XP Visual Styles in Windows Forms apps
<URL:http://tinyurl.com/37yi>

..NET 1.1:

<URL:http://msdn.microsoft.com/msdnmag/issues/03/03/WindowsForms/>

\\\
Application.EnableVisualStyle()
Application.DoEvents() ' Bug fix.
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Vincent Montressor | last post by:
I'm playing around with writing my own panel applets, and I'm trying to figure out how to get my panel applets to be restored when I log in. As an experiment, I'm using the simple clock applet...
1
by: AKR | last post by:
I have to create a control panel applet for my project using C# . But i got to know that it is not possible using C# since dll has to export static entry points. And one of the ways is using MC++...
7
by: Mike Stephens | last post by:
How can I make a usercontrol host other controls, such as the Groupbox and Panel.
0
by: yxq | last post by:
Hi I found a link to get control panel applets. http://delphi.about.com/library/weekly/aa062403b.htm I know a little about Delphi, how to get only the icon of control panel applets using...
4
by: jeffreywgraham | last post by:
A word of warning, I am new to .NET and fairly new to SQL Server. The problem I have must be a common one, but I am uable to make it work. I have a .NET project and have the user management and...
0
by: Kevin S Gallagher | last post by:
Back in my Borland Delphi days I was able to create "Control Panel Applets" and wondered if this is possible in VS2005 ? Thanks for any insight and possibly templates for a CP applet. Kevin
1
by: Neil Chambers | last post by:
Hi all, I don't know if this is possible but I'd like to access the functions contained in the 'Mail' applet within the Control Panel. Specifically I want to access the 'Profiles' list and...
2
by: shashikantbokaro1976 | last post by:
Hi all, How to create a control panel applets using c#.
0
by: PRR | last post by:
Here is a code i found on "how to enumerate appdomains in a current process". The original code was posted by Thomas Scheidegger Add the following as a COM reference -...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.