Search found 48 matches

by bhnuser
Thu Feb 21, 2019 2:34 am
Forum: PowerShell
Topic: Close a form and open a new one
Replies: 4
Views: 1460

Re: Close a form and open a new one

Yeah, i know. I use it already. But it opens the main form and the login form remains open
by bhnuser
Thu Feb 21, 2019 2:02 am
Forum: PowerShell
Topic: Close a form and open a new one
Replies: 4
Views: 1460

Close a form and open a new one

Hello everybody, I hope you can help me with a little thing. I currently have a project that works exclusively with a login. As soon as the program is started, a loginForm opens. When the credentials are submitted, the permissions are checked. Now the problem: As soon as the mainForm opens after log...
by bhnuser
Wed Feb 13, 2019 12:51 am
Forum: PowerShell
Topic: New PsSession with a Progress Bar
Replies: 18
Views: 4246

Re: New PsSession with a Progress Bar

Here is how you will have to do this to get the users and maintain the results while animating the button. $jobScript = { Param( $Server, $User ) $userProperties = 'set required properties here' Get-ADUser -Server $Server -Filter "Name -like '$User'" -Properties $userProperties } $updateScript = { ...
by bhnuser
Tue Feb 12, 2019 1:52 am
Forum: PowerShell
Topic: New PsSession with a Progress Bar
Replies: 18
Views: 4246

Re: New PsSession with a Progress Bar

Yeah i see this is not easy as i thought. The Problem is, that i create 3 PS-Sessions and while i start the programm it takes about 30 seconds and this is a little bit frustrating if you do not see any progress on the start. But i found maybe an other way to display the progress. I refered to the po...
by bhnuser
Thu Feb 07, 2019 12:25 am
Forum: PowerShell
Topic: New PsSession with a Progress Bar
Replies: 18
Views: 4246

Re: New PsSession with a Progress Bar

Im so sorry. But what i like to ask is how to build a progress bar like this: https://www.sapien.com/forums/viewtopic.php?f=12&t=12486&p=67236&hilit=progress+bar+session#p67236 MDinice has a progress bar showing the progress of a connection to the server. This is what i would like to ad to my projec...
by bhnuser
Thu Feb 07, 2019 12:09 am
Forum: PowerShell
Topic: New PsSession with a Progress Bar
Replies: 18
Views: 4246

New PsSession with a Progress Bar

Hey, at the moment i try to add a progress bar to my project. This progress bar should show the progress of a connection to my AD- and Exchange-Server. I have already looked up here in the forum but can not find a solution for me. How the progress bar can synchronous with the progress of the functio...
by bhnuser
Wed Feb 06, 2019 11:11 pm
Forum: PowerShell GUIs
Topic: KeyDown-Event
Replies: 2
Views: 530

Re: KeyDown-Event

I tried it with a MessageBox. As if from nowhere it works without any reason.

I will continue to monitor it.
by bhnuser
Tue Feb 05, 2019 7:30 am
Forum: PowerShell GUIs
Topic: KeyDown-Event
Replies: 2
Views: 530

KeyDown-Event

Hello everyone, at the time i build a new GUI for some employees. They can search a AD-User and can edit him. Here are the question/problem: When i create a KeyDown-Event in a textbox, it works fine in the PowerShell Studio. But if build an executable file it wont work. How i tried it: $textboxUsern...
by bhnuser
Fri Jan 11, 2019 2:57 am
Forum: PowerShell GUIs
Topic: Change picture with a Buttonclick
Replies: 4
Views: 1017

Re: Change picture with a Buttonclick

Just assign a new image to the control in the buttonclick. $picturebox1.Image = [System.Drawing.Image]::FromFile($filename) Thank you for the helpful question. But now is my question how i can add image-files to my project so i can open them in a imagebox from every computer. I tried to add them in...
by bhnuser
Tue Jan 08, 2019 6:14 am
Forum: PowerShell GUIs
Topic: Change picture with a Buttonclick
Replies: 4
Views: 1017

Change picture with a Buttonclick

Hello everybody, i have a short question. Is it possible to change a picture in a picturebox when i click a button? My problem is, that i can show one picture over the properties and dont know how to change it in the script. Btw.: I attached the picture to my PowerShell Studio Project. The Project s...