Console in Forms application?

Posts 111 of 11 · Page 1 of 1
Console in Forms application?
Is it possible?

my code:
[PHP]Public Class Form1

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim a As New Console

End Sub
End Class[/PHP]
comes up with:
[PHP]Error 1 Type 'System.Console' has no constructors. C:\Users\Win7Sig PC\Documents\Visual Studio 2010\Projects\glass browser\glass browser\Form1.vb 4 13 glass browser
[/PHP]
Add a module and put the module as startup 'form'.

Use System.Environment.GetCommandLineArgs(Sub "Main") to check whether parameters exist.

I dno how to have that console DIRECTLY in your form.
no i want a separate window as a console not a form...
You can open the console using
Code:
Shell("C:\Windows\System32\cmd.exe")
You can not use them in Windows Forms Application. For console applications, there is another project type called 'Console Application'. Select that and use console there if you want.

Console has no constructor so you cannot use 'New' keyword on it. That means you can call Console class directly. For example:

Code:
Console.WriteLine("Blah Blah")
Console.ReadLine()
Depends on what you want to do with it.
NONONO

I want to make a console popup in a windows forms application.

Is is possible?
EDIT: Reread it, ok... so its not possible...
There is no way to embed the actual console inside of a winform, you can either A. Code the whole console (not going to happen) or B. Use API to control the console, but as far as dropping or embedding the console, as of now there is no way I know you can do it.
again, all a want is a SEPERATE form AS A CONSOLE == CONSOLE in a WINDOWS FORMS APPLICATION

Words in caps = MAIN WORDS
Quote Originally Posted by mnpeepno2 View Post
again, all a want is a SEPERATE form AS A CONSOLE == CONSOLE in a WINDOWS FORMS APPLICATION

Words in caps = MAIN WORDS
Did you even read NextGen's post?
Oh I get it he wants to make the windows form look like the "Windows Command Processor"
If I'm wrong correct me but you just want the form to look like it not have all of the scripts right?
ok its not possible, end of story



hellogooddaybye
Posts 111 of 11 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?