c# - Adding and using a console application to a windows form project -
i have windows form application picks bunch of random numbers , displays them. have edited 'matrix effect' console application serve kind of animation picking numbers. have added console application random number picking project how use it?
instead of using textbox.text have input console.readline , display message have write console.writeline . simple thing different in console application otherwise else same , logics don't need changed :)
using system.runtime.interopservices; private void form1_load(object sender, eventargs e) { allocconsole(); } [dllimport("kernel32.dll", setlasterror = true)] [return: marshalas(unmanagedtype.bool)] static extern bool allocconsole();
i think should work if yes please rate answer :)
Comments
Post a Comment