473,695 Members | 2,820 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

forms looks different on different platform; limited things can change in OS theme

Hi,

I have a big urgent problem to solve.

I used to use Windows 2000 Chinese version, now I installed Windows XP
(English) system.

The problem is not about 2000 or XP, it is about English and Chinese.

All forms of my compiled C# desktop application, as well as in Visual Studio
2003(English) design view are looks different under two system.

e.g. The text on a button are wrapped; the toolbar are wrapped so half
buttons are unseen!

The location, size, font values are even different in property sheet in VS
2003. Those values actually are unspecified, they are using default values.

I think I need modify OS theme(Control Panel - Display - Appearance), but
what I can modify is so limited there, it is right place to go, but it can
not solve my problem.

Using no default values, explicitly specify the font family, font size,
button size, location might help this un-consistent problem, but I have 200K
lines code already written.

Or I can just make button longer, it can solve the wrap problem, but as
said, I have 200K lines code, AND, after I make it longer, it will be too
long in Chinese OS. Besides, there is no enough room for all buttons to be
larger.

Can someone give me the solutoin?

Thanks a lot in advance!
May 10 '07 #1
3 2493
Ryan,

It's not so much that it is a difference between the OS's, but rather,
the culture and locale that it is set up for. Different cultures/locales
are going to use different fonts for the rendering of languages. On top of
that, the text that you use for one language is not going to be the same as
the text you use for another language.

Because of this, you have to go through all the visual elements in your
project and make sure that for any language, they can handle the largest
text and font combinations for all the languages you support.

For example, say you have languages A and B, where you have the
following words:

A: asdfasdr
B: loiuluoiuljioyu oi

These are not real words, obviously, but it shows that some
words/phrases translate into longer strings than you might expect. Also,
you have to accomidate for what the system font is going to be (or set to
one set of fonts that you can render things consistently with for any
language).

Given that, you have to go through and look at the layout to see that
for any language the layout isn't compromised by the way elements specific
to a culture/locale (i.e. translations of text) are represented.

Hope this helps.

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

"Ryan Liu" <Ry*******@gmai l.comwrote in message
news:uC******** *****@TK2MSFTNG P05.phx.gbl...
Hi,

I have a big urgent problem to solve.

I used to use Windows 2000 Chinese version, now I installed Windows XP
(English) system.

The problem is not about 2000 or XP, it is about English and Chinese.

All forms of my compiled C# desktop application, as well as in Visual
Studio 2003(English) design view are looks different under two system.

e.g. The text on a button are wrapped; the toolbar are wrapped so half
buttons are unseen!

The location, size, font values are even different in property sheet in VS
2003. Those values actually are unspecified, they are using default
values.

I think I need modify OS theme(Control Panel - Display - Appearance), but
what I can modify is so limited there, it is right place to go, but it can
not solve my problem.

Using no default values, explicitly specify the font family, font size,
button size, location might help this un-consistent problem, but I have
200K lines code already written.

Or I can just make button longer, it can solve the wrap problem, but as
said, I have 200K lines code, AND, after I make it longer, it will be too
long in Chinese OS. Besides, there is no enough room for all buttons to
be larger.

Can someone give me the solutoin?

Thanks a lot in advance!


May 10 '07 #2
Nicholas,

Thanks a lot!

On both Chinese and English version Windows OS, I set same local to
China(Control Panel - Regional and language Options).

And my applicatoin does not translate from one languare to another. On both
OS, it always displays Chinese fonts(On English versioin Windows XP, I set
languare to Chinese-PRC for non-Unicode programs).

Even I ignore the font family and size, how come the size, location of all
buttons will be set to different values when I add a lable in Visual Studio
2003 on a different OS?

Thanks a lot!

Ryan

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c omwrote in
message news:eh******** ******@TK2MSFTN GP03.phx.gbl...
Ryan,

