 |
|
 |
In VC++ 6.0, it was trivially simple to import the manifest as a resource.
Is there a way to do this with Visual Studio 2003 and C#?
|
|
|
|
 |
|
 |
Thank's,good text.but i have probelm in contextmenu.When you click right in windows in "OpenWith" item you sea item both icon and this icon have XP Style !!!.when i add this icon in ListView whit your text of XP style i saw better icon whit best resulotion but in Contextmenu i could NOT !!!
if you want i could send my program.Please help me
thanks a lot.
|
|
|
|
 |
|
|
 |
|
 |
hi!
[design]
//
// button
//
this.button.ForeColor = System.Drawing.Color.Red;
[void Main()]
static void Main()
{
Application.EnableVisualStyles(); Application.Run(new Calculator());
}
[form load event]
private void Form_Load(object sender, System.EventArgs e)
{
WinXpStyle.FormLoad(sender, e, this);
}
but, when application run, button.ForeColor doesn't work.
It's black not red
|
|
|
|
 |
|
 |
i suppose, you cannot have flatStyle == "System" and then set the ForeColor or BackColor, because the painting of the button is done by the button's paint method.
if you want to color the button to your liking, then you must create a sub-class of Button and in the sub-class have a paint method in which you paint the button as you like, not very easy though. and ofcourse your button will not look a XP-Style button
|
|
|
|
 |
|
 |
So, how can I have the button look like a XP-Style & customize ForeColor?
Please look at Calculator application in XP OS, which have some ForeColor = RED & some ForeColor = BLUE
|
|
|
|
 |
|
 |
am facing problem when tried to change forecolor for a disabled button..have set flatstyle = Standard..
pls any one know the solution..
|
|
|
|
 |
|
 |
this style of buttons works in visual C++ 6.0?
|
|
|
|
 |
|
 |
In Visual Studio .Net this is by default in C++.
|
|
|
|
 |
|
 |
Hi
Following your instructions to the letter, I am still unable to get the datagrid to render in the preferred xp style. My grid's border is the old style 3d bevel, and grid columns have no orange underscoring. I am using Framework version 1.1. I am not using a strongly named assembly, i have simply copied and renamed the manifest file.
Regards
Nick
|
|
|
|
 |
|
 |
This style of Orange underscore i suppose is applicable to ListView i am not sure about DataGrid
|
|
|
|
 |
|
 |
Thank-you. I wonder if anyone has re-styled the datagrid, it looks pretty funny on my xp forms with the old 3d border and no gradient fill... Maybe microsoft will release another version...
|
|
|
|
 |
|
 |
When XP styles are enabled the property page tabs look correct but the pages themselves do not have the correct background. Does anybody know how to fix this?
Thanks - Joel
VssConnect - Remote SourceSafe(r) Access http://www.voxcode.com[^]
|
|
|
|
 |
|
 |
You'll have to P/Invoke various functions from the Theme API (see MSDN for docs on the Theme API) and call a couple functions (like OpenTheme, for one) to paint the background yourself.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
 |
|
 |
This method does work on Windows 2003 - if you have the themes service switched on...
|
|
|
|
 |
|
 |
In fact this method won't work at all if your users have the themes service switched off on Windows XP. If you are developing a UI that is dependent on having a 'nice' looking interface, then you'd be better off at looking at some of the XP style controls on CP. We use Vol 3 of the Infragistics NetAdvantage suite, which has a full set of XP themed controls for use on all platforms capable of running the .NET framework.
|
|
|
|
 |
|
 |
1 - run-> services.msc -> "theme" service ->enable it -> run it.
2 - control panel -> display ->appearance tab -> windows and buttons - > windows xp style - > ok
3 - Enjoe
4 - for questions contact houssam11350 at yahoo dot com
|
|
|
|
 |
|
 |
Next time you post, make sure to not post duplicate articles. I already did this a long time ago: http://www.codeproject.com/csharp/dotnetvisualstyles.asp[^]
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
 |
|
 |
Heath Stewart wrote:
Next time you post, make sure to not post duplicate articles. I already did this a long time ago...
Is it a must that i have to read each and every article on CP before posting one of my own , i don't do that, i have not even viewed 5% of the articles available in the C# programming section , leave alone the rest of them in other sections (remember i am a C++ Developer).
Other then the Manifest file there is nothing common between yor article and mine, your article talks of some Keyfile, Comctrl32.dll (with specific version no.) and it uses StrongName Utility about which i have casually mentioned at the end, who has the patience for details like ComCtrl32.dll Sn.exe, when all this can be achieved, as i have shown, by a simple copy and rename command, your article may be exhaustive but mine does it in a very simle manner without being too technical.
Using the Console based utilities takes a little bit of getting accustoimed, it is not as simple as you might have everyone believe, there is need to set up environment variables.
|
|
|
|
 |
|
 |
They are alike. I mention which controls support themes, setting the FlatStyle, and the .NET 1.1 change Application.EnableVisualStyles is mentioned in the article-based forum. I go even further to explain how to enable visual styles without using a separate manifest file even when you sign your code (and any good library or application should). That's what the command-line programs are for.
And, yes, you are supposed to check CP to see if an article already exists on the subject on which you want to post. You can add something to it in your own article or take a completely different angle.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
 |
|
 |
As a CP Editor you of all people should know that CodeProject is home to many articles that cover the same subject. This doesn't make any one of those articles less useful or less relevant.
Let's show a bit more tolerance and support around here.
Derek Lakin Providing instant integrated access to an online repository of .NET components from Visual Studio.NET and #Develop. Personal musings on life, the universe and everything as well as commentary on my software & digital graphics life.
|
|
|
|
 |
|
 |
As a CP editor, I can assure you were are discussing ways to avoid duplicate articles. Yes, some articles take different approaches or present new ideas and that's good. Some don't.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
 |
|
 |
When learning something new, there is certainly an advantage if there are duplicate articles on a subject. Especially when the approach is different, as the two article to date on this subject are. I commend you both on presenting interesting and beneficial articles.
|
|
|
|
 |
|
 |
I agree. Another advantage is that both Baretto VN and you learned a lot from writing the article.
And when you are going to reject his article only because you where first, then I'd say that you seriously revise your opinion about this article.
If he would be the first, you wouldn't like it either when you wrote a nice and good article, and he says that he doesn't like your article (or maybe not even want to edit it, if he'd be an editor), just because he was first! Tolerance.
Albert Einstein and Marilyn Monroe were seated together at a table. "Hey Albert," said Marilyn. "Imagine if we had a baby and it had my looks and your brains-it could do anything it wanted." "Yes, my dear," replied Einstein. "But what if it has my looks and your brains?"
|
|
|
|
 |
|
 |
[STAThread]
static void Main( )
{
Application.EnableVisualStyles( );
Application.DoEvents( );
Application.Run( new MyForm );
}
Juan Carlos Guzman
Venezuela
|
|
|
|
 |