Click here to Skip to main content
15,921,548 members
Home / Discussions / C#
   

C#

 
Questionfind if word doc is already open (c# win app) Pin
fady_sayegh27-Dec-05 2:39
fady_sayegh27-Dec-05 2:39 
AnswerRe: find if word doc is already open (c# win app) Pin
peshkunta27-Dec-05 3:47
peshkunta27-Dec-05 3:47 
GeneralRe: find if word doc is already open (c# win app) Pin
fady_sayegh27-Dec-05 4:27
fady_sayegh27-Dec-05 4:27 
QuestionLinkLabels array Pin
tray_gator27-Dec-05 2:25
tray_gator27-Dec-05 2:25 
AnswerRe: LinkLabels array Pin
gashach27-Dec-05 6:13
gashach27-Dec-05 6:13 
GeneralRe: LinkLabels array Pin
tray_gator27-Dec-05 22:37
tray_gator27-Dec-05 22:37 
QuestionMinimize problem Pin
CoolASL27-Dec-05 2:19
CoolASL27-Dec-05 2:19 
AnswerRe: Minimize problem Pin
peshkunta27-Dec-05 3:15
peshkunta27-Dec-05 3:15 
It seems right make sure the form properties in the InitializeComponent() function are all correct. These are mine and they work fine:

private void InitializeComponent()
{
//Code for Button, etc. initialization here

//
// Form1
//
this.AcceptButton = this.button1;
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(433, 260);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.button1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.KeyPreview = true;
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
this.PerformLayout();

}

// Here is the code in the form class

public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{

this.WindowState = FormWindowState.Minimized;
}
}

//Let me know if it doesn't work still
GeneralRe: Minimize problem Pin
CoolASL27-Dec-05 18:20
CoolASL27-Dec-05 18:20 
GeneralRe: Minimize problem Pin
peshkunta27-Dec-05 19:04
peshkunta27-Dec-05 19:04 
GeneralRe: Minimize problem Pin
CoolASL27-Dec-05 19:43
CoolASL27-Dec-05 19:43 
GeneralRe: Minimize problem Pin
peshkunta27-Dec-05 20:15
peshkunta27-Dec-05 20:15 
GeneralRe: Minimize problem Pin
CoolASL27-Dec-05 20:21
CoolASL27-Dec-05 20:21 
GeneralRe: Minimize problem Pin
peshkunta27-Dec-05 20:45
peshkunta27-Dec-05 20:45 
GeneralRe: Minimize problem Pin
CoolASL27-Dec-05 20:58
CoolASL27-Dec-05 20:58 
GeneralRe: Minimize problem Pin
peshkunta27-Dec-05 21:35
peshkunta27-Dec-05 21:35 
GeneralRe: Minimize problem Pin
CoolASL27-Dec-05 21:44
CoolASL27-Dec-05 21:44 
GeneralRe: Minimize problem Pin
peshkunta27-Dec-05 21:59
peshkunta27-Dec-05 21:59 
GeneralRe: Minimize problem Pin
CoolASL27-Dec-05 23:27
CoolASL27-Dec-05 23:27 
GeneralRe: Minimize problem Pin
CoolASL27-Dec-05 18:40
CoolASL27-Dec-05 18:40 
QuestionPrinting in Winforms App - Help!!! Pin
Srirampasham27-Dec-05 1:23
Srirampasham27-Dec-05 1:23 
AnswerRe: Printing in Winforms App - Help!!! Pin
peshkunta27-Dec-05 1:42
peshkunta27-Dec-05 1:42 
QuestionPreventing File Creation Pin
Shanila12327-Dec-05 1:15
Shanila12327-Dec-05 1:15 
AnswerRe: Preventing File Creation Pin
Rob Philpott27-Dec-05 2:09
Rob Philpott27-Dec-05 2:09 
QuestionOn line help Pin
mipooo27-Dec-05 0:57
mipooo27-Dec-05 0:57 

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.