Can I write an app like cmd ??

game_builder

Member
Joined
Apr 13, 2018
Messages
5
Programming Experience
1-3
Hi there . i want to create an windows form app
In the main form I want to put a text box or something like that to write a single line code (like sqlite ) who can I do that ?
for example

appname >> add a 2
appname >> add b 3
appname >> sum a b

I can write in console app (of course user can delete the appname >> section but i don't want this ) but i can't write in the winform app . Have you any idea for standard way in this work ?
 
You can handle appropriate events of the TextBox and intercept keystrokes and prevent them being processed if the caret is within the prompt area. I would recommend doing some reading on the TextBox class and seeing what members it has and what they do.
 
Back
Top Bottom