none
I need help making this console based program into a GUI and I can't find out how to implement it into the code RRS feed

  • Question

  • using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;

    namespace Memo
    {
        class Program
        {
            
            public static void DisplayCompanyName() //creating a method for company name

            {

                Console.Write("C# Software Developers"); //making method display C# Software Developers

            }
            static void Main(string[] args)
            {
                //email to my boss about the memo of the company using it 3 times.
                Console.Write("TO:        Jeff Boss \nFROM:      Christian Employee\n");

                Console.Write("SUBJECT:   ");

                DisplayCompanyName();

                Console.WriteLine();

                Console.WriteLine();

                Console.Write("I put a note on your desk regarding the company ");

                DisplayCompanyName();

                Console.Write(".\nI think they could be amazing partners and after talking to multiple and\nprevious clients, I highly doubt you wouldn't want \n");

                DisplayCompanyName();

                Console.Write(" to work for us.");
            }
        }
    }
    Wednesday, September 12, 2018 3:15 PM

All replies

  • With the exact wording of your question and code shown you should use labels to display information.

    I noticed the word email, if that is the intent see the following page.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
    VB Forums - moderator
    profile for Karen Payne on Stack Exchange, a network of free, community-driven Q&A sites

    Wednesday, September 12, 2018 3:54 PM
    Moderator
  • I would recommend starting a new GUI project and having your strings display in the main window (as labels if no editing is required)
    Thursday, September 13, 2018 6:01 PM
  • Check this thread for Email functionality with UI

    Thanks,
    Vivek Bansod
    Blog | MSDN | LinkedIn
     

    Friday, September 14, 2018 10:59 AM