Do not post any licensing information in this forum.
I have a GUI project and a main form with couple of buttons each carrying on some task, each task (like getting mailboxes or AD users for example) writes a log through a function in a richtextbox used to keep a verbose log of every action taken.
I would like to move the aforementioned richtextbox to a child form that is shown upon user's request and was wondering how to handle this as if I try to send data to the control directly from the main form I get errors.
I thought of appending data to a variable each time an action is carried on and then display variable's data into the child richtexbox and this works but I end up with duplicate entries in the log which is not exactly what I want.
I'm sure there is a simple workaround to this or I'm doing something wrong but can't seem able to spot it.
Consider using an MDO form and log to an MDI child.
As I understand it is not possible to do what I originally planned to do so I'll just use the log file appraoch and get rid of it once the application is closed.
Thanks again for your time and putting me on the right track.
You could also use an IE object to log to and it can shown or hidden without any disruption.
As per the child form I've created it with Add - New object and then picked up an empty form then added a button to the main form calling the load-form, is there another appraoch to this?
$ie=New-Object -ComObject InternetExplorer.Application
$ie.Document.Write('<p class="red">Hello World</p>')
I'll play around with it and see what I can come up with, and thanks for IE part as well
I guess I should be set for the moment, I just need to play around with the demo and IE and see what better fits the tool
Thanks once again-
Still not sure if I will get rid of the file on form close but that's another story.
Many thanks for the example it will prove anyhow useful and stimulating to keep learning or when I have a doubt .
Who is online
Users browsing this forum: No registered users and 3 guests