Powershell WinForms Diagram?

Support for all customers who have purchased or received a Productivity Pack Support product license. This forum does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
fmhweb
Posts: 9
Joined: Sat Apr 03, 2010 1:51 am

Powershell WinForms Diagram?

Post by fmhweb » Tue Apr 06, 2010 6:35 am

Hello World,
I need to create a diagram, during what time a backup is running of our Servers.What I have is a list, which looks like this:#ServerName;StartTime;EndTime (INFO for you)Server1;15:00;15:05Server2;16:00;16:55Server3;00:20;01:05etc.I have created a richtextbox which shows an output like the following (Imagine that there is a timeline at the top from 00:00 to 24:00):                  00:00 01:00 ... 15:00 16:00 17:00 ...Server1                                  ooServer2                                             oooooServer3            00000Where there is a "0", a backup of the Server is running.What I want:Replace "0" with a bar using ".draw" or whatever. (Similar to MS Project)Make it printable(First bars, but keep printing in mind).My Problem:(I am a newby, almost 1 year powershell, but only 5 Days winforms+PS expirience). Never used Winforms.Draw, yet.My Questions:Can I lock "drawn items" to a richtextbox? So when the Richtxtbox is full, and the scrollbar shows, does the "drawn item" scroll, too.If I just draw onto the form, or a panel, will the form scroll down, when drawn items are exeding the bottom of the form.Generally, is it possible, to create diagrams this way? Should I do it another way?I know it is a long shot to ask such a question, but hints would be very much apreciated. PS: Why not do it with MS Project? Because too easy. No, because I would also like to do stuff like this for future projects.

User avatar
davidc
Posts: 5837
Joined: Thu Aug 18, 2011 4:56 am

Powershell WinForms Diagram?

Post by davidc » Tue Apr 06, 2010 8:20 am


I recommend posting this question on http://www.ScriptingAnswers.com, which is designed to answer these types of questions.

This forum is reserved for technical questions in regards to our free tools.





David
David
SAPIEN Technologies, Inc.

User avatar
fmhweb
Posts: 9
Joined: Sat Apr 03, 2010 1:51 am

Powershell WinForms Diagram?

Post by fmhweb » Tue Apr 06, 2010 7:47 pm


Locked