473,503 Members | 4,234 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to compile on wndow xp and run on windows 7 32 bit?

5 New Member
Hi

I have a tool created and compiled on wondows xp.
when running it on windows 7 , it's GUI looks bad, and tool get lost many times.
is there any compilation switch that can help with it ?

Thanks
Rinat
Dec 19 '10 #1
6 2068
wizardry
201 New Member
you can see if their is a sdk for win 7 and use that compiler.
Dec 20 '10 #2
Plater
7,872 Recognized Expert Expert
Do you have these lines before the application.run call?
Expand|Select|Wrap|Line Numbers
  1. Application.EnableVisualStyles();
  2. Application.SetCompatibleTextRenderingDefault(true);
  3.  
Dec 20 '10 #3
Rinat
5 New Member
I have just the
Application.EnableVisualStyles();
Dec 28 '10 #4
Plater
7,872 Recognized Expert Expert
I use
Application.SetCompatibleTextRenderingDefault(); call to control if i want my application to be "themed".
When I set the value to false, my application mostly stays the same between win2000/XP/vista/7 (there are some slight differences), as in it does not get "bubbly" in XP or newer versions, but maintains the windows 2k look.
Dec 28 '10 #5
Rinat
5 New Member
Hi

I try it but it does not help.
I was looking at the OnPaint and see there is usage of class Graphics. from this class there is usage of FillRectangle and SetClip.

Any other idea ?

Thanks
Rinat
Dec 30 '10 #6
Plater
7,872 Recognized Expert Expert
Do you have screenshots for what you are refering to?
Jan 7 '11 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

2
15206
by: Ken Lindner | last post by:
I have a need to become familiar with SQL Server 2000 for work. Needless to say I am new to SQL Server any version, but not IT in general. My employer has provided me with the SQL Server 2000...
1
3435
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. I'm having trouble getting the code that I've written to work, can anyone shed some light as to where I'm...
0
3905
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. The program I'm trying to develop needs to be able to do the following: - Select remote server -...
4
3130
by: Rod Gill | last post by:
Hi, I have a form that when opened in the designer appears of the screen. The form selector can't be dragged (or resized) and if I scroll right and down to centralise it the form simply jumps...
26
5062
by: mikharakiri_nospaum | last post by:
Is there a way to tell one window from another? A quick look into wndow object properties revealed nothing obvious. I want to keep track of window object identity in a hidden input widget, so that...
4
4158
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
2
11688
by: sambo251 | last post by:
After running a few updates I get this very annoying "Windows Installer" error #1706 that will ne go away! It keeps saying that it cannot find the file "instantsharedevices.msi", that it is on...
1
7821
by: mfunkmann | last post by:
Hi, I recently got an error and I don't know how to fix it: Error 1 'System.Data.DataColumn' does not contain a definition for 'Windows' C:\c#\CsharpPRO\Form1.Designer.cs 304 77 CsharpPRO I...
2
4169
by: =?Utf-8?B?SnJ4dHVzZXIx?= | last post by:
I just started using Windows Live OneCare, I had been using Norton, but was unable to fix the problems I was having. I have yet been unsuccessful with OneCare as well. I keep getting the same...
0
7067
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...
1
6975
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...
0
7449
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...
0
5562
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,...
1
4992
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...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1495
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 ...
1
728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
371
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...

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.