非淡泊无以明志,非宁静无以致远 -心静如止水,动于静

How to let seperator height same as text on toolStrip

I am doing the project, a toolstrip on a form, and this toolstrip has a image background. but, I find the seperator is fit on toolstrip's height when toolstrip's dock = full. looks not good.

to control seperator as text's height, you should set toolstrip's padding value.

padding is space between item region and whole toolstrip's client region

 

also, SendKeys.Send("{F1}") will cause F1 keypress

posted @ 2011-05-07 22:27  烟雨客  阅读(176)  评论(0编辑  收藏  举报