Search found 30 matches

by nirmalks
Thu Mar 17, 2016 8:02 am
Forum: Windows PowerShell
Topic: ReadOnly Property
Replies: 15
Views: 4868

Re: ReadOnly Property

Here are two things that are really bothering me:

- When I select a node in Treeview, it flickers
- When I hover mouse over Combobox, it filckers.

It looks like these controls are sending some messages to the system or they refreshes itself.

Thanks,
Nirmal
by nirmalks
Thu Mar 17, 2016 6:51 am
Forum: Windows PowerShell
Topic: ReadOnly Property
Replies: 15
Views: 4868

Re: ReadOnly Property

Yes, you're right, but I can't stop flickering on controls like Combobox and Treeview.

Is there any way to stop flickering for these specific controls?

Thanks again!
Nirmal
by nirmalks
Thu Mar 17, 2016 5:39 am
Forum: Windows PowerShell
Topic: ReadOnly Property
Replies: 15
Views: 4868

Re: ReadOnly Property

Hi there! Now I'm able to reduce flickering for most of the controls on the form, but somehow DoubleBuffered property doesn't work for Combobox and Treeview controls. I've been reading over Internet and came across this code: protected override CreateParams CreateParams { get { CreateParams cp = bas...
by nirmalks
Sat Mar 12, 2016 11:38 pm
Forum: Windows PowerShell
Topic: ReadOnly Property
Replies: 15
Views: 4868

Re: ReadOnly Property

You know what - It is there!! but I don't see when navigating properties through IntelliSense.

Thank you for all your help!
Nirmal
by nirmalks
Sat Mar 12, 2016 11:28 pm
Forum: Windows PowerShell
Topic: ReadOnly Property
Replies: 15
Views: 4868

Re: ReadOnly Property

I can't find those properties (OptimizedDoubleBuffer and other props) on Form variable. IntelliSense doesn't give me those properties on Form. So how do I set? OR can you please suggest a few lines of code that I could use to reduce overall flickering for all controls on a form? Thank you very much ...
by nirmalks
Sat Mar 12, 2016 11:02 pm
Forum: Windows PowerShell
Topic: ReadOnly Property
Replies: 15
Views: 4868

Re: ReadOnly Property

How do I set the same set of properties for a Form and its controls. Well, my idea is to reduce the flickering. I've been reading through some posts at Stackoverflow and MSDN to reduce flickering and this is what I've got, but I'm not sure as to how I make use of them in PowerShell studio. https://s...
by nirmalks
Sat Mar 12, 2016 7:41 pm
Forum: Windows PowerShell
Topic: ReadOnly Property
Replies: 15
Views: 4868

Re: ReadOnly Property

Thanks for your reply!

All I'm trying to do is avoid flickering for Winform and it's controls.

Thanks,
Nirmal
by nirmalks
Sat Mar 12, 2016 9:04 am
Forum: Windows PowerShell
Topic: ReadOnly Property
Replies: 15
Views: 4868

ReadOnly Property

I get below error messages when using DoubleBuffered, UserPaint and other properties to reduce flickering: ERROR: 'UserPaint' is a ReadOnly property. Final10.psf (258, 2): ERROR: At Line: 258 char: 2 ERROR: + [System.Windows.Forms.ControlStyles]::UserPaint = $true ERROR: + ~~~~~~~~~~~~~~~~~~~~~~~~~~...
by nirmalks
Fri Feb 12, 2016 11:36 am
Forum: PowerShell GUIs
Topic: MouseMove
Replies: 4
Views: 1795

MouseMove

Hello, Need a little help on this code: IF ($_.Button -eq 'Left') { $CurTopNow = $panel259.Top $CurLeftNow = $panel259.Left $panel259.Top = [System.Windows.Forms.Cursor]::Position.X + $CurTopNow $panel259.Left = [System.Windows.Forms.Cursor]::Position.Y + $CurLeftNow } I have a panel on a form that ...
by nirmalks
Thu Feb 11, 2016 6:59 am
Forum: PowerShell GUIs
Topic: Shadow
Replies: 2
Views: 1565

Shadow

Good Morning guys!

Can someone please post a few examples as to:
-How to add shadow to a Panel
-How to create round-shaped buttons.

Many thanks for pointers!

Nirmal