开发者

C#, fontdialog doesn't show up on windows XP

开发者 https://www.devze.com 2023-03-20 02:41 出处:网络
I have a weird problem. I am developing an application where the user can select a font from a fontdialog by clicking on a button.

I have a weird problem.

I am developing an application where the user can select a font from a fontdialog by clicking on a button.

The problem is when running on win XP the fon开发者_运维知识库tdialog doesn't show up. If I press ALT key it shows up (after I click on the font button).

I searched web for a solution and found a guy with similar problem and his quick solution was programmatically press ALT. Of course, how could I press ALT during/after fontdialog.ShowDialog()? It's not really clean, thought.

Thanks for any advice.

Petr


[resolved]

I had the buttons and stuff on a tabpage. And in it's paint method I had something which didn't belonged there. After I commented it out, it works!

Thanks

Petr

0

精彩评论

暂无评论...
验证码 换一张
取 消