Click here to Skip to main content
15,885,309 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reading the serial number Pin
Mazdak17-Apr-04 8:36
Mazdak17-Apr-04 8:36 
Generalconecting with modem Pin
Amirjalaly17-Apr-04 6:42
Amirjalaly17-Apr-04 6:42 
Generalconnecting with modem Pin
Amirjalaly17-Apr-04 6:36
Amirjalaly17-Apr-04 6:36 
Generaldatagrid question Pin
hfuiew17-Apr-04 5:26
hfuiew17-Apr-04 5:26 
GeneralRe: datagrid question Pin
Bitwise Gamgee19-Apr-04 4:22
Bitwise Gamgee19-Apr-04 4:22 
Generalcoloring listbox button control Pin
mausy17-Apr-04 0:33
mausy17-Apr-04 0:33 
GeneralForms and delegates Pin
Gregern16-Apr-04 22:32
Gregern16-Apr-04 22:32 
GeneralRe: Forms and delegates Pin
SJ_Phoenix16-Apr-04 23:28
SJ_Phoenix16-Apr-04 23:28 
in Form2:


public event EventHandler ButtonClicked;


//method that gets called when button on form2
//is clicked -> via: button.Click += new EventHandler
//(this.Button_Clicked); 
private void Button_Clicked(object sender, EvenArgs e)
{
   if(this.ButtonClicked != null)
        this.ButtonClicked(this, EventArgs.Empty);   
}

in Form1:

subscribe to ButtonClicked - Event of Form2 somewhere before you show Form2, just like this:

Form2 form2 = new Form2();
form2.ButtonClicked += new EventHandler(this.ChangeLabel);
form2.Show();

private void ChangeLabel(object sender, EventArgs e)
{
    this.label1.Text = "Button on Form2 has been clicked.";
}

Questionhow do i print muti pages when printing .tiff files Pin
cmarmr16-Apr-04 10:26
cmarmr16-Apr-04 10:26 
AnswerRe: how do i print muti pages when printing .tiff files Pin
Heath Stewart16-Apr-04 10:35
protectorHeath Stewart16-Apr-04 10:35 
GeneralC# and database Pin
Harry200016-Apr-04 10:17
Harry200016-Apr-04 10:17 
GeneralRe: C# and database Pin
Heath Stewart16-Apr-04 10:33
protectorHeath Stewart16-Apr-04 10:33 
GeneralRe: C# and database Pin
ingramj17-Apr-04 15:14
ingramj17-Apr-04 15:14 
GeneralBinary Data in Data Grid :: C# Pin
valikac16-Apr-04 9:04
valikac16-Apr-04 9:04 
GeneralRe: Binary Data in Data Grid :: C# Pin
Heath Stewart16-Apr-04 9:08
protectorHeath Stewart16-Apr-04 9:08 
GeneralRe: Binary Data in Data Grid :: C# Pin
valikac16-Apr-04 11:08
valikac16-Apr-04 11:08 
GeneralRe: Binary Data in Data Grid :: C# Pin
Heath Stewart16-Apr-04 11:12
protectorHeath Stewart16-Apr-04 11:12 
QuestionToolboxBitmap problem??? Pin
Small Rat16-Apr-04 8:49
Small Rat16-Apr-04 8:49 
AnswerRe: ToolboxBitmap problem??? Pin
Heath Stewart16-Apr-04 10:24
protectorHeath Stewart16-Apr-04 10:24 
General"Go To Error/Tag" and F4 Pin
RNEELY16-Apr-04 6:57
RNEELY16-Apr-04 6:57 
GeneralRe: "Go To Error/Tag" and F4 Pin
garythom_work16-Apr-04 7:31
garythom_work16-Apr-04 7:31 
GeneralRe: "Go To Error/Tag" and F4 Pin
RNEELY16-Apr-04 8:15
RNEELY16-Apr-04 8:15 
GeneralRe: "Go To Error/Tag" and F4 Pin
Heath Stewart16-Apr-04 7:48
protectorHeath Stewart16-Apr-04 7:48 
GeneralRe: "Go To Error/Tag" and F4 Pin
RNEELY16-Apr-04 8:16
RNEELY16-Apr-04 8:16 
GeneralRe: "Go To Error/Tag" and F4 Pin
partyganger16-Apr-04 10:50
partyganger16-Apr-04 10:50 

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.