Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with vb net and Windows XP 1

Status
Not open for further replies.

ecucurella

Programmer
Feb 17, 2003
34
ES
Hi,

I have made a program with VB NET over Windows 2000 and it works fine, but when I try to execute it over Windows XP many forms, textsboxs and other objects are shown disordered.

I don't know what can be the problem?

Some one can help me?

Thank you very much!!
 
I mean that all control don't appear where they have to be, for example I can't see one of them because it seems to be up o to be down or one label with its textbox are totally out of its place.

If I install de VB.NET to develope in a Windows XP machine I see it perfectly in the project development but when I build the solution then they are disordered.

I have installed the Framework .NET 1.1, the language pack in spanish and the Framework .NET 1.1 SP1. In Windows XP I have the SP2, but I have tried in one machine with SP1 and it has the same problem.

Any idea?

Thanks in advance,
 
No, I am not runnign the mcAfee antivirus.

I have tried to stop all the service like anti virus, firewalls, messenger, etc but it continue doing the same.

Any other idea?
 
Hi, there had language differences between two machines , one was in spanish and the other in catalan (we are from Barcelona - Catalonia (
We have changed the language to be the same and we have deleted all obj folder but the problem persist !!

Any other idea?

Thanks a lot,
 
Make a backup of your project, then you can try to either modifiy the forms.resx file, or just delete them. I'm not sure if they get auto created the next time you load your project though (thus the reason for backing up).

-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
Another thing you may want to check is if the DPI settings are different for the monitors.
 

Hi, we have tested this and don't solve the problem, we have deleted this files and then rebuild the project and the problem persists.

Also, we have windows 2000 with 1280x1024 and and big fonts, and windows XP with 1280x1024 with 120 PPP.

Any other idea?
 
I has to have something to do with the regional settings. I'm not sure where else they are stored besides those .resx files. There may be one that relates to the solution and/or projects.

-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
You sure ThatRickGuy?

I've had problems with sizing/location too when developing a control.

I was designing on 120 DPI, and ran on 96 DPI. Didn't look great at all, until I decided to use a DPI multiplier in my sizing code. This of course only occurred to items I was sizing/placing at runtime rather than design time.
 

Hi, I think you have reason !!

We have found that some forms appears ok, looking at the differences I see the properties Language and Localizable from the form object.

In the correct form Language=Default and Localizable=False and in the incorrect forms Language=Spanish and Localizable=True !!

To change without having problems fisrt you have to change Localizable=False and then the Language=Default.

Incredible.

Thanks a lot,

cucu

FreeCatalonia
 
I concede ThatRickGuy - it would appear you were right.
 
I've never run into an issue with DPI, except for with printing. The differences between region settings can completely change the appearance of an application though. Glad you tracked it down!

-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top