Solved

Mono C# Gtk maximize window

Posted on 2011-03-07
5
1,548 Views
Last Modified: 2016-02-19
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
Comment
Question by:IT-Factory
  • 3
  • 2
5 Comments
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 35062896
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
 
LVL 2

Author Comment

by:IT-Factory
ID: 35066930
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
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 250 total points
ID: 35068502
C# is case-sensitive. Try "Maxmimize()" as demonstrated above.
0
 
LVL 2

Author Closing Comment

by:IT-Factory
ID: 35081219
Thanks.
As allways it was a small thing ...
0
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 35085629
NP. Glad to help  :  )
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question