Create a Mini Game, Terminal Resize Not Recognized

Bill Preston 20 Reputation points
2024-04-25T20:02:34.1466667+00:00

In the Create methods in C# console applications (Get started with C#, Part 5)1. Challenge project - Create a mini-game

When testing code and the terminal is resized, TerminalResized is not triggered. I compiled the Final version and it is not triggered either.

Unable to confirm/test that part of the exercise.

This question is related to the following Learning Module

Azure | Azure Training
{count} votes

Accepted answer
  1. Pradeep M 9,765 Reputation points Microsoft External Staff Volunteer Moderator
    2024-04-26T06:06:47.38+00:00

    Hi Bill Preston

    Thank you for reaching out to the Microsoft Q&A forum. 

    I've completed the tutorial exercise on the

    Learn Path: Create methods in C# console applications (Get started with C#, Part 5),

     Module: Challenge project - Create a mini-game,

    Unit3: Exercise - Add code to end the game.

    And I found the instructions to be straightforward and easy to follow. Everything seems to be functioning smoothly. 

    During tests with the Starter code, I noticed that the Terminal Resized event wasn't triggered. However, when testing the Final code, resizing the terminal triggered the termination of the game and displayed the message "Console was resized. Program exiting".

     I've attached a screenshot for your reference.

    shared image

    If you encounter any future issues, please feel free to contact us, and we will be pleased to assist you further.  

    If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community. 

    Thank you.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.