Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1734
  • Last Modified:

Mono C# Gtk maximize window

My first project in MonoDevelop and already stuck.
How to maximize Mainwindow.
Seems a simple question but found a lot of  google 'solutions', but can't get it working
0
IT-Factory
Asked:
IT-Factory
  • 3
  • 2
1 Solution
 
käµfm³d 👽Commented:
Call the Maximize() method of your MainWindow:
public static void Main (string[] args)
{
	Application.Init ();
	MainWindow win = new MainWindow ();
	win.Maximize();
	win.Show ();
	Application.Run ();
}

Open in new window

0
 
IT-FactoryAuthor Commented:
When I do this I get on the win.maximize line this error:

Type Mainwindow does not contain a definition for  'maximize' and no extension method 'maximize' of type 'Mainwindow' could be found

I have:
using System;
using Gtk;
0
 
käµfm³d 👽Commented:
C# is case-sensitive. Try "Maxmimize()" as demonstrated above.
0
 
IT-FactoryAuthor Commented:
Thanks.
As allways it was a small thing ...
0
 
käµfm³d 👽Commented:
NP. Glad to help  :  )
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now