Very first line in static void Main...
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [
mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Philip Sayers
Sent: Saturday, 31 January 2004 09:52
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
It needs to be called from sub Main (before any Forms are loaded)
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [
mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Dean A. Cleaver
Sent: Friday, January 30, 2004 3:50 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
I just tried it, and it did a big Zero for me... Application came up
without visual styles.
Seems like a bug to me... ;-)
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [
mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Greg Robinson
Sent: Saturday, 31 January 2004 09:41
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
OK, not aware of the 'buggy' part.
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [
mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx]On Behalf Of
Dean A. Cleaver
Sent: Friday, January 30, 2004 3:34 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
If you look at his original post, that's what he was doing, and it was
crashing all the time...
Manifests still work in 1.1, but EnableVisualStyles is a bit buggy it
seems...
Dino
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [
mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Greg Robinson
Sent: Saturday, 31 January 2004 09:31
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
If I followed the post correctly, he wants themed controls. v1.0 you
need to use a manifest, v 1.1 you do not. Call
Application.EnableVisualStyles.
Perhaps I misunderstood the post.
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [
mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx]On Behalf Of
Dean A. Cleaver
Sent: Friday, January 30, 2004 3:25 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
Really?
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [
mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Greg Robinson
Sent: Saturday, 31 January 2004 09:24
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
You do not need to use a manifest with v 1.1
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [
mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx]On Behalf Of
Vince P
Sent: Friday, January 30, 2004 3:18 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
Thanks.. I wasted hours searching for it in MS KB. And of course it
seems none of MS KB's are even coming up (at least the one's I'm
trying.. At least I got MSDN Library here so I was able to get to the
ultimate solution as suggested in your link.
Thanks a lot!
==========================
Vince P
http://66.93.114.145/vince/
MSN Messenger: this address
AIM: pacelvi
"Nobody said it'd be easy. Nobody said that it would this hard." -
Coldplay
"Having looked at the Mideast," Major Bob said, "I realize how the Arabs
came up with the concept of zero."
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [
mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Price, Derek
Sent: Friday, 30 January, 2004 12:12
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
I just found this link [1] that recommends using a manifest instead...
[1]
http://weblogs.asp.net/adam_nathan/archive/2003/05/21/56690.aspx
-----Original Message-----
From: Vince P [
mailto:pacelvi@xxxxxxxxxxxxx]
Sent: Friday, January 30, 2004 12:49 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: [DOTNET-WINFORMS] Activating Visual Styles
Our work PCs have been upgraded from 2000 to XP, so on a solution which
has already been compiled many times, i added
Application.EnableVisualStyles in Main. I then REBUILDed the solution.
When my application loads now I get this error which crashes it, it
happens at variable points in the life of the application.
External Component has thrown an exception. at
System.Windows.Forms.unsafeNativeMethods.DispatchMessageW(MSG& msg)
blahblah... .FPushMessageLoop is at the end.
Any ideas?
==========================
Vince P
http://66.93.114.145/vince/
MSN Messenger: this address
AIM: pacelvi
"Nobody said it'd be easy. Nobody said that it would this hard." -
Coldplay
"Having looked at the Mideast," Major Bob said, "I realize how the Arabs
came up with the concept of zero."
Thread at a glance:
Previous Message by Date:
click to view message preview
Re: Activating Visual Styles
It needs to be called from sub Main (before any Forms are loaded)
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Dean A. Cleaver
Sent: Friday, January 30, 2004 3:50 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
I just tried it, and it did a big Zero for me... Application came up
without visual styles.
Seems like a bug to me... ;-)
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Greg Robinson
Sent: Saturday, 31 January 2004 09:41
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
OK, not aware of the 'buggy' part.
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx]On Behalf Of
Dean A. Cleaver
Sent: Friday, January 30, 2004 3:34 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
If you look at his original post, that's what he was doing, and it was
crashing all the time...
Manifests still work in 1.1, but EnableVisualStyles is a bit buggy it
seems...
Dino
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Greg Robinson
Sent: Saturday, 31 January 2004 09:31
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
If I followed the post correctly, he wants themed controls. v1.0 you
need to use a manifest, v 1.1 you do not. Call
Application.EnableVisualStyles.
Perhaps I misunderstood the post.
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx]On Behalf Of
Dean A. Cleaver
Sent: Friday, January 30, 2004 3:25 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
Really?
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Greg Robinson
Sent: Saturday, 31 January 2004 09:24
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
You do not need to use a manifest with v 1.1
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx]On Behalf Of
Vince P
Sent: Friday, January 30, 2004 3:18 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
Thanks.. I wasted hours searching for it in MS KB. And of course it
seems none of MS KB's are even coming up (at least the one's I'm
trying.. At least I got MSDN Library here so I was able to get to the
ultimate solution as suggested in your link.
Thanks a lot!
==========================
Vince P http://66.93.114.145/vince/
MSN Messenger: this address
AIM: pacelvi
"Nobody said it'd be easy. Nobody said that it would this hard." -
Coldplay
"Having looked at the Mideast," Major Bob said, "I realize how the Arabs
came up with the concept of zero."
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Price, Derek
Sent: Friday, 30 January, 2004 12:12
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
I just found this link [1] that recommends using a manifest instead...
[1] http://weblogs.asp.net/adam_nathan/archive/2003/05/21/56690.aspx
-----Original Message-----
From: Vince P [mailto:pacelvi@xxxxxxxxxxxxx]
Sent: Friday, January 30, 2004 12:49 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: [DOTNET-WINFORMS] Activating Visual Styles
Our work PCs have been upgraded from 2000 to XP, so on a solution which
has already been compiled many times, i added
Application.EnableVisualStyles in Main. I then REBUILDed the solution.
When my application loads now I get this error which crashes it, it
happens at variable points in the life of the application.
External Component has thrown an exception. at
System.Windows.Forms.unsafeNativeMethods.DispatchMessageW(MSG& msg)
blahblah... .FPushMessageLoop is at the end.
Any ideas?
==========================
Vince P http://66.93.114.145/vince/
MSN Messenger: this address
AIM: pacelvi
"Nobody said it'd be easy. Nobody said that it would this hard." -
Coldplay
"Having looked at the Mideast," Major Bob said, "I realize how the Arabs
came up with the concept of zero."
Next Message by Date:
click to view message preview
Re: Activating Visual Styles
Correct. I assumed the posted was doing that.
Also, you also need to set the FlatStyle on each control to the
FlatStyleSystem
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx]On Behalf Of
Philip Sayers
Sent: Friday, January 30, 2004 3:52 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
It needs to be called from sub Main (before any Forms are loaded)
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Dean A. Cleaver
Sent: Friday, January 30, 2004 3:50 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
I just tried it, and it did a big Zero for me... Application came up
without visual styles.
Seems like a bug to me... ;-)
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Greg Robinson
Sent: Saturday, 31 January 2004 09:41
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
OK, not aware of the 'buggy' part.
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx]On Behalf Of
Dean A. Cleaver
Sent: Friday, January 30, 2004 3:34 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
If you look at his original post, that's what he was doing, and it was
crashing all the time...
Manifests still work in 1.1, but EnableVisualStyles is a bit buggy it
seems...
Dino
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Greg Robinson
Sent: Saturday, 31 January 2004 09:31
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
If I followed the post correctly, he wants themed controls. v1.0 you
need to use a manifest, v 1.1 you do not. Call
Application.EnableVisualStyles.
Perhaps I misunderstood the post.
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx]On Behalf Of
Dean A. Cleaver
Sent: Friday, January 30, 2004 3:25 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
Really?
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Greg Robinson
Sent: Saturday, 31 January 2004 09:24
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
You do not need to use a manifest with v 1.1
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx]On Behalf Of
Vince P
Sent: Friday, January 30, 2004 3:18 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
Thanks.. I wasted hours searching for it in MS KB. And of course it
seems none of MS KB's are even coming up (at least the one's I'm
trying.. At least I got MSDN Library here so I was able to get to the
ultimate solution as suggested in your link.
Thanks a lot!
==========================
Vince P http://66.93.114.145/vince/
MSN Messenger: this address
AIM: pacelvi
"Nobody said it'd be easy. Nobody said that it would this hard." -
Coldplay
"Having looked at the Mideast," Major Bob said, "I realize how the Arabs
came up with the concept of zero."
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Price, Derek
Sent: Friday, 30 January, 2004 12:12
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
I just found this link [1] that recommends using a manifest instead...
[1] http://weblogs.asp.net/adam_nathan/archive/2003/05/21/56690.aspx
-----Original Message-----
From: Vince P [mailto:pacelvi@xxxxxxxxxxxxx]
Sent: Friday, January 30, 2004 12:49 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: [DOTNET-WINFORMS] Activating Visual Styles
Our work PCs have been upgraded from 2000 to XP, so on a solution which
has already been compiled many times, i added
Application.EnableVisualStyles in Main. I then REBUILDed the solution.
When my application loads now I get this error which crashes it, it
happens at variable points in the life of the application.
External Component has thrown an exception. at
System.Windows.Forms.unsafeNativeMethods.DispatchMessageW(MSG& msg)
blahblah... .FPushMessageLoop is at the end.
Any ideas?
==========================
Vince P http://66.93.114.145/vince/
MSN Messenger: this address
AIM: pacelvi
"Nobody said it'd be easy. Nobody said that it would this hard." -
Coldplay
"Having looked at the Mideast," Major Bob said, "I realize how the Arabs
came up with the concept of zero."
Previous Message by Thread:
click to view message preview
Re: Activating Visual Styles
Here is my current static void main: of course at the time of the error,
A.EVS was not commented out.
[STAThread]
static void Main()
{
try
{
// Application.EnableVisualStyles();
Application.Run(new MainForm());
}
catch (Exception ex)
{
MessageBox.Show(ex.Message + ex.StackTrace);
}
}
==========================
Vince P http://66.93.114.145/vince/
MSN Messenger: this address
AIM: pacelvi
"Nobody said it'd be easy. Nobody said that it would this hard." - Coldplay
"Having looked at the Mideast," Major Bob said, "I realize how the Arabs
came up with the concept of zero."
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps and
controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of Philip
Sayers
Sent: Friday, 30 January, 2004 14:52
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
It needs to be called from sub Main (before any Forms are loaded)
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Dean A. Cleaver
Sent: Friday, January 30, 2004 3:50 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
I just tried it, and it did a big Zero for me... Application came up
without visual styles.
Seems like a bug to me... ;-)
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Greg Robinson
Sent: Saturday, 31 January 2004 09:41
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
OK, not aware of the 'buggy' part.
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx]On Behalf Of
Dean A. Cleaver
Sent: Friday, January 30, 2004 3:34 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
If you look at his original post, that's what he was doing, and it was
crashing all the time...
Manifests still work in 1.1, but EnableVisualStyles is a bit buggy it
seems...
Dino
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Greg Robinson
Sent: Saturday, 31 January 2004 09:31
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
If I followed the post correctly, he wants themed controls. v1.0 you
need to use a manifest, v 1.1 you do not. Call
Application.EnableVisualStyles.
Perhaps I misunderstood the post.
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx]On Behalf Of
Dean A. Cleaver
Sent: Friday, January 30, 2004 3:25 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
Really?
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Greg Robinson
Sent: Saturday, 31 January 2004 09:24
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
You do not need to use a manifest with v 1.1
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx]On Behalf Of
Vince P
Sent: Friday, January 30, 2004 3:18 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
Thanks.. I wasted hours searching for it in MS KB. And of course it
seems none of MS KB's are even coming up (at least the one's I'm
trying.. At least I got MSDN Library here so I was able to get to the
ultimate solution as suggested in your link.
Thanks a lot!
==========================
Vince P http://66.93.114.145/vince/
MSN Messenger: this address
AIM: pacelvi
"Nobody said it'd be easy. Nobody said that it would this hard." -
Coldplay
"Having looked at the Mideast," Major Bob said, "I realize how the Arabs
came up with the concept of zero."
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Price, Derek
Sent: Friday, 30 January, 2004 12:12
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
I just found this link [1] that recommends using a manifest instead...
[1] http://weblogs.asp.net/adam_nathan/archive/2003/05/21/56690.aspx
-----Original Message-----
From: Vince P [mailto:pacelvi@xxxxxxxxxxxxx]
Sent: Friday, January 30, 2004 12:49 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: [DOTNET-WINFORMS] Activating Visual Styles
Our work PCs have been upgraded from 2000 to XP, so on a solution which
has already been compiled many times, i added
Application.EnableVisualStyles in Main. I then REBUILDed the solution.
When my application loads now I get this error which crashes it, it
happens at variable points in the life of the application.
External Component has thrown an exception. at
System.Windows.Forms.unsafeNativeMethods.DispatchMessageW(MSG& msg)
blahblah... .FPushMessageLoop is at the end.
Any ideas?
==========================
Vince P http://66.93.114.145/vince/
MSN Messenger: this address
AIM: pacelvi
"Nobody said it'd be easy. Nobody said that it would this hard." -
Coldplay
"Having looked at the Mideast," Major Bob said, "I realize how the Arabs
came up with the concept of zero."
Next Message by Thread:
click to view message preview
Re: Activating Visual Styles
Well, I'm assuming the FlatStyle is set correctly, because the manifest
works perfectly...
But I still get crashes in the program if I call EnableVisualStyles...
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Greg Robinson
Sent: Saturday, 31 January 2004 10:00
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
Correct. I assumed the posted was doing that.
Also, you also need to set the FlatStyle on each control to the
FlatStyleSystem
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx]On Behalf Of
Philip Sayers
Sent: Friday, January 30, 2004 3:52 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
It needs to be called from sub Main (before any Forms are loaded)
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Dean A. Cleaver
Sent: Friday, January 30, 2004 3:50 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
I just tried it, and it did a big Zero for me... Application came up
without visual styles.
Seems like a bug to me... ;-)
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Greg Robinson
Sent: Saturday, 31 January 2004 09:41
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
OK, not aware of the 'buggy' part.
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx]On Behalf Of
Dean A. Cleaver
Sent: Friday, January 30, 2004 3:34 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
If you look at his original post, that's what he was doing, and it was
crashing all the time...
Manifests still work in 1.1, but EnableVisualStyles is a bit buggy it
seems...
Dino
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Greg Robinson
Sent: Saturday, 31 January 2004 09:31
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
If I followed the post correctly, he wants themed controls. v1.0 you
need to use a manifest, v 1.1 you do not. Call
Application.EnableVisualStyles.
Perhaps I misunderstood the post.
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx]On Behalf Of
Dean A. Cleaver
Sent: Friday, January 30, 2004 3:25 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
Really?
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Greg Robinson
Sent: Saturday, 31 January 2004 09:24
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
You do not need to use a manifest with v 1.1
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx]On Behalf Of
Vince P
Sent: Friday, January 30, 2004 3:18 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
Thanks.. I wasted hours searching for it in MS KB. And of course it
seems none of MS KB's are even coming up (at least the one's I'm
trying.. At least I got MSDN Library here so I was able to get to the
ultimate solution as suggested in your link.
Thanks a lot!
==========================
Vince P http://66.93.114.145/vince/
MSN Messenger: this address
AIM: pacelvi
"Nobody said it'd be easy. Nobody said that it would this hard." -
Coldplay
"Having looked at the Mideast," Major Bob said, "I realize how the Arabs
came up with the concept of zero."
-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx] On Behalf Of
Price, Derek
Sent: Friday, 30 January, 2004 12:12
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: Re: [DOTNET-WINFORMS] Activating Visual Styles
I just found this link [1] that recommends using a manifest instead...
[1] http://weblogs.asp.net/adam_nathan/archive/2003/05/21/56690.aspx
-----Original Message-----
From: Vince P [mailto:pacelvi@xxxxxxxxxxxxx]
Sent: Friday, January 30, 2004 12:49 PM
To: DOTNET-WINFORMS@xxxxxxxxxxxxxxxxxxx
Subject: [DOTNET-WINFORMS] Activating Visual Styles
Our work PCs have been upgraded from 2000 to XP, so on a solution which
has already been compiled many times, i added
Application.EnableVisualStyles in Main. I then REBUILDed the solution.
When my application loads now I get this error which crashes it, it
happens at variable points in the life of the application.
External Component has thrown an exception. at
System.Windows.Forms.unsafeNativeMethods.DispatchMessageW(MSG& msg)
blahblah... .FPushMessageLoop is at the end.
Any ideas?
==========================
Vince P http://66.93.114.145/vince/
MSN Messenger: this address
AIM: pacelvi
"Nobody said it'd be easy. Nobody said that it would this hard." -
Coldplay
"Having looked at the Mideast," Major Bob said, "I realize how the Arabs
came up with the concept of zero."