- How to use the Console output in the C# REPL (in the O2 blog)
- Making Software Developers life easier : Using O2 Platform as a fast development framework (in his blog)
Now this Form object is a WinForms control and is not a native VisualStudio Window, which means that we can't add it to the VisualStudio Panes.
A better option is to make this a native VisualStudio Window, which is quite easy to do.
Open the C# REPL - VisualStudio 2010 API (from the REPL menu)
And with the VisualStudio_2010 object:
Create a native VisualStudio window (with a WinForms Panel inside it):
Use the same add_ConsoleOut extension method on the Panel object (the one returned by the open_Panel extension method):
And now the Console Out is now inside a native VisualStudio window, which we can access and manipulate.
Here is an example of changing the base window's width, height, top and left values:
Which of course we can now put anywhere inside VisualStudio's GUI
Next see the Viewing 'Console Out' messages created inside UserControls (when rendered by VisualStudio's Form Designer) for a practical example of using this technique during development.