C#如何更改默认的ico ..location(x,y)和标题位置(x,y) [英] C# how can I change the default ico ..location(x, y) and title location(x, y)
本文介绍了C#如何更改默认的ico ..location(x,y)和标题位置(x,y)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,大家..我想定制winform ico ..location ..
我该怎么办...比如......设置
hello ,everyone..i want custom the winform ico ..location..
how can i do ...such as .....set
var f= new Form();
f.ico.left=50;
f.ico.top=40;
f.text.left=50;
f.text.top=40;
like this..the meam....
< br $> b $ b
请原谅我的英语....我知道一点英语......我学习英语......现在......
欢迎任何帮助...
非常感谢....
我尝试过:
搜索没有结果..............
excuse my English.... i know a little English....i learn the English..now...
any help is welcome...
thank you very much....
What I have tried:
search no result..............
推荐答案
您必须创建一个派生System.Windows.Forms类型的自定义表单类型。然后你重写OnPaint方法并绘制你的图标和文字。
示例: VisualForm.cs
You have to create a custom form type that derives of the System.Windows.Forms type. And then you override the OnPaint method and draw your icon and text.
Example: VisualForm.cs
@Divine7
thankyou
这篇关于C#如何更改默认的ico ..location(x,y)和标题位置(x,y)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文