Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 3 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Im stumped. I have a form with multiple check boxes. These check boxes represent different file extensions.
Is my logic wrong? I can get to work in ISE, but not getting accurate results with Studio and check boxes.
This is my pff if anybody has time to look at it. I get correct file count/size if one or none checkboxes are selected. But if both checkboxes are selected- I get incorrect results? Also when I added the checkboxs to this project my display of filepaths are no longer showing up in richtextbox?
It would help if you actually explained what the purpose of all of this is.
If you can provide a clear description of what you are trying to accomplish and why you need to do this. I will look at the issue later if I have your description and if I can understand it.
The purpose is to Delete files. Using the Checkboxes, the user can specify which file types to be located, updated on screen(Richtextbox), and then prompted by a message box to confirm delete.
Your description is far too vague to be useful. Are you say8ing that the user is typing files into a RichTextBox and that that some determines how the checkboxes work?
You have to think about what steps a user would take to delete files. A user would just select a file and delete. A checkbox knows nothing about files. How does a checkbox relate to a RichTextBox.
The best quick guess I can make is that the checkbox event deletes a file specified by something that is not clear. How does the checkbox event know which file to delete?
Here is a demo. I check the first box (.depth file types) then click auto detect. This starts a search on the computer to find file types with .depth extensions (which in this demo results to 30 files/7.03gb). The user also has a 2nd checkbox option to also search for .Scid file types (which in this demo resulted to 17 files/2.64gb).
My problem lies if the User checks both file types. Why in this demo it doesn't total 47 files/9.67gb). Which had me asking if my method to use the if,elseif,else method in the script is appropriate to use in this case.
This topic is 3 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.