Hi
I am new to vb.net and trying to build a VB.net winform application. I
really like the new look of buttons, readio buttons etc. on my WinXP box.
But only thing is I cannot make it consistent with my form background color
(greyish by default?). My question is, how can I can change my form
background color using something like XP theme? so they will be consistent
automatically?
BTW, I tried to use background colors provided in the property window (in
VS.Net), but I dont think any of them is consistent with color of controls.
Thanks. 5 3194
Control over look and feel ( meaning blending your app to look like XP)
isn't available in VS 2003. Get the Whidbey beta and you're in like sin.
"Brian Hu" <_bhu_@_dconx_.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... Hi
I am new to vb.net and trying to build a VB.net winform application. I really like the new look of buttons, readio buttons etc. on my WinXP box. But only thing is I cannot make it consistent with my form background
color (greyish by default?). My question is, how can I can change my form background color using something like XP theme? so they will be consistent automatically?
BTW, I tried to use background colors provided in the property window (in VS.Net), but I dont think any of them is consistent with color of
controls. Thanks. "Brian Hu" <_bhu_@_dconx_.com> wrote in message I am new to vb.net and trying to build a VB.net winform application. I really like the new look of buttons, readio buttons etc. on my WinXP box. But only thing is I cannot make it consistent with my form background color (greyish by default?). My question is, how can I can change my form background color using something like XP theme? so they will be consistent automatically?
"James" <j_*******@insurance.state.al.us> wrote Control over look and feel ( meaning blending your app to look like XP) isn't available in VS 2003. Get the Whidbey beta and you're in like sin.
I don't use XP so I can't test it but I had heard that all that is needed is to
be sure a call is made to Application.EnableVisualStyles() BEFORE any
form is loaded in the application. Also, to set the Flatstyle property of
Checkboxes, CommandButtons, RadioButtons, and GroupBoxes to
System (They are set to standard by default).
So the OP would need to add a Sub Main and mark it as the startup
object, and in that routine, make the call to EnableVisualStyles, and
THEN call his main form.
Try and let us know if it works for you....
LFS
Application.enablevisualstyles()?
I not getting anything like it from intellisense or in application class
definition...
Point me in a direction...
"Larry Serflaten" <se*******@usinternet.com> wrote in message
news:OW**************@TK2MSFTNGP12.phx.gbl... "Brian Hu" <_bhu_@_dconx_.com> wrote in message I am new to vb.net and trying to build a VB.net winform application. I really like the new look of buttons, readio buttons etc. on my WinXP
box. But only thing is I cannot make it consistent with my form background color (greyish by default?). My question is, how can I can change my form background color using something like XP theme? so they will be
consistent automatically?
"James" <j_*******@insurance.state.al.us> wrote Control over look and feel ( meaning blending your app to look like XP) isn't available in VS 2003. Get the Whidbey beta and you're in like sin.
I don't use XP so I can't test it but I had heard that all that is needed
is to be sure a call is made to Application.EnableVisualStyles() BEFORE any form is loaded in the application. Also, to set the Flatstyle property of Checkboxes, CommandButtons, RadioButtons, and GroupBoxes to System (They are set to standard by default).
So the OP would need to add a Sub Main and mark it as the startup object, and in that routine, make the call to EnableVisualStyles, and THEN call his main form.
Try and let us know if it works for you....
LFS
It's only available in Framework v1.1 - wasn't there in v1.0. In 1.0, you
would have to use the manifest file to get the same effect.
Imran.
"James" <j_*******@insurance.state.al.us> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... Application.enablevisualstyles()? I not getting anything like it from intellisense or in application class definition...
Point me in a direction...
"Larry Serflaten" <se*******@usinternet.com> wrote in message news:OW**************@TK2MSFTNGP12.phx.gbl... "Brian Hu" <_bhu_@_dconx_.com> wrote in message > I am new to vb.net and trying to build a VB.net winform application.
I > really like the new look of buttons, readio buttons etc. on my WinXP box. > But only thing is I cannot make it consistent with my form
background color > (greyish by default?). My question is, how can I can change my form > background color using something like XP theme? so they will be consistent > automatically? "James" <j_*******@insurance.state.al.us> wrote Control over look and feel ( meaning blending your app to look like
XP) isn't available in VS 2003. Get the Whidbey beta and you're in like
sin. I don't use XP so I can't test it but I had heard that all that is
needed is to be sure a call is made to Application.EnableVisualStyles() BEFORE any form is loaded in the application. Also, to set the Flatstyle property
of Checkboxes, CommandButtons, RadioButtons, and GroupBoxes to System (They are set to standard by default).
So the OP would need to add a Sub Main and mark it as the startup object, and in that routine, make the call to EnableVisualStyles, and THEN call his main form.
Try and let us know if it works for you....
LFS
Right on.
"Imran Koradia" <no****@microsoft.com> wrote in message
news:eG**************@TK2MSFTNGP11.phx.gbl... It's only available in Framework v1.1 - wasn't there in v1.0. In 1.0, you would have to use the manifest file to get the same effect.
Imran.
"James" <j_*******@insurance.state.al.us> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl... Application.enablevisualstyles()? I not getting anything like it from intellisense or in application class definition...
Point me in a direction...
"Larry Serflaten" <se*******@usinternet.com> wrote in message news:OW**************@TK2MSFTNGP12.phx.gbl... > "Brian Hu" <_bhu_@_dconx_.com> wrote in message > > I am new to vb.net and trying to build a VB.net winform
application. I > > really like the new look of buttons, readio buttons etc. on my
WinXP box. > > But only thing is I cannot make it consistent with my form background > color > > (greyish by default?). My question is, how can I can change my
form > > background color using something like XP theme? so they will be
consistent > > automatically?
"James" <j_*******@insurance.state.al.us> wrote > Control over look and feel ( meaning blending your app to look like
XP) > isn't available in VS 2003. Get the Whidbey beta and you're in like sin. I don't use XP so I can't test it but I had heard that all that is needed is to be sure a call is made to Application.EnableVisualStyles() BEFORE
any form is loaded in the application. Also, to set the Flatstyle
property of Checkboxes, CommandButtons, RadioButtons, and GroupBoxes to System (They are set to standard by default).
So the OP would need to add a Sub Main and mark it as the startup object, and in that routine, make the call to EnableVisualStyles, and THEN call his main form.
Try and let us know if it works for you....
LFS
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Brian Hu |
last post by:
Hi
I am new to vb.net and trying to build a VB.net winform application. I
really like the new look of buttons, readio buttons etc. on my WinXP box.
But only thing is I cannot make it consistent...
|
by: Peter Wone |
last post by:
The short version is that when the theme is changed my application barfs.
The problem is a control I've created to host the WebBrowser control and
implement all the com callbacks for browser...
|
by: Ben |
last post by:
Hi, I'm using images in my menu control. I have my menu setup based on this
example:
http://msdn2.microsoft.com/en-US/library/system.web.ui.webcontrols.menuitembinding.imageurlfield(VS.80).aspx
...
|
by: kiran |
last post by:
Can anybody tell me how to apply a custom Theme or new theme ( not XP style Theme ) to WinForms application developed in C#.
|
by: Joey |
last post by:
Hello,
I have tried to programmatically set the theme for my master page by
putting code in a "Page_PreInit" fuction in the master page's code
behind. However, when I set a breakpoint there and...
|
by: Ron |
last post by:
I have an application that requires a login at each visit to the site and can
only be accessed by a login.
A user can have different themes depending if it was assigned in there
profile.
Theme...
|
by: greg |
last post by:
Hi all,
Is there a way to get the current theme name at design time?
I'm trying to write a custom control for which I need to use images from the
current theme. I have asigned a theme to the...
|
by: Neil Jones |
last post by:
Hello,
I would like to create my own theme(s) for a couple of my own blog
sites. I am hoping a few better themes could bring lot more readers.
So far, I have stayed with the default wordpress...
|
by: Henry Stock |
last post by:
I am having trouble referencing a theme in my ASP.NET project.
I was following a model that allowed for multiple themes. So The theme that
I have is stored in named "Base" under the App_Theme...
|
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,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |