Is there a way to turn on XP Styles in 2003? Or is the manifest file still
the way to go? 9 2043
Hi,
Appliction.EnableVisualStyles. http://msdn.microsoft.com/library/de...tylestopic.asp
Ken
--------------------------------
"Terry Olsen" <to******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Is there a way to turn on XP Styles in 2003? Or is the manifest file still
the way to go?
Hi Terry,
It's pretty simple. Place this in the sub new of the start class of the
app:
MyBase.New()
Application.EnableVisualStyles()
Application.DoEvents()
Then designate all checkboxes, command buttons, radio buttons flatstyle
property to 'system'.
This will allow all pc's running xp to see all of your controls with xp
styles.
HTH,
Bernie Yaeger
"Terry Olsen" <to******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl... Is there a way to turn on XP Styles in 2003? Or is the manifest file
still the way to go?
This works also...but why does the MSDN tell you to put it in Sub Main and
then run Form1 from there?
"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:uf**************@TK2MSFTNGP09.phx.gbl... Hi Terry,
It's pretty simple. Place this in the sub new of the start class of the app: MyBase.New()
Application.EnableVisualStyles()
Application.DoEvents()
Then designate all checkboxes, command buttons, radio buttons flatstyle property to 'system'.
This will allow all pc's running xp to see all of your controls with xp styles.
HTH,
Bernie Yaeger
"Terry Olsen" <to******@hotmail.com> wrote in message news:%2****************@TK2MSFTNGP10.phx.gbl... Is there a way to turn on XP Styles in 2003? Or is the manifest file still the way to go?
Hi Terry,
I guess they are making an assumption about your start class.
Bernie
"Terry Olsen" <to******@hotmail.com> wrote in message
news:uR**************@TK2MSFTNGP12.phx.gbl... This works also...but why does the MSDN tell you to put it in Sub Main and then run Form1 from there?
"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message news:uf**************@TK2MSFTNGP09.phx.gbl... Hi Terry,
It's pretty simple. Place this in the sub new of the start class of the app: MyBase.New()
Application.EnableVisualStyles()
Application.DoEvents()
Then designate all checkboxes, command buttons, radio buttons flatstyle property to 'system'.
This will allow all pc's running xp to see all of your controls with xp styles.
HTH,
Bernie Yaeger
"Terry Olsen" <to******@hotmail.com> wrote in message news:%2****************@TK2MSFTNGP10.phx.gbl... Is there a way to turn on XP Styles in 2003? Or is the manifest file still the way to go?
* "Terry Olsen" <to******@hotmail.com> scripsit: Is there a way to turn on XP Styles in 2003? Or is the manifest file still the way to go?
<URL:http://www.google.de/groups?selm=OqpZkGGgEHA.3536%40TK2MSFTNGP12.phx.gb l>
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
It needs to be in Sub Main() so that images show in toolbars and
tabcontrols.
--
Mick Doherty http://dotnetrix.co.uk/nothing.html
"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:uq**************@tk2msftngp13.phx.gbl... Hi Terry,
I guess they are making an assumption about your start class.
Bernie
"Terry Olsen" <to******@hotmail.com> wrote in message news:uR**************@TK2MSFTNGP12.phx.gbl... This works also...but why does the MSDN tell you to put it in Sub Main and then run Form1 from there?
"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message news:uf**************@TK2MSFTNGP09.phx.gbl... > Hi Terry, > > It's pretty simple. Place this in the sub new of the start class of > the > app: > MyBase.New() > > Application.EnableVisualStyles() > > Application.DoEvents() > > Then designate all checkboxes, command buttons, radio buttons flatstyle > property to 'system'. > > This will allow all pc's running xp to see all of your controls with xp > styles. > > HTH, > > Bernie Yaeger > > "Terry Olsen" <to******@hotmail.com> wrote in message > news:%2****************@TK2MSFTNGP10.phx.gbl... > > Is there a way to turn on XP Styles in 2003? Or is the manifest file > still > > the way to go? > > > > > >
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ( http://www.grisoft.com).
Version: 6.0.737 / Virus Database: 491 - Release Date: 11/08/2004
Bernie,
Rather then inside the sub new, I would strongly recommend putting this in
the Sub Main of your start class as the other suggest.
Public Class MainForm
...
Public Shared Sub Main()
Application.EnableVisualStyles()
Application.DoEvents()
Application.Run(New MainForm)
End Sub
End Class
For four major reasons:
1. Its not hidden in the construtor, which may be modified by the forms
designer.
2. It allows you to easily add any Global Exception Handlers at the same
time.
3. It allows you to customize the Application.Run itself (splash screens,
login dialog & such)
4. Its how most samples show it (consistency).
It has nothing really to do with "they are making an assumption about your
start class" per se. (as MainForm is going to be the start object in both
cases).
Hope this helps
Jay
"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:uf**************@TK2MSFTNGP09.phx.gbl... Hi Terry,
It's pretty simple. Place this in the sub new of the start class of the app: MyBase.New()
Application.EnableVisualStyles()
Application.DoEvents()
Then designate all checkboxes, command buttons, radio buttons flatstyle property to 'system'.
This will allow all pc's running xp to see all of your controls with xp styles.
HTH,
Bernie Yaeger
"Terry Olsen" <to******@hotmail.com> wrote in message news:%2****************@TK2MSFTNGP10.phx.gbl... Is there a way to turn on XP Styles in 2003? Or is the manifest file still the way to go?
Why is the "DoEvents" needed? It seems to work okay without it...or am I
missing something?
"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:OI**************@tk2msftngp13.phx.gbl... Bernie, Rather then inside the sub new, I would strongly recommend putting this in the Sub Main of your start class as the other suggest.
Public Class MainForm ...
Public Shared Sub Main() Application.EnableVisualStyles() Application.DoEvents() Application.Run(New MainForm) End Sub
End Class
For four major reasons: 1. Its not hidden in the construtor, which may be modified by the forms designer. 2. It allows you to easily add any Global Exception Handlers at the same time. 3. It allows you to customize the Application.Run itself (splash screens, login dialog & such) 4. Its how most samples show it (consistency).
It has nothing really to do with "they are making an assumption about your start class" per se. (as MainForm is going to be the start object in both cases).
Hope this helps Jay
"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message news:uf**************@TK2MSFTNGP09.phx.gbl... Hi Terry,
It's pretty simple. Place this in the sub new of the start class of the app: MyBase.New()
Application.EnableVisualStyles()
Application.DoEvents()
Then designate all checkboxes, command buttons, radio buttons flatstyle property to 'system'.
This will allow all pc's running xp to see all of your controls with xp styles.
HTH,
Bernie Yaeger
"Terry Olsen" <to******@hotmail.com> wrote in message news:%2****************@TK2MSFTNGP10.phx.gbl... Is there a way to turn on XP Styles in 2003? Or is the manifest file still the way to go?
Terry,
Selected controls (toolbars for example) do not always display correctly if
you call EnableVisualStyles without the DoEvents (yes a bug).
Hope this helps
Jay
"Terry Olsen" <to******@hotmail.com> wrote in message
news:uN*************@TK2MSFTNGP12.phx.gbl... Why is the "DoEvents" needed? It seems to work okay without it...or am I missing something?
"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message news:OI**************@tk2msftngp13.phx.gbl... Bernie, Rather then inside the sub new, I would strongly recommend putting this
in the Sub Main of your start class as the other suggest.
Public Class MainForm ...
Public Shared Sub Main() Application.EnableVisualStyles() Application.DoEvents() Application.Run(New MainForm) End Sub
End Class
For four major reasons: 1. Its not hidden in the construtor, which may be modified by the forms designer. 2. It allows you to easily add any Global Exception Handlers at the same time. 3. It allows you to customize the Application.Run itself (splash
screens, login dialog & such) 4. Its how most samples show it (consistency).
It has nothing really to do with "they are making an assumption about
your start class" per se. (as MainForm is going to be the start object in
both cases).
Hope this helps Jay
"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message news:uf**************@TK2MSFTNGP09.phx.gbl... Hi Terry,
It's pretty simple. Place this in the sub new of the start class of
the app: MyBase.New()
Application.EnableVisualStyles()
Application.DoEvents()
Then designate all checkboxes, command buttons, radio buttons
flatstyle property to 'system'.
This will allow all pc's running xp to see all of your controls with
xp styles.
HTH,
Bernie Yaeger
"Terry Olsen" <to******@hotmail.com> wrote in message news:%2****************@TK2MSFTNGP10.phx.gbl... > Is there a way to turn on XP Styles in 2003? Or is the manifest
file still > the way to go? > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Quinton |
last post by:
I'm running a website that uses CSS to format the text and a CGI
program Coranto that icludes news updates via SSI. My problem is that
some parts of the CSS don't seem to take effect on the...
|
by: Harag |
last post by:
Hi All
If I had the following 3 style in a CSS file
<style>
.bordered {border: red thin soldid;}
.warning {background-color: #900;}
.box {padding: 5%; text-align:justify;}
</style>
|
by: Chris Mantoulidis |
last post by:
There is a LARGE number of syntax styles in most (if not all)
programming languages.
For example, one syntax style (my current one):
....
int main()
{
for (int i = 0; i < 50; i++)
{
|
by: dan.vendel |
last post by:
Hi,
I know nothing about javascript, but quite a lot about regulat html and
CSS.
Have bumped into a problem that people in this fine congregation
perhaps can help me with.
I'm making a...
|
by: ht990332 |
last post by:
I'm writing applications in vc++ .net 2003. How do I give
the applications visual styles on winxp without adding a
..manifest file?
|
by: Guenther Schabus |
last post by:
e.Item.CssClass = "SelectedTab";Hello all,
I am using .NET 1.1, VS 2003 - Syntax is C#
I am trying to change ('enhanced') attributes set by an css-file dynamically.
Content of an CSS-File:...
|
by: Mika M |
last post by:
Hello!
I'm using VB.NET 2003 and Windows Forms application type.
Question: Why ComboBoxes are not changing their arrearance to XP-Styles look
althought other UI Components does when I use the...
|
by: Bill English |
last post by:
Does anyone know how to do Office 2003 UI Styles, such as
toolbar, status bar, etc...
|
by: SiJP |
last post by:
There is a lot of information out there that shows you how to use a
manifest file with your .net application (exe) to enable windows xp
styles.
I am building a dll for COM interop, which...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
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...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
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...
| |