简体   繁体   English

Powershell Studio OwnerDraw控件

[英]Powershell Studio OwnerDraw Control

I'm creating a form in Powershell studio but I'm can't get it to look the way I want. 我正在Powershell Studio中创建表单,但无法以我想要的方式显示它。 The Highlighting on objects once they've been checked or selected is anoying. 一旦选中或选中对象,突出显示该对象。 I've heard I can Use the OwnerDraw control to modify this but the only code for this i can find is in C# and I can't convert it. 我听说我可以使用OwnerDraw控件进行修改,但是我能找到的唯一代码是在C#中,并且我无法对其进行转换。 突出显示示例

I need help with this or just making it so it 'un-highlights' it after say 1 second? 我需要与此相关的帮助,或者只是使其完成,以便在1秒钟后“取消突出显示”它? I've used the Timer control before so could have it un highlight some how but I can't even find code examples for this either. 我以前使用过Timer控件,因此可能无法突出显示某些方法,但是我什至都找不到代码示例。 I'd very much appreciate any help If people understand my question. 如果人们理解我的问题,我将不胜感激。 Thanks. 谢谢。

$checkedlistbox1.SelectedItem = $null with a timed reset. $ checkedlistbox1.SelectedItem = $ null,具有定时重置。 Sorted. 排序。 Thank you anyway all that read! 无论如何,谢谢你阅读!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM