Solved

Mono C# Gtk maximize window

Posted on 2011-03-07
5
1,498 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 74

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 74

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 74

Expert Comment

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

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now