Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[VB.NET 2008] Console controlled windows form?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
sven3107
Expert Cheater
Reputation: 0

Joined: 04 Feb 2009
Posts: 118
Location: Belgium

PostPosted: Fri Jun 05, 2009 12:56 pm    Post subject: [VB.NET 2008] Console controlled windows form? Reply with quote

Okay, probably a common question but who cares.
Is there any way to show the console through windows forms, and make the console have access to the form?
If so, how?

Help will be greatly appreciated.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Fri Jun 05, 2009 4:23 pm    Post subject: Re: [VB.NET 2008] Console controlled windows form? Reply with quote

sven3107 wrote:
Okay, probably a common question but who cares.
Is there any way to show the console through windows forms, and make the console have access to the form?
If so, how?

Help will be greatly appreciated.


You can use the console window as output but that's it I gues.

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
sven3107
Expert Cheater
Reputation: 0

Joined: 04 Feb 2009
Posts: 118
Location: Belgium

PostPosted: Sun Jun 07, 2009 3:17 am    Post subject: Reply with quote

Okay, you say you can use the console as an output window.
Does that mean you can use a command to show the console?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sun Jun 07, 2009 5:40 pm    Post subject: Reply with quote

sven3107 wrote:
Okay, you say you can use the console as an output window.
Does that mean you can use a command to show the console?


This is easy, just call AllocConsole()
http://msdn.microsoft.com/en-us/library/ms681944(VS.85).aspx
http://www.pinvoke.net/default.aspx/kernel32/AllocConsole.html

Then you can go to town on it with the Console class.
Back to top
View user's profile Send private message
Frostbyt3
Master Cheater
Reputation: 0

Joined: 07 Jan 2008
Posts: 323
Location: Australia

PostPosted: Sun Jun 07, 2009 7:10 pm    Post subject: Reply with quote

The way I use I find a bit easier.

Just go to your project's properties and change output type from Windows App. to Console App.

Then just call Console.WriteLine() to output.

You can also use Console.ReadLine() for input, but this will pause execution of your program.
Back to top
View user's profile Send private message MSN Messenger
jdm
Advanced Cheater
Reputation: 0

Joined: 19 Sep 2008
Posts: 88

PostPosted: Sat Jun 20, 2009 11:37 am    Post subject: Reply with quote

If im not mistaken he wants both Console App and a Windows App. And maybe use the Console App to Control certain aspects of the windows app. The only way that I can think of doing this is by using "Main(string[] args)" But if you use that method I'm not too sure how you would have it constantly update...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites