This is a migrated thread and some comments may be shown as answers.

Form Max Size question

3 Answers 101 Views
Form
This is a migrated thread and some comments may be shown as answers.
Charles Faramarzirad
Top achievements
Rank 1
Charles Faramarzirad asked on 14 Jan 2009, 10:27 PM
Hi Guys;
I'm trying to figure out how to do a winform max size (where it goes over the taskbar on your desktop) similiar to the bookstore kiost sample demo application..

any help would be appreciated.  I can't seem to find any documentation on this.

cheers
Charles

3 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 19 Jan 2009, 08:35 AM
Hello Charles Faramarzirad,

In order to get the desired behavior, you should set the FormBorderStyle property of the form to None:
this.FormBorderStyle = FormBorderStyle.None; 

If you have additional questions, feel free to contact me.

All the best,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Charles Faramarzirad
Top achievements
Rank 1
answered on 19 Jan 2009, 05:04 PM
Hi ;
Your code, "did not" do the trick.  it simply maximizes the form, it doesn't cover the task bar .

here is my code, it's a basic form code.

namespace

WindowsFormsApplication1

 

{

 

partial class Form1

 

{

 

/// <summary>

 

 

/// Required designer variable.

 

 

/// </summary>

 

 

private System.ComponentModel.IContainer components = null;

 

 

/// <summary>

 

 

/// Clean up any resources being used.

 

 

/// </summary>

 

 

/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>

 

 

protected override void Dispose(bool disposing)

 

{

 

if (disposing && (components != null))

 

{

components.Dispose();

}

 

base.Dispose(disposing);

 

}

#region

Windows Form Designer generated code

 

 

/// <summary>

 

 

/// Required method for Designer support - do not modify

 

 

/// the contents of this method with the code editor.

 

 

/// </summary>

 

 

private void InitializeComponent()

 

{

 

this.radThemeManager1 = new Telerik.WinControls.RadThemeManager();

 

 

this.radThemeManager2 = new Telerik.WinControls.RadThemeManager();

 

 

this.vistaTheme1 = new Telerik.WinControls.Themes.VistaTheme();

 

 

this.telerikTheme1 = new Telerik.WinControls.Themes.TelerikTheme();

 

((System.ComponentModel.

ISupportInitialize)(this)).BeginInit();

 

 

this.SuspendLayout();

 

 

//

 

 

// Form1

 

 

//

 

 

this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);

 

 

this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;

 

 

this.ClientSize = new System.Drawing.Size(298, 266);

 

 

this.Name = "Form1";

 

 

//

 

 

//

 

 

//

 

 

this.RootElement.ShouldPaint = true;

 

 

this.Text = "Form1";

 

 

this.ThemeName = "Telerik";

 

 

this.Load += new System.EventHandler(this.Form1_Load);

 

((System.ComponentModel.

ISupportInitialize)(this)).EndInit();

 

 

this.ResumeLayout(false);

 

 

this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;

 

}

#endregion

 

private Telerik.WinControls.RadThemeManager radThemeManager1;

 

 

private Telerik.WinControls.RadThemeManager radThemeManager2;

 

 

private Telerik.WinControls.Themes.VistaTheme vistaTheme1;

 

 

private Telerik.WinControls.Themes.TelerikTheme telerikTheme1;

 

}

}



please advise.
thanks
Charles
0
Nikolay
Telerik team
answered on 22 Jan 2009, 05:22 PM
Hello Charles Faramarzirad,

Please note that in the Bookstore Kiosk demo we are using a standard Microsoft Form.  However, I can notice from your code that you are using RadForm. RadForm does not support full coverage of the screen area, so I would suggest using the regular form with FormBorderStyle to None and RadTitleBar.

I hope this helps. If you have additional questions, feel free to contact me.

Best wishes,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Form
Asked by
Charles Faramarzirad
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Charles Faramarzirad
Top achievements
Rank 1
Share this question
or