Toolbar button problem - text not visible

J

Jan Krouwer

I have a problem that shows up only on some systems - the toolbar text in
buttons is not visible (vb.net 2003 app, 1.1 framework). As a workaround, I
changed the textalign property to "right". This solved the problem, but I
don't know what's happening. I notice that there is a small "dot" in the
first toolbar button that shows up in either of the textalign property
choices. Perhaps this is why the text disappears but I didn't put the dot
there and redoing the text in that button doesn't make the dot disappear.

Any ideas?
 
P

Peter Huang [MSFT]

Hi

First of all, I would like to confirm my understanding of your issue.

From your description, I understand that you winform app has a few buttons
on a toolbar control, while the text in the toolbar button control is not
visible on some machine.
Have I fully understood you? If there is anything I misunderstood, please
feel free to let me know.

Based on my test, I can not reproduce the problem, can you provide a
reproduce sample, so that I can reproduce the problem on my side and
investigate it?

Thanks for your understanding.

Also you said the problem lay only on some machine. So what is the
different setting between the problematic machine and the fine ones?
Have you tried to check the display setting(control panel--->display), e.g.
Appearance,Setting(Screen resolution,DPI setting)?

I look forward to hearing from you.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
J

Jan Krouwer

Peter,

You are correct in your restatement of the problem - althought fortuituously
you did not mention the small dot, which is good because embarassingly. this
turned out to be a speck of dust (this is a laptop).

The OS is XP Pro SP2, and the screen resolution is 1920x1200 with 120 dpi
(large size) I swiched the dpi to 96 (noraml size) and the text is now
visible! On resetting dpi to 120, the text once again disappears. So this
seems to be part of the cause. The text font properties in the toolbar
button were not changed from default values.

I also note that when I open vb.net and change the source code by reseting
the textalign property back to underneath from right, the text is now
visible (e.g., no more problem). Maybe I also changed something else but I
can't seem to reproduce the problem in debug mode.

However, as I mentioned above, I can cause the problem to come and go in the
previously compiled executable by changing the dpi setting.

Jan
 
P

Peter Huang [MSFT]

Hi

Thanks for your quickly reply!

From your description, it seems that you can not reproduce the problem on
your side any more even if you change the dpi settting.
So far it is hard to guess what is the problem.
I think you may try to use the reflector tool which is cool disassembly
tool to view the source of the compiled exe.
You may compare it with your worked one to find what is the difference.
Reflector for .NET
http://www.aisto.com/roeder/dotnet/


Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top