Search found 204 matches

by Lembasts
Sun Jul 28, 2019 5:21 pm
Forum: PowerShell GUIs
Topic: Showing multiple child forms
Replies: 2
Views: 136

Showing multiple child forms

Greetings,

I have a mainform with several buttons. Each button launches another form using Show-<form>_psf.
When I launch a child form I cannot go back to the main form to launch another form.
Is it possible to launch multiple child forms?
Thanks
David
by Lembasts
Tue Jul 02, 2019 5:10 pm
Forum: PowerShell GUIs
Topic: Circular Light Indictor Widget
Replies: 6
Views: 389

Re: Circular Light Indictor Widget

Thanks Mr. V - nice idea.
So to add images we can use open button in PS studio and just add our BMP/JPG.
To add an image programmatically is it:
$checkboxONOFF.image = [System.Drawing.image]::FromFile('c:\redcircle.bmp')?
by Lembasts
Sun Jun 02, 2019 10:01 pm
Forum: PowerShell GUIs
Topic: debugging hang on AD directory seacher
Replies: 8
Views: 507

Re: debugging hang on AD directory seacher

Looks like support cant work it out either.
Must be some weird group policy hardening setting.
I would have thought that good old adsisearcher was so benign...

Anyways - I've rewritten the AD bit to use adfind (from joeware) and all is well..
by Lembasts
Thu May 30, 2019 2:28 pm
Forum: PowerShell Studio
Topic: debugger hangs on adsisearcher
Replies: 5
Views: 1552

Re: debugger hangs on adsisearcher

Thanks.
How do you run a command before displaying the form?
The command in question is actually in the load event.
I have never heard of the jobtracker control set...
by Lembasts
Tue May 28, 2019 7:31 pm
Forum: PowerShell GUIs
Topic: Newline in tooltip control
Replies: 4
Views: 325

Re: Newline in tooltip control

Thanks.
I also discovered that you cannot set that tootltip text directly in the controls properties.
You have to use the settooltip method.
by Lembasts
Tue May 28, 2019 5:49 pm
Forum: PowerShell GUIs
Topic: Newline in tooltip control
Replies: 4
Views: 325

Newline in tooltip control

Hi,
According to: https://www.sapien.com/blog/2014/01/30/ ... p-control/
..all I need do for a new line in my tooltip is add a backtick n (`n).
I have done that on a tooltip and it does not generate a newline and simply display the text `n.
What am I missing please?
Thanks
David
by Lembasts
Tue May 28, 2019 2:16 pm
Forum: PowerShell Studio
Topic: debugger hangs on adsisearcher
Replies: 5
Views: 1552

Re: debugger hangs on adsisearcher

The ldapfilter is '(samaccountname=test1)'.
I have run the debugger and there are no entries generated in the eventlog.
by Lembasts
Sun May 26, 2019 6:25 pm
Forum: PowerShell Studio
Topic: debugger hangs on adsisearcher
Replies: 5
Views: 1552

debugger hangs on adsisearcher

Product, version and build: PS build 163 32 or 64 bit version of product: 64 bit Operating system: windows 10 1709 32 or 64 bit OS: 64 I have a single form with this line of code: $search = [adsisearcher]$ldapfilter If I put a breakpoint on that line, run the debugger and press F11 to execute that l...
by Lembasts
Thu May 23, 2019 9:50 pm
Forum: PowerShell GUIs
Topic: debugging hang on AD directory seacher
Replies: 8
Views: 507

Re: debugging hang on AD directory seacher

I thought it might have something to do with :
$ExecutionContext.SessionState.LanguageMode
but when I run that in the console it says FullLanguage.
by Lembasts
Thu May 23, 2019 9:45 pm
Forum: PowerShell GUIs
Topic: debugging hang on AD directory seacher
Replies: 8
Views: 507

Re: debugging hang on AD directory seacher

Yeh - its strange.
If I just highlight the code and select 'run selection in console' it works fine.
If I compile it into an exe and run it it doesnt work and neither does debugging.