473,950 Members | 36,083 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can anyone help me on this?

pnp
Hi all,

I'm developing an app in C# and i'm using the
Application.Ena bleVisualStyles function before I call the
Applicaton.Run( ...) function. The problem is that when I use a custom form
with ShowDialog to open in my app I get a
System.Runtime. InteropServices .SEHException.. . When I don't use
EnableVisualSty les in my app that exception doesn't occur.

Can anyone help me on this?

Thanks in advance,
Peter

Nov 16 '05 #1
4 1264
Peter,

Are you calling ShowDialog inside of a message loop, or outside of the
message loop?

Can you show the code where ShowDialog is being called?

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"pnp" <pnp.at.softlab .ece.ntua.gr> wrote in message
news:ud******** *****@TK2MSFTNG P12.phx.gbl...
Hi all,

I'm developing an app in C# and i'm using the
Application.Ena bleVisualStyles function before I call the
Applicaton.Run( ...) function. The problem is that when I use a custom form
with ShowDialog to open in my app I get a
System.Runtime. InteropServices .SEHException.. . When I don't use
EnableVisualSty les in my app that exception doesn't occur.

Can anyone help me on this?

Thanks in advance,
Peter

Nov 16 '05 #2
I too have experienced this error before. Since I couldn't resolve it, I
resorted to using the old manifest file.

Paul

"pnp" <pnp.at.softlab .ece.ntua.gr> wrote in message
news:ud******** *****@TK2MSFTNG P12.phx.gbl...
Hi all,

I'm developing an app in C# and i'm using the
Application.Ena bleVisualStyles function before I call the
Applicaton.Run( ...) function. The problem is that when I use a custom form
with ShowDialog to open in my app I get a
System.Runtime. InteropServices .SEHException.. . When I don't use
EnableVisualSty les in my app that exception doesn't occur.

Can anyone help me on this?

Thanks in advance,
Peter

Nov 16 '05 #3
Hi Peter,

Try setting

Application.DoE vents();

right after setting the visual style.

--
Happy coding!
Morten Wennevik [C# MVP]
Nov 16 '05 #4
This is beginning to become a well-known problem with EnableVisualSty les.
The only solution seems to be to remove the EnableVisualSty les call and do
XP styles the 'old-fashioned way' with a manifest.

EnableVisualSty les has other problems as well. I hope that MS does some work
on that feature in a service pack or in the next release of the framework.

Tom Dacon
Dacon Software Consulting

"pnp" <pnp.at.softlab .ece.ntua.gr> wrote in message
news:ud******** *****@TK2MSFTNG P12.phx.gbl...
Hi all,

I'm developing an app in C# and i'm using the
Application.Ena bleVisualStyles function before I call the
Applicaton.Run( ...) function. The problem is that when I use a custom form
with ShowDialog to open in my app I get a
System.Runtime. InteropServices .SEHException.. . When I don't use
EnableVisualSty les in my app that exception doesn't occur.

Can anyone help me on this?

Thanks in advance,
Peter

Nov 16 '05 #5

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

Similar topics

0
1348
by: asdf sdf | last post by:
i have an install issue with moinmoin on win2k. i've tried the mailing list, but it appears to be a very low traffic, low subscriber list. can i get a reality check? is anyone using moinmoin in win2k? any issues? anyone at all?
1
2112
by: Simon Harvey | last post by:
Hi chaps, Does anyone know if the beast is going to release Visual Tools for office to work with Visual Studio 2002 and not just 2003, or are they quite happy to shaft those that supported them when their product just cam out. I can't see why the tools shouldnt work with 2002 seeing as its almost identical to 2003. Has anyone heard anything
1
1497
by: Greg Steele | last post by:
Does anyone have a copy or know where I can get an installation executable for chiliReports 2.0 from chili! soft? The company I'm working for bought a copy several years ago, then moved their datacenter and lost the installation in the process. I have the registration e-mail that was sent to them with the unlocking code so we just need the trial installation executable.
2
3698
by: Ken Shaw | last post by:
G'day, I'm trying to tack down any delta compression library that I could licence for use in a project. Does anyone know of a decent binary delta compression library? cheers, Ken Shaw
0
2287
by: james | last post by:
Hi guys! I´ve got a centerd table on my site with a black 1 pixel border. What i would like to do is to add a drop shadow to the table. Anyone know if it's possible to create a drop shadow for a table? Does anyone has an example? Thanks, James
162
7399
by: Isaac Grover | last post by:
Hi everyone, Just out of curiosity I recently pointed one of my hand-typed pages at the W3 Validator, and my hand-typed code was just ripped to shreds. Then I pointed some major sites (microsoft.com, cnn.com, etc.) at the W3 Validator; to my surprise none of them passed. Doesn't anyone care anymore, or are the standards more-or-less looked at as guidlines for web design?
0
1083
by: Jay1969 | last post by:
Hey all, I heard there was a new service offered to Microsoft partners called ISV Advisory Services (see link) where MS is giving free dev consulting to their Partners. https://partner.microsoft.com/global/40016379 Has anyone in these groups had a chance to try them out? It sounds like it may be a good service but I'd like to hear from anyone who's
13
2248
by: penguin732901 | last post by:
Checking back for discussions, there was a lot of talk about 2000 being slower than 97, but not so much lately. What is the latest opinion? Anyone care to set up a poll for how many NG members are still using 97? 2000? I am slightly tempted to upgrade by a new client whose data is in 2000, but of course, I can just port it all back through Excel...right? and I guess I have seen a couple of nice features...
2
3917
by: Brent Taylor via AccessMonster.com | last post by:
HELP----DOES ANYONE HAVE A SIMPLE .mdb for MLM structure? Does anyone have an example database for multi-level marketing for a 3 Tier setup? Thank you, brenttaylor@actionimports.net
2
2333
by: Bruno Alexandre | last post by:
Hi guys, does anyone know where is the Website used in the MSDN "Lear ASP.NET 2.0 with Jeff Prosise" (http://msdn.microsoft.com/asp.net/beta2/multimedia/default.aspx) events? The website used is called "Contoso", but I can't find it in the MSDN site, so I can evaluate it with the webcasts. If anyone know here is it, or if anyone is using it, please post here a
0
10171
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9991
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11191
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11366
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10703
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9904
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8268
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4965
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3558
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.