PowerShell Tutorials : Making a GUI Part 7 - CSV Splitter GUI Part 2

preview_player
Показать описание
Making a GUI (Graphical User Interface) with PowerShell that uses the file dialogs, text box, and lists. In this video we use the xaml file we created from the first video and we add the functionalities to the different controls. We also add the validation to our GUI and code that part.

Links:

Tags:
PowerShell
GUI
Programming
Scripting
Automating
JackedProgrammer
Coding
Рекомендации по теме
Комментарии
Автор

Just wanted to say thank you for your work. For mine, I ran into an issue when the number of rows in the source file is not divisible (i.e. there was a remainder). The result was that the total rows in the source file did not match the combined rows in the destination files. The fix: adding [math]::ceiling() to the division. What that does is round up the number of rows per file so that the last file will have fewer rows but the total rows between the files will match.

bobacross
Автор

HI, Thanks for the videos, im getting error on the "LOAD" line - Exception calling "Load" with "1" argument(s): "Specified class name 'main.MainWindow' doesn't match actual root instance type 'System.Windows.Window'. Remove the Class directive or provide an instance via XamlObjectWriterS
ettings.RootObjectInstance." any idea how to solve this?

yanivme
Автор

In the beginning, when you add the Click function, I was getting an error saying "Cannot find type Verify that the assembly containing this type is loaded" I was able to fix this by adding "Add-Type -AssemblyName System.Windows.Forms"

Any idea as to why you did not need to add this line of code where as I did?

RagextothexMax
join shbcf.ru