Search code examples
c#monomonodevelopgtk#

Remove minimize and maximize window buttons in GTK#


How can I remove the minimize and maximize buttons on a gtk# window, I came across this, but wasn't very sure how to use it in gtk#.


Solution

  • This GTK# thread discusses the given indirect method in Mono terms.

    this.TypeHint = Gdk.WindowTypeHint.Dialog;
    

    It uses value from WindowTypeHint enumeration to set Window.TypeHint property to WindowTypeHint.Dialog value.

    P.S.: I was unable to find any good references for GDK# documentation.