Click here to Skip to main content
15,891,431 members
Home / Discussions / C#
   

C#

 
QuestionHttpRequest and Submit button in html Pin
f4hd25-Jul-08 8:24
f4hd25-Jul-08 8:24 
AnswerRe: HttpRequest and Submit button in html Pin
f4hd31-Jul-08 5:40
f4hd31-Jul-08 5:40 
QuestionWebServices in C#.net Pin
balu1234525-Jul-08 8:01
balu1234525-Jul-08 8:01 
AnswerRe: WebServices in C#.net Pin
Ashfield25-Jul-08 8:26
Ashfield25-Jul-08 8:26 
GeneralRe: WebServices in C#.net Pin
SomeGuyThatIsMe25-Jul-08 8:29
SomeGuyThatIsMe25-Jul-08 8:29 
GeneralRe: WebServices in C#.net Pin
balu1234525-Jul-08 8:36
balu1234525-Jul-08 8:36 
GeneralRe: WebServices in C#.net Pin
Ashfield25-Jul-08 9:13
Ashfield25-Jul-08 9:13 
QuestionProblem setting FormBorderStyle = WindowState.Maximized Pin
dlarkin7725-Jul-08 5:50
dlarkin7725-Jul-08 5:50 
Hi,

I have a form with a status bar that I want to be maximized whenever it is shown.
I don't want the form to have maximize or minimize buttons so I have set MaximizeBox and MinimizeBox to false. But whenever the form is shown it totally overlaps the taskbar effectively making it invisible.

I have played around with various combinations of FormBorderStyle and MaximizeBox/MinimiszBox/ControlBox settings to no avail.

The code below is enough to reproduce the problem I am having.

Any ideas how to achieve what I'm looking for.

Thanks,

dlarkin77

public class FormTest : Form {
        private StatusStrip statusStrip1;
        private System.ComponentModel.IContainer components = null;

        protected override void Dispose(bool disposing) {
            if (disposing && (components != null)) {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        private void InitializeComponent() {
            this.statusStrip1 = new System.Windows.Forms.StatusStrip();
            this.SuspendLayout();
            // 
            // statusStrip1
            // 
            this.statusStrip1.Location = new System.Drawing.Point(0, 395);
            this.statusStrip1.Name = "statusStrip1";
            this.statusStrip1.Size = new System.Drawing.Size(643, 22);
            this.statusStrip1.SizingGrip = false;
            this.statusStrip1.TabIndex = 1;
            this.statusStrip1.Text = "statusStrip1";
            // 
            // FormTest
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(643, 417);
            this.Controls.Add(this.statusStrip1);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "FormTest";
            this.Text = "FormTest";
            this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion


        public FormTest() {
            InitializeComponent();
        }
}

AnswerRe: Problem setting FormBorderStyle = WindowState.Maximized Pin
DaveyM6925-Jul-08 6:17
professionalDaveyM6925-Jul-08 6:17 
GeneralRe: Problem setting FormBorderStyle = WindowState.Maximized Pin
dlarkin7725-Jul-08 6:22
dlarkin7725-Jul-08 6:22 
QuestiononBefore unload event Pin
Archana New to Dotnet25-Jul-08 5:30
Archana New to Dotnet25-Jul-08 5:30 
AnswerJavascript question :rolleyes: Pin
led mike25-Jul-08 5:43
led mike25-Jul-08 5:43 
QuestionTaking order with PDA Pin
Yulianto.25-Jul-08 4:55
Yulianto.25-Jul-08 4:55 
AnswerRe: Taking order with PDA Pin
hammerstein0525-Jul-08 5:33
hammerstein0525-Jul-08 5:33 
GeneralRe: Taking order with PDA Pin
DaveyM6925-Jul-08 6:21
professionalDaveyM6925-Jul-08 6:21 
GeneralRe: Taking order with PDA Pin
DaveyM6925-Jul-08 6:34
professionalDaveyM6925-Jul-08 6:34 
AnswerRe: Taking order with PDA Pin
DaveyM6925-Jul-08 8:07
professionalDaveyM6925-Jul-08 8:07 
Questionlan based application Pin
umeshdaiya25-Jul-08 4:04
umeshdaiya25-Jul-08 4:04 
AnswerRe: lan based application Pin
Anthony Mushrow25-Jul-08 4:42
professionalAnthony Mushrow25-Jul-08 4:42 
Questiondirectory watching Pin
stephan_00725-Jul-08 2:22
stephan_00725-Jul-08 2:22 
AnswerRe: directory watching Pin
benjymous25-Jul-08 3:53
benjymous25-Jul-08 3:53 
GeneralRe: directory watching Pin
stephan_00725-Jul-08 4:00
stephan_00725-Jul-08 4:00 
GeneralRe: directory watching Pin
Ashfield25-Jul-08 8:22
Ashfield25-Jul-08 8:22 
Questionbinding combobox to xml file Pin
bfis10813725-Jul-08 1:03
bfis10813725-Jul-08 1:03 
AnswerRe: binding combobox to xml file Pin
Tuwing.Sabado25-Jul-08 4:22
Tuwing.Sabado25-Jul-08 4:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.