Results 1 to 2 of 2

Thread: Combining Windows Forms With Console Application

  1. #1
    .NET Framework
    .NET 4.5
    Join Date
    Nov 2018
    Posts
    1
    Rep Power
    0

    Combining Windows Forms With Console Application

    So, I'm working on this little project to try to learn more about networking and also C# as I go along.
    What I'm attempting to achieve is where you click on a button and it opens a Console window that allows for user input and essentially I want to be able to have a user enter an IP address and a port and be able to connect to a computer that is running the Server application (TcpListener).
    I have everything working, but not in a windows form. I was using just a standalone console application. Is there any way that I can implement a console application into a windows form?

  2. #2
    .NET Framework
    .NET 4.5
    Join Date
    Apr 2011
    Posts
    1,980
    Rep Power
    154
    Why would you need to "implement a console application into a windows form"? It's all C# code. Why can't you just create a WinForms app and have the user enter the required data in a TextBox? You can start a Console app from a WinForms app by calling Process.Start but they are two separate apps, so they are not sharing data. There are ways to communicate between them but there's nothing specific in what you've posted that indicates that you would need two separate apps in the first place.

Similar Threads

  1. Replies: 4
    Last Post: 01-05-2018, 9:01 AM
  2. Windows Forms application with a shared database
    By marcusdyson in forum Windows Forms
    Replies: 1
    Last Post: 06-29-2017, 10:15 PM
  3. Console Application Riddle
    By spatio in forum ASP.NET General Discussion
    Replies: 1
    Last Post: 05-11-2014, 12:08 AM
  4. Windows Forms Application and WPF Application
    By jdy0803 in forum C# General Discussion
    Replies: 2
    Last Post: 05-24-2013, 6:51 PM
  5. Replies: 2
    Last Post: 08-28-2012, 11:24 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •