By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,727 Members | 766 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,727 IT Pros & Developers. It's quick & easy.

Button Text Not Changed Problem

P: n/a
Hi to everybody,

I have chnged a button text in design mode. But After compiling and
executing the program
the text of the button do not change to new value.

Any Ideas?

Thaks for helps.

Arif Çimen
Nov 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hi Arif, Could you post some code?...

Josema.

"Arif Çimen" wrote:
Hi to everybody,

I have chnged a button text in design mode. But After compiling and
executing the program
the text of the button do not change to new value.

Any Ideas?

Thaks for helps.

Arif Çimen

Nov 17 '05 #2

P: n/a
Here My Codes:



using System;

using System.Drawing;

using System.Collections;

using System.ComponentModel;

using System.Windows.Forms;

using System.Data;

namespace Cosmo

{

/// <summary>

/// Summary description for Form1.

/// </summary>

public class Form1 : System.Windows.Forms.Form

{

public TicketPartSelectionForm tpsF;

public TicketsDatabaseForm tdF;

public TicketPrintingForm tpF;

public AboutBoxForm abF;

public CustomerInfoSelectionForm cisF;

public CustomerTravelProcesses ctP;

public Biletler bltler;

private System.Windows.Forms.Label label1;

private System.Windows.Forms.Button button1;

private System.Windows.Forms.Button button4;

private System.Windows.Forms.Button button5;

private System.Windows.Forms.Button button6;

private System.Windows.Forms.Label label2;

private System.Windows.Forms.Button button7;

private System.Windows.Forms.Button button2;

private System.Windows.Forms.Button button3;

/// <summary>

/// Required designer variable.

/// </summary>

private System.ComponentModel.Container components = null;

public Form1()

{

//

// Required for Windows Form Designer support

//

InitializeComponent();

//

// TODO: Add any constructor code after InitializeComponent call

//

button2.Text="Rezervasyon";

button5.Visible=false;

button4.Visible=false;

}

/// <summary>

/// Clean up any resources being used.

/// </summary>

protected override void Dispose( bool disposing )

{

if( disposing )

{

if (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()

{

System.Resources.ResourceManager resources = new
System.Resources.ResourceManager(typeof(Form1));

this.label1 = new System.Windows.Forms.Label();

this.button1 = new System.Windows.Forms.Button();

this.button4 = new System.Windows.Forms.Button();

this.button5 = new System.Windows.Forms.Button();

this.button6 = new System.Windows.Forms.Button();

this.label2 = new System.Windows.Forms.Label();

this.button7 = new System.Windows.Forms.Button();

this.button2 = new System.Windows.Forms.Button();

this.button3 = new System.Windows.Forms.Button();

this.SuspendLayout();

//

// label1

//

this.label1.AccessibleDescription =
resources.GetString("label1.AccessibleDescription" );

this.label1.AccessibleName = resources.GetString("label1.AccessibleName");

this.label1.Anchor =
((System.Windows.Forms.AnchorStyles)(resources.Get Object("label1.Anchor")));

this.label1.AutoSize = ((bool)(resources.GetObject("label1.AutoSize")));

this.label1.BackColor = System.Drawing.Color.RosyBrown;

this.label1.Dock =
((System.Windows.Forms.DockStyle)(resources.GetObj ect("label1.Dock")));

this.label1.Enabled = ((bool)(resources.GetObject("label1.Enabled")));

this.label1.Font =
((System.Drawing.Font)(resources.GetObject("label1 .Font")));

this.label1.ForeColor = System.Drawing.Color.Yellow;

this.label1.Image =
((System.Drawing.Image)(resources.GetObject("label 1.Image")));

this.label1.ImageAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("label1.ImageAlign")));

this.label1.ImageIndex = ((int)(resources.GetObject("label1.ImageIndex")));

this.label1.ImeMode =
((System.Windows.Forms.ImeMode)(resources.GetObjec t("label1.ImeMode")));

this.label1.Location =
((System.Drawing.Point)(resources.GetObject("label 1.Location")));

this.label1.Name = "label1";

this.label1.RightToLeft =
((System.Windows.Forms.RightToLeft)(resources.GetO bject("label1.RightToLeft")));

this.label1.Size =
((System.Drawing.Size)(resources.GetObject("label1 .Size")));

this.label1.TabIndex = ((int)(resources.GetObject("label1.TabIndex")));

this.label1.Text = resources.GetString("label1.Text");

this.label1.TextAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("label1.TextAlign")));

this.label1.Visible = ((bool)(resources.GetObject("label1.Visible")));

//

// button1

//

this.button1.AccessibleDescription =
resources.GetString("button1.AccessibleDescription ");

this.button1.AccessibleName = resources.GetString("button1.AccessibleName");

this.button1.Anchor =
((System.Windows.Forms.AnchorStyles)(resources.Get Object("button1.Anchor")));

this.button1.BackgroundImage =
((System.Drawing.Image)(resources.GetObject("butto n1.BackgroundImage")));

this.button1.Dock =
((System.Windows.Forms.DockStyle)(resources.GetObj ect("button1.Dock")));

this.button1.Enabled = ((bool)(resources.GetObject("button1.Enabled")));

this.button1.FlatStyle =
((System.Windows.Forms.FlatStyle)(resources.GetObj ect("button1.FlatStyle")));

this.button1.Font =
((System.Drawing.Font)(resources.GetObject("button 1.Font")));

this.button1.Image =
((System.Drawing.Image)(resources.GetObject("butto n1.Image")));

this.button1.ImageAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button1.ImageAlign")));

this.button1.ImageIndex =
((int)(resources.GetObject("button1.ImageIndex"))) ;

this.button1.ImeMode =
((System.Windows.Forms.ImeMode)(resources.GetObjec t("button1.ImeMode")));

this.button1.Location =
((System.Drawing.Point)(resources.GetObject("butto n1.Location")));

this.button1.Name = "button1";

this.button1.RightToLeft =
((System.Windows.Forms.RightToLeft)(resources.GetO bject("button1.RightToLeft")));

this.button1.Size =
((System.Drawing.Size)(resources.GetObject("button 1.Size")));

this.button1.TabIndex = ((int)(resources.GetObject("button1.TabIndex")));

this.button1.Text = resources.GetString("button1.Text");

this.button1.TextAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button1.TextAlign")));

this.button1.Visible = ((bool)(resources.GetObject("button1.Visible")));

this.button1.Click += new System.EventHandler(this.button1_Click);

//

// button4

//

this.button4.AccessibleDescription =
resources.GetString("button4.AccessibleDescription ");

this.button4.AccessibleName = resources.GetString("button4.AccessibleName");

this.button4.Anchor =
((System.Windows.Forms.AnchorStyles)(resources.Get Object("button4.Anchor")));

this.button4.BackgroundImage =
((System.Drawing.Image)(resources.GetObject("butto n4.BackgroundImage")));

this.button4.Dock =
((System.Windows.Forms.DockStyle)(resources.GetObj ect("button4.Dock")));

this.button4.Enabled = ((bool)(resources.GetObject("button4.Enabled")));

this.button4.FlatStyle =
((System.Windows.Forms.FlatStyle)(resources.GetObj ect("button4.FlatStyle")));

this.button4.Font =
((System.Drawing.Font)(resources.GetObject("button 4.Font")));

this.button4.Image =
((System.Drawing.Image)(resources.GetObject("butto n4.Image")));

this.button4.ImageAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button4.ImageAlign")));

this.button4.ImageIndex =
((int)(resources.GetObject("button4.ImageIndex"))) ;

this.button4.ImeMode =
((System.Windows.Forms.ImeMode)(resources.GetObjec t("button4.ImeMode")));

this.button4.Location =
((System.Drawing.Point)(resources.GetObject("butto n4.Location")));

this.button4.Name = "button4";

this.button4.RightToLeft =
((System.Windows.Forms.RightToLeft)(resources.GetO bject("button4.RightToLeft")));

this.button4.Size =
((System.Drawing.Size)(resources.GetObject("button 4.Size")));

this.button4.TabIndex = ((int)(resources.GetObject("button4.TabIndex")));

this.button4.Text = resources.GetString("button4.Text");

this.button4.TextAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button4.TextAlign")));

this.button4.Visible = ((bool)(resources.GetObject("button4.Visible")));

this.button4.Click += new System.EventHandler(this.button4_Click);

//

// button5

//

this.button5.AccessibleDescription =
resources.GetString("button5.AccessibleDescription ");

this.button5.AccessibleName = resources.GetString("button5.AccessibleName");

this.button5.Anchor =
((System.Windows.Forms.AnchorStyles)(resources.Get Object("button5.Anchor")));

this.button5.BackgroundImage =
((System.Drawing.Image)(resources.GetObject("butto n5.BackgroundImage")));

this.button5.Dock =
((System.Windows.Forms.DockStyle)(resources.GetObj ect("button5.Dock")));

this.button5.Enabled = ((bool)(resources.GetObject("button5.Enabled")));

this.button5.FlatStyle =
((System.Windows.Forms.FlatStyle)(resources.GetObj ect("button5.FlatStyle")));

this.button5.Font =
((System.Drawing.Font)(resources.GetObject("button 5.Font")));

this.button5.Image =
((System.Drawing.Image)(resources.GetObject("butto n5.Image")));

this.button5.ImageAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button5.ImageAlign")));

this.button5.ImageIndex =
((int)(resources.GetObject("button5.ImageIndex"))) ;

this.button5.ImeMode =
((System.Windows.Forms.ImeMode)(resources.GetObjec t("button5.ImeMode")));

this.button5.Location =
((System.Drawing.Point)(resources.GetObject("butto n5.Location")));

this.button5.Name = "button5";

this.button5.RightToLeft =
((System.Windows.Forms.RightToLeft)(resources.GetO bject("button5.RightToLeft")));

this.button5.Size =
((System.Drawing.Size)(resources.GetObject("button 5.Size")));

this.button5.TabIndex = ((int)(resources.GetObject("button5.TabIndex")));

this.button5.Text = resources.GetString("button5.Text");

this.button5.TextAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button5.TextAlign")));

this.button5.Visible = ((bool)(resources.GetObject("button5.Visible")));

//

// button6

//

this.button6.AccessibleDescription =
resources.GetString("button6.AccessibleDescription ");

this.button6.AccessibleName = resources.GetString("button6.AccessibleName");

this.button6.Anchor =
((System.Windows.Forms.AnchorStyles)(resources.Get Object("button6.Anchor")));

this.button6.BackgroundImage =
((System.Drawing.Image)(resources.GetObject("butto n6.BackgroundImage")));

this.button6.Dock =
((System.Windows.Forms.DockStyle)(resources.GetObj ect("button6.Dock")));

this.button6.Enabled = ((bool)(resources.GetObject("button6.Enabled")));

this.button6.FlatStyle =
((System.Windows.Forms.FlatStyle)(resources.GetObj ect("button6.FlatStyle")));

this.button6.Font =
((System.Drawing.Font)(resources.GetObject("button 6.Font")));

this.button6.Image =
((System.Drawing.Image)(resources.GetObject("butto n6.Image")));

this.button6.ImageAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button6.ImageAlign")));

this.button6.ImageIndex =
((int)(resources.GetObject("button6.ImageIndex"))) ;

this.button6.ImeMode =
((System.Windows.Forms.ImeMode)(resources.GetObjec t("button6.ImeMode")));

this.button6.Location =
((System.Drawing.Point)(resources.GetObject("butto n6.Location")));

this.button6.Name = "button6";

this.button6.RightToLeft =
((System.Windows.Forms.RightToLeft)(resources.GetO bject("button6.RightToLeft")));

this.button6.Size =
((System.Drawing.Size)(resources.GetObject("button 6.Size")));

this.button6.TabIndex = ((int)(resources.GetObject("button6.TabIndex")));

this.button6.Text = resources.GetString("button6.Text");

this.button6.TextAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button6.TextAlign")));

this.button6.Visible = ((bool)(resources.GetObject("button6.Visible")));

//

// label2

//

this.label2.AccessibleDescription =
resources.GetString("label2.AccessibleDescription" );

this.label2.AccessibleName = resources.GetString("label2.AccessibleName");

this.label2.Anchor =
((System.Windows.Forms.AnchorStyles)(resources.Get Object("label2.Anchor")));

this.label2.AutoSize = ((bool)(resources.GetObject("label2.AutoSize")));

this.label2.BackColor = System.Drawing.Color.RosyBrown;

this.label2.Dock =
((System.Windows.Forms.DockStyle)(resources.GetObj ect("label2.Dock")));

this.label2.Enabled = ((bool)(resources.GetObject("label2.Enabled")));

this.label2.Font =
((System.Drawing.Font)(resources.GetObject("label2 .Font")));

this.label2.ForeColor = System.Drawing.Color.Yellow;

this.label2.Image =
((System.Drawing.Image)(resources.GetObject("label 2.Image")));

this.label2.ImageAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("label2.ImageAlign")));

this.label2.ImageIndex = ((int)(resources.GetObject("label2.ImageIndex")));

this.label2.ImeMode =
((System.Windows.Forms.ImeMode)(resources.GetObjec t("label2.ImeMode")));

this.label2.Location =
((System.Drawing.Point)(resources.GetObject("label 2.Location")));

this.label2.Name = "label2";

this.label2.RightToLeft =
((System.Windows.Forms.RightToLeft)(resources.GetO bject("label2.RightToLeft")));

this.label2.Size =
((System.Drawing.Size)(resources.GetObject("label2 .Size")));

this.label2.TabIndex = ((int)(resources.GetObject("label2.TabIndex")));

this.label2.Text = resources.GetString("label2.Text");

this.label2.TextAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("label2.TextAlign")));

this.label2.Visible = ((bool)(resources.GetObject("label2.Visible")));

//

// button7

//

this.button7.AccessibleDescription =
resources.GetString("button7.AccessibleDescription ");

this.button7.AccessibleName = resources.GetString("button7.AccessibleName");

this.button7.Anchor =
((System.Windows.Forms.AnchorStyles)(resources.Get Object("button7.Anchor")));

this.button7.BackgroundImage =
((System.Drawing.Image)(resources.GetObject("butto n7.BackgroundImage")));

this.button7.Dock =
((System.Windows.Forms.DockStyle)(resources.GetObj ect("button7.Dock")));

this.button7.Enabled = ((bool)(resources.GetObject("button7.Enabled")));

this.button7.FlatStyle =
((System.Windows.Forms.FlatStyle)(resources.GetObj ect("button7.FlatStyle")));

this.button7.Font =
((System.Drawing.Font)(resources.GetObject("button 7.Font")));

this.button7.Image =
((System.Drawing.Image)(resources.GetObject("butto n7.Image")));

this.button7.ImageAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button7.ImageAlign")));

this.button7.ImageIndex =
((int)(resources.GetObject("button7.ImageIndex"))) ;

this.button7.ImeMode =
((System.Windows.Forms.ImeMode)(resources.GetObjec t("button7.ImeMode")));

this.button7.Location =
((System.Drawing.Point)(resources.GetObject("butto n7.Location")));

this.button7.Name = "button7";

this.button7.RightToLeft =
((System.Windows.Forms.RightToLeft)(resources.GetO bject("button7.RightToLeft")));

this.button7.Size =
((System.Drawing.Size)(resources.GetObject("button 7.Size")));

this.button7.TabIndex = ((int)(resources.GetObject("button7.TabIndex")));

this.button7.Text = resources.GetString("button7.Text");

this.button7.TextAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button7.TextAlign")));

this.button7.Visible = ((bool)(resources.GetObject("button7.Visible")));

//

// button2

//

this.button2.AccessibleDescription =
resources.GetString("button2.AccessibleDescription ");

this.button2.AccessibleName = resources.GetString("button2.AccessibleName");

this.button2.Anchor =
((System.Windows.Forms.AnchorStyles)(resources.Get Object("button2.Anchor")));

this.button2.BackgroundImage =
((System.Drawing.Image)(resources.GetObject("butto n2.BackgroundImage")));

this.button2.Dock =
((System.Windows.Forms.DockStyle)(resources.GetObj ect("button2.Dock")));

this.button2.Enabled = ((bool)(resources.GetObject("button2.Enabled")));

this.button2.FlatStyle =
((System.Windows.Forms.FlatStyle)(resources.GetObj ect("button2.FlatStyle")));

this.button2.Font =
((System.Drawing.Font)(resources.GetObject("button 2.Font")));

this.button2.Image =
((System.Drawing.Image)(resources.GetObject("butto n2.Image")));

this.button2.ImageAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button2.ImageAlign")));

this.button2.ImageIndex =
((int)(resources.GetObject("button2.ImageIndex"))) ;

this.button2.ImeMode =
((System.Windows.Forms.ImeMode)(resources.GetObjec t("button2.ImeMode")));

this.button2.Location =
((System.Drawing.Point)(resources.GetObject("butto n2.Location")));

this.button2.Name = "button2";

this.button2.RightToLeft =
((System.Windows.Forms.RightToLeft)(resources.GetO bject("button2.RightToLeft")));

this.button2.Size =
((System.Drawing.Size)(resources.GetObject("button 2.Size")));

this.button2.TabIndex = ((int)(resources.GetObject("button2.TabIndex")));

this.button2.Text = resources.GetString("button2.Text");

this.button2.TextAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button2.TextAlign")));

this.button2.Visible = ((bool)(resources.GetObject("button2.Visible")));

this.button2.Click += new System.EventHandler(this.button2_Click_1);

//

// button3

//

this.button3.AccessibleDescription =
resources.GetString("button3.AccessibleDescription ");

this.button3.AccessibleName = resources.GetString("button3.AccessibleName");

this.button3.Anchor =
((System.Windows.Forms.AnchorStyles)(resources.Get Object("button3.Anchor")));

this.button3.BackgroundImage =
((System.Drawing.Image)(resources.GetObject("butto n3.BackgroundImage")));

this.button3.Dock =
((System.Windows.Forms.DockStyle)(resources.GetObj ect("button3.Dock")));

this.button3.Enabled = ((bool)(resources.GetObject("button3.Enabled")));

this.button3.FlatStyle =
((System.Windows.Forms.FlatStyle)(resources.GetObj ect("button3.FlatStyle")));

this.button3.Font =
((System.Drawing.Font)(resources.GetObject("button 3.Font")));

this.button3.Image =
((System.Drawing.Image)(resources.GetObject("butto n3.Image")));

this.button3.ImageAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button3.ImageAlign")));

this.button3.ImageIndex =
((int)(resources.GetObject("button3.ImageIndex"))) ;

this.button3.ImeMode =
((System.Windows.Forms.ImeMode)(resources.GetObjec t("button3.ImeMode")));

this.button3.Location =
((System.Drawing.Point)(resources.GetObject("butto n3.Location")));

this.button3.Name = "button3";

this.button3.RightToLeft =
((System.Windows.Forms.RightToLeft)(resources.GetO bject("button3.RightToLeft")));

this.button3.Size =
((System.Drawing.Size)(resources.GetObject("button 3.Size")));

this.button3.TabIndex = ((int)(resources.GetObject("button3.TabIndex")));

this.button3.Text = resources.GetString("button3.Text");

this.button3.TextAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button3.TextAlign")));

this.button3.Visible = ((bool)(resources.GetObject("button3.Visible")));

//

// Form1

//

this.AccessibleDescription =
resources.GetString("$this.AccessibleDescription") ;

this.AccessibleName = resources.GetString("$this.AccessibleName");

this.AutoScaleBaseSize =
((System.Drawing.Size)(resources.GetObject("$this. AutoScaleBaseSize")));

this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));

this.AutoScrollMargin =
((System.Drawing.Size)(resources.GetObject("$this. AutoScrollMargin")));

this.AutoScrollMinSize =
((System.Drawing.Size)(resources.GetObject("$this. AutoScrollMinSize")));

this.BackgroundImage =
((System.Drawing.Image)(resources.GetObject("$this .BackgroundImage")));

this.ClientSize =
((System.Drawing.Size)(resources.GetObject("$this. ClientSize")));

this.Controls.Add(this.button3);

this.Controls.Add(this.button2);

this.Controls.Add(this.button6);

this.Controls.Add(this.button5);

this.Controls.Add(this.button4);

this.Controls.Add(this.button1);

this.Controls.Add(this.label1);

this.Controls.Add(this.label2);

this.Controls.Add(this.button7);

this.Enabled = ((bool)(resources.GetObject("$this.Enabled")));

this.Font = ((System.Drawing.Font)(resources.GetObject("$this. Font")));

this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this. Icon")));

this.ImeMode =
((System.Windows.Forms.ImeMode)(resources.GetObjec t("$this.ImeMode")));

this.Location =
((System.Drawing.Point)(resources.GetObject("$this .Location")));

this.MaximumSize =
((System.Drawing.Size)(resources.GetObject("$this. MaximumSize")));

this.MinimumSize =
((System.Drawing.Size)(resources.GetObject("$this. MinimumSize")));

this.Name = "Form1";

this.RightToLeft =
((System.Windows.Forms.RightToLeft)(resources.GetO bject("$this.RightToLeft")));

this.StartPosition =
((System.Windows.Forms.FormStartPosition)(resource s.GetObject("$this.StartPosition")));

this.Text = resources.GetString("$this.Text");

this.ResumeLayout(false);

}

#endregion

/// <summary>

/// The main entry point for the application.

/// </summary>

[STAThread]

static void Main()

{

Form1 form1=new Form1();

//Application.Run(new Form1());

Application.Run(form1);

}

private void menuItem2_Click(object sender, System.EventArgs e)

{
}

private void button1_Click(object sender, System.EventArgs e)

{

tpsF=new TicketPartSelectionForm();

tpsF.Show();

//bltler=new Biletler();

//bltler.Show();

}

private void button4_Click(object sender, System.EventArgs e)

{

//ctP=new CustomerTravelProcesses();

//ctP.Show();

}

private void button2_Click(object sender, System.EventArgs e)

{

//cisF=new CustomerInfoSelectionForm();

//cisF.Show();

}

private void button8_Click(object sender, System.EventArgs e)

{
}

public void OpenTicketDesign()

{

tpF=new TicketPrintingForm();

tdF=new TicketsDatabaseForm();

tpF.label1.Text=tdF.ticketToPrintRecordsDataSet1.T ables[0].Columns["Airline
Data"].ColumnName;

tpF.label2.Text=tdF.ticketToPrintRecordsDataSet1.T ables[0].Columns["AllowA"].ColumnName;

tpF.label3.Text=tdF.ticketToPrintRecordsDataSet1.T ables[0].Columns["AllowB"].ColumnName;

tpF.label4.Text=tdF.ticketToPrintRecordsDataSet1.T ables[0].Columns["Baggage
Chk/UnChkA1"].ColumnName;

tpF.label5.Text=tdF.ticketToPrintRecordsDataSet1.T ables[0].Columns["Baggage
Chk/UnChkA2"].ColumnName;

tpF.label6.Text=tdF.ticketToPrintRecordsDataSet1.T ables[0].Columns["Baggage
Chk/UnChkB1"].ColumnName;

tpF.label7.Text=tdF.ticketToPrintRecordsDataSet1.T ables[0].Columns["Baggage
Chk/UnChkB2"].ColumnName;

tpF.label8.Text=tdF.ticketToPrintRecordsDataSet1.T ables[0].Columns["CarierA"].ColumnName;

tpF.label9.Text=tdF.ticketToPrintRecordsDataSet1.T ables[0].Columns["Carrier1"].ColumnName;

tpF.label10.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Carrier2"].ColumnName;

tpF.label11.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Carrier3"].ColumnName;

tpF.label12.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Carrier4"].ColumnName;

tpF.label13.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["CarrierB"].ColumnName;

tpF.label14.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["ClassA"].ColumnName;

tpF.label15.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["ClassB"].ColumnName;

tpF.label16.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Date
And Place Of Issue"].ColumnName;

tpF.label17.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["DateA"].ColumnName;

tpF.label18.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["DateB"].ColumnName;

tpF.label19.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Destination"].ColumnName;

tpF.label20.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Fare"].ColumnName;

tpF.label21.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Fare
BasisA"].ColumnName;

tpF.label22.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Fare
BasisB"].ColumnName;

tpF.label23.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Form Of
Payment"].ColumnName;

tpF.label24.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["From"].ColumnName;

tpF.label25.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Location1"].ColumnName;

tpF.label26.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Location2"].ColumnName;

tpF.label27.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Location3"].ColumnName;

tpF.label28.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Location4"].ColumnName;

tpF.label29.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Mr/Mrs"].ColumnName;

tpF.label30.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Name"].ColumnName;

tpF.label31.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Not
Valid AfterA"].ColumnName;

tpF.label32.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Not
Valid AfterB"].ColumnName;

tpF.label33.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Not
Valid BeforeA"].ColumnName;

tpF.label34.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Not
Valid BeforeB"].ColumnName;

tpF.label35.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Passport
Number"].ColumnName;

tpF.label36.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["StatusA"].ColumnName;

tpF.label37.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["StatusB"].ColumnName;

tpF.label38.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Surname"].ColumnName;

tpF.label39.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["TimeA"].ColumnName;

tpF.label40.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["TimeB"].ColumnName;

tpF.label41.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["To"].ColumnName;

tpF.label42.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["To1"].ColumnName;

tpF.label43.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Total"].ColumnName;

//tpF.label44.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns[43].ColumnName;

//tpF.label45.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns[44].ColumnName;

//tpF.label46.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns[45].ColumnName;

//tpF.label1.Text=tdF.ticketToPrintRecordsDataSet1.T ables[0].Columns[46].ColumnName;

tpF.Show();

}

private void button9_Click(object sender, System.EventArgs e)

{

//OpenTicketDesign();

}

private void button10_Click(object sender, System.EventArgs e)

{
}

private void button2_Click_1(object sender, System.EventArgs e)

{

RezervationForm rF=new RezervationForm();

rF.Show();

}

private void button3_Click(object sender, System.EventArgs e)

{
}

}

}
Nov 17 '05 #3

P: n/a
Try dont change in design mode the text property, and put in the codebehind
when you Initialize the component:

this.Button.Text="Hello World";

"Arif Çimen" wrote:
Here My Codes:



using System;

using System.Drawing;

using System.Collections;

using System.ComponentModel;

using System.Windows.Forms;

using System.Data;

namespace Cosmo

{

/// <summary>

/// Summary description for Form1.

/// </summary>

public class Form1 : System.Windows.Forms.Form

{

public TicketPartSelectionForm tpsF;

public TicketsDatabaseForm tdF;

public TicketPrintingForm tpF;

public AboutBoxForm abF;

public CustomerInfoSelectionForm cisF;

public CustomerTravelProcesses ctP;

public Biletler bltler;

private System.Windows.Forms.Label label1;

private System.Windows.Forms.Button button1;

private System.Windows.Forms.Button button4;

private System.Windows.Forms.Button button5;

private System.Windows.Forms.Button button6;

private System.Windows.Forms.Label label2;

private System.Windows.Forms.Button button7;

private System.Windows.Forms.Button button2;

private System.Windows.Forms.Button button3;

/// <summary>

/// Required designer variable.

/// </summary>

private System.ComponentModel.Container components = null;

public Form1()

{

//

// Required for Windows Form Designer support

//

InitializeComponent();

//

// TODO: Add any constructor code after InitializeComponent call

//

button2.Text="Rezervasyon";

button5.Visible=false;

button4.Visible=false;

}

/// <summary>

/// Clean up any resources being used.

/// </summary>

protected override void Dispose( bool disposing )

{

if( disposing )

{

if (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()

{

System.Resources.ResourceManager resources = new
System.Resources.ResourceManager(typeof(Form1));

this.label1 = new System.Windows.Forms.Label();

this.button1 = new System.Windows.Forms.Button();

this.button4 = new System.Windows.Forms.Button();

this.button5 = new System.Windows.Forms.Button();

this.button6 = new System.Windows.Forms.Button();

this.label2 = new System.Windows.Forms.Label();

this.button7 = new System.Windows.Forms.Button();

this.button2 = new System.Windows.Forms.Button();

this.button3 = new System.Windows.Forms.Button();

this.SuspendLayout();

//

// label1

//

this.label1.AccessibleDescription =
resources.GetString("label1.AccessibleDescription" );

this.label1.AccessibleName = resources.GetString("label1.AccessibleName");

this.label1.Anchor =
((System.Windows.Forms.AnchorStyles)(resources.Get Object("label1.Anchor")));

this.label1.AutoSize = ((bool)(resources.GetObject("label1.AutoSize")));

this.label1.BackColor = System.Drawing.Color.RosyBrown;

this.label1.Dock =
((System.Windows.Forms.DockStyle)(resources.GetObj ect("label1.Dock")));

this.label1.Enabled = ((bool)(resources.GetObject("label1.Enabled")));

this.label1.Font =
((System.Drawing.Font)(resources.GetObject("label1 .Font")));

this.label1.ForeColor = System.Drawing.Color.Yellow;

this.label1.Image =
((System.Drawing.Image)(resources.GetObject("label 1.Image")));

this.label1.ImageAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("label1.ImageAlign")));

this.label1.ImageIndex = ((int)(resources.GetObject("label1.ImageIndex")));

this.label1.ImeMode =
((System.Windows.Forms.ImeMode)(resources.GetObjec t("label1.ImeMode")));

this.label1.Location =
((System.Drawing.Point)(resources.GetObject("label 1.Location")));

this.label1.Name = "label1";

this.label1.RightToLeft =
((System.Windows.Forms.RightToLeft)(resources.GetO bject("label1.RightToLeft")));

this.label1.Size =
((System.Drawing.Size)(resources.GetObject("label1 .Size")));

this.label1.TabIndex = ((int)(resources.GetObject("label1.TabIndex")));

this.label1.Text = resources.GetString("label1.Text");

this.label1.TextAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("label1.TextAlign")));

this.label1.Visible = ((bool)(resources.GetObject("label1.Visible")));

//

// button1

//

this.button1.AccessibleDescription =
resources.GetString("button1.AccessibleDescription ");

this.button1.AccessibleName = resources.GetString("button1.AccessibleName");

this.button1.Anchor =
((System.Windows.Forms.AnchorStyles)(resources.Get Object("button1.Anchor")));

this.button1.BackgroundImage =
((System.Drawing.Image)(resources.GetObject("butto n1.BackgroundImage")));

this.button1.Dock =
((System.Windows.Forms.DockStyle)(resources.GetObj ect("button1.Dock")));

this.button1.Enabled = ((bool)(resources.GetObject("button1.Enabled")));

this.button1.FlatStyle =
((System.Windows.Forms.FlatStyle)(resources.GetObj ect("button1.FlatStyle")));

this.button1.Font =
((System.Drawing.Font)(resources.GetObject("button 1.Font")));

this.button1.Image =
((System.Drawing.Image)(resources.GetObject("butto n1.Image")));

this.button1.ImageAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button1.ImageAlign")));

this.button1.ImageIndex =
((int)(resources.GetObject("button1.ImageIndex"))) ;

this.button1.ImeMode =
((System.Windows.Forms.ImeMode)(resources.GetObjec t("button1.ImeMode")));

this.button1.Location =
((System.Drawing.Point)(resources.GetObject("butto n1.Location")));

this.button1.Name = "button1";

this.button1.RightToLeft =
((System.Windows.Forms.RightToLeft)(resources.GetO bject("button1.RightToLeft")));

this.button1.Size =
((System.Drawing.Size)(resources.GetObject("button 1.Size")));

this.button1.TabIndex = ((int)(resources.GetObject("button1.TabIndex")));

this.button1.Text = resources.GetString("button1.Text");

this.button1.TextAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button1.TextAlign")));

this.button1.Visible = ((bool)(resources.GetObject("button1.Visible")));

this.button1.Click += new System.EventHandler(this.button1_Click);

//

// button4

//

this.button4.AccessibleDescription =
resources.GetString("button4.AccessibleDescription ");

this.button4.AccessibleName = resources.GetString("button4.AccessibleName");

this.button4.Anchor =
((System.Windows.Forms.AnchorStyles)(resources.Get Object("button4.Anchor")));

this.button4.BackgroundImage =
((System.Drawing.Image)(resources.GetObject("butto n4.BackgroundImage")));

this.button4.Dock =
((System.Windows.Forms.DockStyle)(resources.GetObj ect("button4.Dock")));

this.button4.Enabled = ((bool)(resources.GetObject("button4.Enabled")));

this.button4.FlatStyle =
((System.Windows.Forms.FlatStyle)(resources.GetObj ect("button4.FlatStyle")));

this.button4.Font =
((System.Drawing.Font)(resources.GetObject("button 4.Font")));

this.button4.Image =
((System.Drawing.Image)(resources.GetObject("butto n4.Image")));

this.button4.ImageAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button4.ImageAlign")));

this.button4.ImageIndex =
((int)(resources.GetObject("button4.ImageIndex"))) ;

this.button4.ImeMode =
((System.Windows.Forms.ImeMode)(resources.GetObjec t("button4.ImeMode")));

this.button4.Location =
((System.Drawing.Point)(resources.GetObject("butto n4.Location")));

this.button4.Name = "button4";

this.button4.RightToLeft =
((System.Windows.Forms.RightToLeft)(resources.GetO bject("button4.RightToLeft")));

this.button4.Size =
((System.Drawing.Size)(resources.GetObject("button 4.Size")));

this.button4.TabIndex = ((int)(resources.GetObject("button4.TabIndex")));

this.button4.Text = resources.GetString("button4.Text");

this.button4.TextAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button4.TextAlign")));

this.button4.Visible = ((bool)(resources.GetObject("button4.Visible")));

this.button4.Click += new System.EventHandler(this.button4_Click);

//

// button5

//

this.button5.AccessibleDescription =
resources.GetString("button5.AccessibleDescription ");

this.button5.AccessibleName = resources.GetString("button5.AccessibleName");

this.button5.Anchor =
((System.Windows.Forms.AnchorStyles)(resources.Get Object("button5.Anchor")));

this.button5.BackgroundImage =
((System.Drawing.Image)(resources.GetObject("butto n5.BackgroundImage")));

this.button5.Dock =
((System.Windows.Forms.DockStyle)(resources.GetObj ect("button5.Dock")));

this.button5.Enabled = ((bool)(resources.GetObject("button5.Enabled")));

this.button5.FlatStyle =
((System.Windows.Forms.FlatStyle)(resources.GetObj ect("button5.FlatStyle")));

this.button5.Font =
((System.Drawing.Font)(resources.GetObject("button 5.Font")));

this.button5.Image =
((System.Drawing.Image)(resources.GetObject("butto n5.Image")));

this.button5.ImageAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button5.ImageAlign")));

this.button5.ImageIndex =
((int)(resources.GetObject("button5.ImageIndex"))) ;

this.button5.ImeMode =
((System.Windows.Forms.ImeMode)(resources.GetObjec t("button5.ImeMode")));

this.button5.Location =
((System.Drawing.Point)(resources.GetObject("butto n5.Location")));

this.button5.Name = "button5";

this.button5.RightToLeft =
((System.Windows.Forms.RightToLeft)(resources.GetO bject("button5.RightToLeft")));

this.button5.Size =
((System.Drawing.Size)(resources.GetObject("button 5.Size")));

this.button5.TabIndex = ((int)(resources.GetObject("button5.TabIndex")));

this.button5.Text = resources.GetString("button5.Text");

this.button5.TextAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button5.TextAlign")));

this.button5.Visible = ((bool)(resources.GetObject("button5.Visible")));

//

// button6

//

this.button6.AccessibleDescription =
resources.GetString("button6.AccessibleDescription ");

this.button6.AccessibleName = resources.GetString("button6.AccessibleName");

this.button6.Anchor =
((System.Windows.Forms.AnchorStyles)(resources.Get Object("button6.Anchor")));

this.button6.BackgroundImage =
((System.Drawing.Image)(resources.GetObject("butto n6.BackgroundImage")));

this.button6.Dock =
((System.Windows.Forms.DockStyle)(resources.GetObj ect("button6.Dock")));

this.button6.Enabled = ((bool)(resources.GetObject("button6.Enabled")));

this.button6.FlatStyle =
((System.Windows.Forms.FlatStyle)(resources.GetObj ect("button6.FlatStyle")));

this.button6.Font =
((System.Drawing.Font)(resources.GetObject("button 6.Font")));

this.button6.Image =
((System.Drawing.Image)(resources.GetObject("butto n6.Image")));

this.button6.ImageAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button6.ImageAlign")));

this.button6.ImageIndex =
((int)(resources.GetObject("button6.ImageIndex"))) ;

this.button6.ImeMode =
((System.Windows.Forms.ImeMode)(resources.GetObjec t("button6.ImeMode")));

this.button6.Location =
((System.Drawing.Point)(resources.GetObject("butto n6.Location")));

this.button6.Name = "button6";

this.button6.RightToLeft =
((System.Windows.Forms.RightToLeft)(resources.GetO bject("button6.RightToLeft")));

this.button6.Size =
((System.Drawing.Size)(resources.GetObject("button 6.Size")));

this.button6.TabIndex = ((int)(resources.GetObject("button6.TabIndex")));

this.button6.Text = resources.GetString("button6.Text");

this.button6.TextAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button6.TextAlign")));

this.button6.Visible = ((bool)(resources.GetObject("button6.Visible")));

//

// label2

//

this.label2.AccessibleDescription =
resources.GetString("label2.AccessibleDescription" );

this.label2.AccessibleName = resources.GetString("label2.AccessibleName");

this.label2.Anchor =
((System.Windows.Forms.AnchorStyles)(resources.Get Object("label2.Anchor")));

this.label2.AutoSize = ((bool)(resources.GetObject("label2.AutoSize")));

this.label2.BackColor = System.Drawing.Color.RosyBrown;

this.label2.Dock =
((System.Windows.Forms.DockStyle)(resources.GetObj ect("label2.Dock")));

this.label2.Enabled = ((bool)(resources.GetObject("label2.Enabled")));

this.label2.Font =
((System.Drawing.Font)(resources.GetObject("label2 .Font")));

this.label2.ForeColor = System.Drawing.Color.Yellow;

this.label2.Image =
((System.Drawing.Image)(resources.GetObject("label 2.Image")));

this.label2.ImageAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("label2.ImageAlign")));

this.label2.ImageIndex = ((int)(resources.GetObject("label2.ImageIndex")));

this.label2.ImeMode =
((System.Windows.Forms.ImeMode)(resources.GetObjec t("label2.ImeMode")));

this.label2.Location =
((System.Drawing.Point)(resources.GetObject("label 2.Location")));

this.label2.Name = "label2";

this.label2.RightToLeft =
((System.Windows.Forms.RightToLeft)(resources.GetO bject("label2.RightToLeft")));

this.label2.Size =
((System.Drawing.Size)(resources.GetObject("label2 .Size")));

this.label2.TabIndex = ((int)(resources.GetObject("label2.TabIndex")));

this.label2.Text = resources.GetString("label2.Text");

this.label2.TextAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("label2.TextAlign")));

this.label2.Visible = ((bool)(resources.GetObject("label2.Visible")));

//

// button7

//

this.button7.AccessibleDescription =
resources.GetString("button7.AccessibleDescription ");

this.button7.AccessibleName = resources.GetString("button7.AccessibleName");

this.button7.Anchor =
((System.Windows.Forms.AnchorStyles)(resources.Get Object("button7.Anchor")));

this.button7.BackgroundImage =
((System.Drawing.Image)(resources.GetObject("butto n7.BackgroundImage")));

this.button7.Dock =
((System.Windows.Forms.DockStyle)(resources.GetObj ect("button7.Dock")));

this.button7.Enabled = ((bool)(resources.GetObject("button7.Enabled")));

this.button7.FlatStyle =
((System.Windows.Forms.FlatStyle)(resources.GetObj ect("button7.FlatStyle")));

this.button7.Font =
((System.Drawing.Font)(resources.GetObject("button 7.Font")));

this.button7.Image =
((System.Drawing.Image)(resources.GetObject("butto n7.Image")));

this.button7.ImageAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button7.ImageAlign")));

this.button7.ImageIndex =
((int)(resources.GetObject("button7.ImageIndex"))) ;

this.button7.ImeMode =
((System.Windows.Forms.ImeMode)(resources.GetObjec t("button7.ImeMode")));

this.button7.Location =
((System.Drawing.Point)(resources.GetObject("butto n7.Location")));

this.button7.Name = "button7";

this.button7.RightToLeft =
((System.Windows.Forms.RightToLeft)(resources.GetO bject("button7.RightToLeft")));

this.button7.Size =
((System.Drawing.Size)(resources.GetObject("button 7.Size")));

this.button7.TabIndex = ((int)(resources.GetObject("button7.TabIndex")));

this.button7.Text = resources.GetString("button7.Text");

this.button7.TextAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button7.TextAlign")));

this.button7.Visible = ((bool)(resources.GetObject("button7.Visible")));

//

// button2

//

this.button2.AccessibleDescription =
resources.GetString("button2.AccessibleDescription ");

this.button2.AccessibleName = resources.GetString("button2.AccessibleName");

this.button2.Anchor =
((System.Windows.Forms.AnchorStyles)(resources.Get Object("button2.Anchor")));

this.button2.BackgroundImage =
((System.Drawing.Image)(resources.GetObject("butto n2.BackgroundImage")));

this.button2.Dock =
((System.Windows.Forms.DockStyle)(resources.GetObj ect("button2.Dock")));

this.button2.Enabled = ((bool)(resources.GetObject("button2.Enabled")));

this.button2.FlatStyle =
((System.Windows.Forms.FlatStyle)(resources.GetObj ect("button2.FlatStyle")));

this.button2.Font =
((System.Drawing.Font)(resources.GetObject("button 2.Font")));

this.button2.Image =
((System.Drawing.Image)(resources.GetObject("butto n2.Image")));

this.button2.ImageAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button2.ImageAlign")));

this.button2.ImageIndex =
((int)(resources.GetObject("button2.ImageIndex"))) ;

this.button2.ImeMode =
((System.Windows.Forms.ImeMode)(resources.GetObjec t("button2.ImeMode")));

this.button2.Location =
((System.Drawing.Point)(resources.GetObject("butto n2.Location")));

this.button2.Name = "button2";

this.button2.RightToLeft =
((System.Windows.Forms.RightToLeft)(resources.GetO bject("button2.RightToLeft")));

this.button2.Size =
((System.Drawing.Size)(resources.GetObject("button 2.Size")));

this.button2.TabIndex = ((int)(resources.GetObject("button2.TabIndex")));

this.button2.Text = resources.GetString("button2.Text");

this.button2.TextAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button2.TextAlign")));

this.button2.Visible = ((bool)(resources.GetObject("button2.Visible")));

this.button2.Click += new System.EventHandler(this.button2_Click_1);

//

// button3

//

this.button3.AccessibleDescription =
resources.GetString("button3.AccessibleDescription ");

this.button3.AccessibleName = resources.GetString("button3.AccessibleName");

this.button3.Anchor =
((System.Windows.Forms.AnchorStyles)(resources.Get Object("button3.Anchor")));

this.button3.BackgroundImage =
((System.Drawing.Image)(resources.GetObject("butto n3.BackgroundImage")));

this.button3.Dock =
((System.Windows.Forms.DockStyle)(resources.GetObj ect("button3.Dock")));

this.button3.Enabled = ((bool)(resources.GetObject("button3.Enabled")));

this.button3.FlatStyle =
((System.Windows.Forms.FlatStyle)(resources.GetObj ect("button3.FlatStyle")));

this.button3.Font =
((System.Drawing.Font)(resources.GetObject("button 3.Font")));

this.button3.Image =
((System.Drawing.Image)(resources.GetObject("butto n3.Image")));

this.button3.ImageAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button3.ImageAlign")));

this.button3.ImageIndex =
((int)(resources.GetObject("button3.ImageIndex"))) ;

this.button3.ImeMode =
((System.Windows.Forms.ImeMode)(resources.GetObjec t("button3.ImeMode")));

this.button3.Location =
((System.Drawing.Point)(resources.GetObject("butto n3.Location")));

this.button3.Name = "button3";

this.button3.RightToLeft =
((System.Windows.Forms.RightToLeft)(resources.GetO bject("button3.RightToLeft")));

this.button3.Size =
((System.Drawing.Size)(resources.GetObject("button 3.Size")));

this.button3.TabIndex = ((int)(resources.GetObject("button3.TabIndex")));

this.button3.Text = resources.GetString("button3.Text");

this.button3.TextAlign =
((System.Drawing.ContentAlignment)(resources.GetOb ject("button3.TextAlign")));

this.button3.Visible = ((bool)(resources.GetObject("button3.Visible")));

//

// Form1

//

this.AccessibleDescription =
resources.GetString("$this.AccessibleDescription") ;

this.AccessibleName = resources.GetString("$this.AccessibleName");

this.AutoScaleBaseSize =
((System.Drawing.Size)(resources.GetObject("$this. AutoScaleBaseSize")));

this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));

this.AutoScrollMargin =
((System.Drawing.Size)(resources.GetObject("$this. AutoScrollMargin")));

this.AutoScrollMinSize =
((System.Drawing.Size)(resources.GetObject("$this. AutoScrollMinSize")));

this.BackgroundImage =
((System.Drawing.Image)(resources.GetObject("$this .BackgroundImage")));

this.ClientSize =
((System.Drawing.Size)(resources.GetObject("$this. ClientSize")));

this.Controls.Add(this.button3);

this.Controls.Add(this.button2);

this.Controls.Add(this.button6);

this.Controls.Add(this.button5);

this.Controls.Add(this.button4);

this.Controls.Add(this.button1);

this.Controls.Add(this.label1);

this.Controls.Add(this.label2);

this.Controls.Add(this.button7);

this.Enabled = ((bool)(resources.GetObject("$this.Enabled")));

this.Font = ((System.Drawing.Font)(resources.GetObject("$this. Font")));

this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this. Icon")));

this.ImeMode =
((System.Windows.Forms.ImeMode)(resources.GetObjec t("$this.ImeMode")));

this.Location =
((System.Drawing.Point)(resources.GetObject("$this .Location")));

this.MaximumSize =
((System.Drawing.Size)(resources.GetObject("$this. MaximumSize")));

