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
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.
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
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.