Solved

Mono C# Gtk maximize window

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jquery + C#.net radiobuttonlist 3 30
Where is this file? 3 26
Amazon S3 .Net error 5 20
.NET Enums [Flags] & Bitwise Design Question 6 29
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display

830 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