this.MinimumSize =
((System.Drawing.Size)(resources.GetObject("$this. MinimumSize")));

this.Name = "Form1";

this.RightToLeft =
((System.Windows.Forms.RightToLeft)(resources.GetO bject("$this.RightToLeft")));

this.StartPosition =
((System.Windows.Forms.FormStartPosition)(resource s.GetObject("$this.StartPosition")));

this.Text = resources.GetString("$this.Text");

this.ResumeLayout(false);

}

#endregion

/// <summary>

/// The main entry point for the application.

/// </summary>

[STAThread]

static void Main()

{

Form1 form1=new Form1();

//Application.Run(new Form1());

Application.Run(form1);

}

private void menuItem2_Click(object sender, System.EventArgs e)

{
}

private void button1_Click(object sender, System.EventArgs e)

{

tpsF=new TicketPartSelectionForm();

tpsF.Show();

//bltler=new Biletler();

//bltler.Show();

}

private void button4_Click(object sender, System.EventArgs e)

{

//ctP=new CustomerTravelProcesses();

//ctP.Show();

}

private void button2_Click(object sender, System.EventArgs e)

{

//cisF=new CustomerInfoSelectionForm();

//cisF.Show();

}

private void button8_Click(object sender, System.EventArgs e)

{
}

public void OpenTicketDesign()