It's not so much that it is a difference between the OS's, but rather,
the culture and locale that it is set up for. Different cultures/locales
are going to use different fonts for the rendering of languages. On top
of that, the text that you use for one language is not going to be the
same as the text you use for another language.

Because of this, you have to go through all the visual elements in your
project and make sure that for any language, they can handle the largest
text and font combinations for all the languages you support.

For example, say you have languages A and B, where you have the
following words:

A: asdfasdr
B: loiuluoiuljioyu oi

These are not real words, obviously, but it shows that some
words/phrases translate into longer strings than you might expect. Also,
you have to accomidate for what the system font is going to be (or set to
one set of fonts that you can render things consistently with for any
language).

Given that, you have to go through and look at the layout to see that
for any language the layout isn't compromised by the way elements specific
to a culture/locale (i.e. translations of text) are represented.

Hope this helps.

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

"Ryan Liu" <Ry*******@gmai l.comwrote in message
news:uC******** *****@TK2MSFTNG P05.phx.gbl...
>Hi,

I have a big urgent problem to solve.

I used to use Windows 2000 Chinese version, now I installed Windows XP
(English) system.

The problem is not about 2000 or XP, it is about English and Chinese.

All forms of my compiled C# desktop application, as well as in Visual
Studio 2003(English) design view are looks different under two system.

e.g. The text on a button are wrapped; the toolbar are wrapped so half
buttons are unseen!

The location, size, font values are even different in property sheet in
VS 2003. Those values actually are unspecified, they are using default
values.

I think I need modify OS theme(Control Panel - Display - Appearance), but
what I can modify is so limited there, it is right place to go, but it
can not solve my problem.

Using no default values, explicitly specify the font family, font size,
button size, location might help this un-consistent problem, but I have
200K lines code already written.

Or I can just make button longer, it can solve the wrap problem, but as
said, I have 200K lines code, AND, after I make it longer, it will be too
long in Chinese OS. Besides, there is no enough room for all buttons to
be larger.

Can someone give me the solutoin?

Thanks a lot in advance!



May 12 '07 #3


"Ryan Liu" <Ry*******@gmai l.comwrote in message
news:OH******** ******@TK2MSFTN GP06.phx.gbl...
Nicholas,

Thanks a lot!

On both Chinese and English version Windows OS, I set same local to
China(Control Panel - Regional and language Options).

And my applicatoin does not translate from one languare to another. On
both OS, it always displays Chinese fonts(On English versioin Windows XP,
I set languare to Chinese-PRC for non-Unicode programs).

Even I ignore the font family and size, how come the size, location of all
buttons will be set to different values when I add a lable in Visual
Studio 2003 on a different OS?

Thanks a lot!

Ryan

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c omwrote
in message news:eh******** ******@TK2MSFTN GP03.phx.gbl...
>Ryan,

It's not so much that it is a difference between the OS's, but rather,
the culture and locale that it is set up for. Different cultures/locales
are going to use different fonts for the rendering of languages. On top
of that, the text that you use for one language is not going to be the
same as the text you use for another language.

Because of this, you have to go through all the visual elements in
your project and make sure that for any language, they can handle the
largest text and font combinations for all the languages you support.

For example, say you have languages A and B, where you have the
following words:

A: asdfasdr
B: loiuluoiuljioyu oi

These are not real words, obviously, but it shows that some
words/phrases translate into longer strings than you might expect. Also,
you have to accomidate for what the system font is going to be (or set to
one set of fonts that you can render things consistently with for any
language).

Given that, you have to go through and look at the layout to see that
for any language the layout isn't compromised by the way elements
specific to a culture/locale (i.e. translations of text) are represented.

Hope this helps.

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

"Ryan Liu" <Ry*******@gmai l.comwrote in message
news:uC******* ******@TK2MSFTN GP05.phx.gbl...
>>Hi,

I have a big urgent problem to solve.

I used to use Windows 2000 Chinese version, now I installed Windows XP
(English) system.

The problem is not about 2000 or XP, it is about English and Chinese.

