Solved

Mono C# Gtk maximize window

Posted on 2011-03-07
5
1,645 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

636 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