Search found 9 matches

by luk4mu5
Thu May 17, 2018 8:58 am
Forum: PowerShell GUIs
Topic: dynamically create gui elements based on csv contents.
Replies: 10
Views: 1087

Re: dynamically create gui elements based on csv contents.

yes i did look at it, didnt seem to apply for what im going for. (perhaps im just too blind to see how to use it in my project) Im not using any sub forms or anything, this is all in one window. Open the app, it imports the CSV, gets images and external data, shows each applications/scripts data in ...
by luk4mu5
Thu May 17, 2018 8:44 am
Forum: PowerShell GUIs
Topic: dynamically create gui elements based on csv contents.
Replies: 10
Views: 1087

Re: dynamically create gui elements based on csv contents.

yes in a stactic panel I made in the form this will work just fine. ill try and make convey this better, I can make it do that if i create and set a panel, with an image box etc. I can bake 10 panels like this and assign the data from the first 10 lines of the CSV But this is all static. I need to g...
by luk4mu5
Thu May 17, 2018 8:12 am
Forum: PowerShell GUIs
Topic: dynamically create gui elements based on csv contents.
Replies: 10
Views: 1087

Re: dynamically create gui elements based on csv contents.

pictures speak a thousand words right? (i hope) https://preview.ibb.co/hze4gJ/C8_B94882_9608_4391_AA9_D_9_CA0_E5_CE4_E47.jpg so im wanting image url/file inserted as source for the image box, name, version, details etc in to the relevant labels/text blocks and depending if already installed locally ...
by luk4mu5
Thu May 17, 2018 6:58 am
Forum: PowerShell GUIs
Topic: dynamically create gui elements based on csv contents.
Replies: 10
Views: 1087

dynamically create gui elements based on csv contents.

Hi guys. I want to put together a loader/manager tool for lots of scripts and tools we use. I plan on having all the info for each tool to be sourced from a csv file out on the network some where. with this data populate my form with a listing for each row. similar to a product listing on an online ...
by luk4mu5
Mon Mar 12, 2018 4:52 pm
Forum: PowerShell GUIs
Topic: how to maximise and return a form to windowed state?
Replies: 5
Views: 987

Re: how to maximise and return a form to windowed state?

OK I've got this far $buttonMaximize_Click={ $maxlocation = [System.Windows.Forms.SystemInformation]::WorkingArea.Location $maxsize = [System.Windows.Forms.SystemInformation]::WorkingArea.Size $form1.Location = $maxlocation $form1.Size = $maxsize } but that will breake $form1.WindowState = 'Normal' ...
by luk4mu5
Mon Mar 12, 2018 4:09 pm
Forum: PowerShell GUIs
Topic: how to maximise and return a form to windowed state?
Replies: 5
Views: 987

Re: how to maximise and return a form to windowed state?

Perfect thanks! I was getting lost with trying to use derivatives of Set-WindowStyle -Style MAXIMIZE -MainWindowHandle (Get-Process -Id $pid).MainWindowHandle $MainForm.WindowState = 'Minimized' $MainForm.WindowState = 'Normal' This worked nicely for the job. however $MainForm.WindowState = 'Maximiz...
by luk4mu5
Mon Mar 12, 2018 2:34 pm
Forum: PowerShell GUIs
Topic: how to maximise and return a form to windowed state?
Replies: 5
Views: 987

how to maximise and return a form to windowed state?

HI, I currently have a border-less form and have gone about recreating my own title bar controls. So far i can drag the window around (that one took me a whole day to figure out), close and minimise. I can maximise to full screen (akin to F11 in a web browser) but cant seems to figure out how to do ...
by luk4mu5
Wed Mar 07, 2018 2:24 pm
Forum: PowerShell GUIs
Topic: Using LinkLabel to send email with details
Replies: 6
Views: 1092

Re: Using LinkLabel to send email with details

so something like this: $linklabel1_LinkClicked=[System.Windows.Forms.LinkLabelLinkClickedEventHandler]{ $Outlook = New-Object -ComObject Outlook.Application $Mail = $Outlook.CreateItem(0) $Mail.To = "person@company.com" $Mail.bcc = "person2@company.com" $Mail.cc = "person3@company.com" $Mail.Subjec...