{

tpF=new TicketPrintingForm();

tdF=new TicketsDatabaseForm();

tpF.label1.Text=tdF.ticketToPrintRecordsDataSet1.T ables[0].Columns["Airline
Data"].ColumnName;

tpF.label2.Text=tdF.ticketToPrintRecordsDataSet1.T ables[0].Columns["AllowA"].ColumnName;

tpF.label3.Text=tdF.ticketToPrintRecordsDataSet1.T ables[0].Columns["AllowB"].ColumnName;

tpF.label4.Text=tdF.ticketToPrintRecordsDataSet1.T ables[0].Columns["Baggage
Chk/UnChkA1"].ColumnName;

tpF.label5.Text=tdF.ticketToPrintRecordsDataSet1.T ables[0].Columns["Baggage
Chk/UnChkA2"].ColumnName;

tpF.label6.Text=tdF.ticketToPrintRecordsDataSet1.T ables[0].Columns["Baggage
Chk/UnChkB1"].ColumnName;

tpF.label7.Text=tdF.ticketToPrintRecordsDataSet1.T ables[0].Columns["Baggage
Chk/UnChkB2"].ColumnName;

tpF.label8.Text=tdF.ticketToPrintRecordsDataSet1.T ables[0].Columns["CarierA"].ColumnName;

tpF.label9.Text=tdF.ticketToPrintRecordsDataSet1.T ables[0].Columns["Carrier1"].ColumnName;

tpF.label10.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Carrier2"].ColumnName;

tpF.label11.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Carrier3"].ColumnName;

tpF.label12.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Carrier4"].ColumnName;

tpF.label13.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["CarrierB"].ColumnName;

tpF.label14.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["ClassA"].ColumnName;

tpF.label15.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["ClassB"].ColumnName;

tpF.label16.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Date
And Place Of Issue"].ColumnName;

tpF.label17.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["DateA"].ColumnName;

tpF.label18.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["DateB"].ColumnName;

tpF.label19.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Destination"].ColumnName;

tpF.label20.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Fare"].ColumnName;

tpF.label21.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Fare
BasisA"].ColumnName;

tpF.label22.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Fare
BasisB"].ColumnName;

tpF.label23.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Form Of
Payment"].ColumnName;

tpF.label24.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["From"].ColumnName;

tpF.label25.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Location1"].ColumnName;

tpF.label26.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Location2"].ColumnName;

tpF.label27.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Location3"].ColumnName;

tpF.label28.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Location4"].ColumnName;

tpF.label29.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Mr/Mrs"].ColumnName;

tpF.label30.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Name"].ColumnName;

tpF.label31.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Not
Valid AfterA"].ColumnName;

tpF.label32.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Not
Valid AfterB"].ColumnName;

tpF.label33.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Not
Valid BeforeA"].ColumnName;

tpF.label34.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Not
Valid BeforeB"].ColumnName;

tpF.label35.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Passport
Number"].ColumnName;

tpF.label36.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["StatusA"].ColumnName;

tpF.label37.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["StatusB"].ColumnName;

tpF.label38.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Surname"].ColumnName;

tpF.label39.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["TimeA"].ColumnName;

tpF.label40.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["TimeB"].ColumnName;

tpF.label41.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["To"].ColumnName;

tpF.label42.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["To1"].ColumnName;

tpF.label43.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns["Total"].ColumnName;

//tpF.label44.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns[43].ColumnName;

//tpF.label45.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns[44].ColumnName;

//tpF.label46.Text=tdF.ticketToPrintRecordsDataSet1. Tables[0].Columns[45].ColumnName;

//tpF.label1.Text=tdF.ticketToPrintRecordsDataSet1.T ables[0].Columns[46].ColumnName;

tpF.Show();

}

private void button9_Click(object sender, System.EventArgs e)

{

//OpenTicketDesign();

}

private void button10_Click(object sender, System.EventArgs e)

{
}

private void button2_Click_1(object sender, System.EventArgs e)

{

RezervationForm rF=new RezervationForm();

rF.Show();

}

private void button3_Click(object sender, System.EventArgs e)

{
}

}

}

Nov 17 '05 #4

P: n/a
Hi Arif,

If that button is button2, notice that you set button2.Text after InitializeComponent in your constructor.

--
Happy coding!
Morten Wennevik [C# MVP]
Nov 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.