All forms of my compiled C# desktop application, as well as in Visual
Studio 2003(English) design view are looks different under two system.

e.g. The text on a button are wrapped; the toolbar are wrapped so half
buttons are unseen!

The location, size, font values are even different in property sheet in
VS 2003. Those values actually are unspecified, they are using default
values.

I think I need modify OS theme(Control Panel - Display - Appearance),
but what I can modify is so limited there, it is right place to go, but
it can not solve my problem.

Using no default values, explicitly specify the font family, font size,
button size, location might help this un-consistent problem, but I have
200K lines code already written.

Or I can just make button longer, it can solve the wrap problem, but as
said, I have 200K lines code, AND, after I make it longer, it will be
too long in Chinese OS. Besides, there is no enough room for all
buttons to be larger.

Can someone give me the solutoin?

Thanks a lot in advance!





BTW, even the size of form, the size of pixbox will be changed and only part
of the picture is shown on English Version XP Home edition.

This has nothing to do with font family or font size.

Any help is appreciated!
May 12 '07 #4

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

Similar topics

137
7092
by: Philippe C. Martin | last post by:
I apologize in advance for launching this post but I might get enlightment somehow (PS: I am _very_ agnostic ;-). - 1) I do not consider my intelligence/education above average - 2) I am very pragmatic - 3) I usually move forward when I get the gut feeling I am correct - 4) Most likely because of 1), I usually do not manage to fully explain 3) when it comes true. - 5) I have developed for many years (>18) in many different environments,...
25
6199
by: Steve Jorgensen | last post by:
Yup, Steve's full of tips, but hey, it makes him feel important, right? Ok, here goes. I've been trying to improve encapsulation by putting code in the same object as the stuff it affects, so I rarely refer to a subform ir parent form's controls or records from the other form. Instead, I call a procedure in that form that does the job. That's all fine and good, and nothing at all revolutionary, but it leaves one with an annoying...
19
4100
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate the code that implements managing unbound controls on forms given the superior performance of unbound controls in a client/server environment. I can easily understand a newbie using bound controls or someone with a tight deadline. I guess I need...
2
4632
by: Tim Marshall | last post by:
The following is happening in two instances in A2003. The one I s\describe is the easiest one. Theme controls and autocorrupt have been turned off long ago. An unbound main form with a list box (query row source and multi-select turned off) and a datasheet subform. The short cut menu for the datasheet subform includes standard sort ascending and descending and remove filter/sort menu items. The recordsource for the subform datasheet...
6
8331
by: Ty Salistean | last post by:
I have a form that I inherited from System.Windows.Forms. I use that form everywhere in my system. I went back to my base class form and changed the size, expecting all of my children forms to inherit the base class forms size. This is not what happened. All of my children forms thought the size property was overridden. They stayed the old size. How can I get my children forms to respect the parents size property? I am assuming...
4
3525
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The objective in utilizing this new deployment method is to reduce the maintenance overhead as well as making it easier for my users to setup and run the application initially. I have VS 2002, Windows XP, Access XP(2000 format). He is my problem....
0
3052
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The objective in utilizing this new deployment method is to reduce the maintenance overhead as well as making it easier for my users to setup and run the application initially. I have VS 2002, Windows XP, Access XP(2000 format). He is my problem....
4
1113
by: Roy | last post by:
Hi all, The windows application that is developed on my laptop has different look when is installed on another machine. Forms and controls look weird (size, location). I tried to change resolution, but it didn't help. I know this is a configuration issue, but don't have any idea how to investigate. Any suggestions is welcomed. Roy
12
11091
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms. Here is a newbie mistake that I found myself doing (as a newbie), and that even a master programmer, the guru of this forum, Jon Skeet, missed! (He knows this I'm sure, but just didn't think this was my problem; LOL, I am needling him) If...
0
8572
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
8984
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...
0
8825
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
7661
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
6491
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...
0
5839
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4579
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2272
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1976
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.