Search found 451 matches

by stevens
Fri Jun 25, 2021 11:18 am
Forum: PowerShell GUIs
Topic: Systray Application
Replies: 16
Views: 5089

Re: Systray Application

Ok, got it working now 😁 So got a systray icon, called from a ps1 (ps studio doesn't allow me to convert the ps1 to an exe, strange thing: if I try to open a ps1 it opens a psf, tried ten times, closed and opened ps studio) that calls for a form which is in an exe. I'd like to make the form look lik...
by stevens
Fri Jun 25, 2021 4:22 am
Forum: PowerShell GUIs
Topic: Systray Application
Replies: 16
Views: 5089

Re: Systray Application

Thanks, but when I run it (not in Ps Studio) then an alertbox comes first, then it shows the info box indeed, which is nice.
Though it runs as which process? Since it does not close itself.
by stevens
Fri Jun 25, 2021 3:08 am
Forum: PowerShell GUIs
Topic: Systray Application
Replies: 16
Views: 5089

Re: Systray Application

Ok, you got a point. So how do I continue now then? I have a scheduled task which scans for software installed, once it finds someting which is on the not allowed list, it can show a toast message. But the user cannot do any action on that toast message. So ideally, the systray should show a balloon...
by stevens
Wed Jun 23, 2021 8:19 am
Forum: PowerShell GUIs
Topic: Systray Application
Replies: 16
Views: 5089

Re: Systray Application

Well, maybe sapien powershell studio isn't the best match here. Found this https://github.com/byteben/Toast and if it can run some actions, that sound much more what I'm looking for. With WPF you can also create systray icons. Besides, the Sapien GUI, as far as I can see, is not offering but outdate...
by stevens
Tue Jun 22, 2021 6:51 am
Forum: PowerShell GUIs
Topic: Systray Application
Replies: 16
Views: 5089

Re: Systray Application

Thanks, but I don't want the form to show at all. Is that possible (or is that the reason of having two icons -where is the green and yellow icon -see my screenshot- one coming from?-)? Actually what I would like to do: -a tray icon application runs a scheduled task once a week (got that code which ...
by stevens
Sat Jun 19, 2021 5:31 am
Forum: PowerShell GUIs
Topic: Systray Application
Replies: 16
Views: 5089

Re: Systray Application

Thanks but I still see 2 icons. One ugly yellow and green and one other icon :-(
screenshot
screenshot
Screenshot_2.png (3.12 KiB) Viewed 2804 times
Note: that's once I created an exe out of if and run this exe.
by stevens
Fri Jun 18, 2021 11:56 pm
Forum: PowerShell GUIs
Topic: Systray Application
Replies: 16
Views: 5089

Re: Systray Application

Sorry, thought I attached the psf.
Here it is. Note that it is really basic, just try to grap the basics here.
Demo-IconNotify.psf
Demo
(22.64 KiB) Downloaded 141 times
by stevens
Fri Jun 18, 2021 6:29 am
Forum: PowerShell GUIs
Topic: Systray Application
Replies: 16
Views: 5089

Systray Application

Hi, I'm trying to make a systray application and found this topic: https://www.sapien.com/forums/viewtopic.php?t=13935 So I tested some basic stuff but not getting really where I wanted = 1 icon (now there are 2(?) which opens a form in which I load a gridview with local software installed. On that ...
by stevens
Thu Mar 04, 2021 2:24 am
Forum: PowerShell GUIs
Topic: datagridview_CellPaintingCustom for filtered datagridview?
Replies: 1
Views: 503

datagridview_CellPaintingCustom for filtered datagridview?

Hi, I have a $datagridview_CellPainting=[System.Windows.Forms.DataGridViewCellPaintingEventHandler] which works fine. It colors the items perfectly. Now I have a CellPainting I want to execute ONLY when a filter (where items have date -lt get-date) on my datagridview is executed. So when no filter i...
by stevens
Tue Feb 02, 2021 9:43 am
Forum: PowerShell GUIs
Topic: Refresh Gridview, focus on row selected in middle of grid (scrollbar)
Replies: 1
Views: 1436

Refresh Gridview, focus on row selected in middle of grid (scrollbar)

Hi, I have a refresh of a gridview after which I select again the row which was selected for the refresh. That works fine. However, the gridview has a long list of values, so when I select a value in the middle of the list and the scrollbar (vertical) is there and I do a refresh, the gridview should...