Xbox LIVE Indie Games
Sort Discussions: Previous Discussion Next Discussion
Page 1 of 1 (5 posts)

Game window icon

Last post 10/31/2007 10:17 AM by xargo. 4 replies.
  • 10/30/2007 5:15 PM

    Game window icon

    Good day,

    I've got a very simple question. How do you hide the game window icon? :)

    Thanks in advance,
    Jitse De Wandel
  • 10/30/2007 6:02 PM In reply to

    Re: Game window icon

    You mean remove it from the title bar on the window? or something else?
  • 10/31/2007 6:07 AM In reply to

    Re: Game window icon

    Yes from the title bar. It's easy with a default .NET form because it has a property for it. But I can't find such thing with the XNA Game class.
  • 10/31/2007 7:42 AM In reply to

    Re: Game window icon

    The only way I know you can do that is to add the System.Windows.Form assembly to your game project and then use the Game.Window property to create a new Form from handle using code similar to this:
    ((System.Windows.Forms.Form)System.Windows.Forms.Form.FromHandle(Game1.Window.Handle)).ShowIcon = false;

  • 10/31/2007 10:17 AM In reply to

    Re: Game window icon

    Ah yeh, I just came across that possibility a few hours ago. Thanks anyway. :)
Page 1 of 1 (5 posts) Previous Discussion Next Discussion