Click here to Skip to main content
15,905,867 members
Home / Discussions / C#
   

C#

 
GeneralRe: enums suck! Pin
Heath Stewart15-Oct-03 11:52
protectorHeath Stewart15-Oct-03 11:52 
GeneralRe: enums suck! Pin
Alvaro Mendez15-Oct-03 13:04
Alvaro Mendez15-Oct-03 13:04 
GeneralRe: enums suck! Pin
bjoernen16-Oct-03 3:36
bjoernen16-Oct-03 3:36 
GeneralRe: enums suck! Pin
Richard Lowe16-Oct-03 3:37
Richard Lowe16-Oct-03 3:37 
GeneralToolbar Pin
Gary Kirkham15-Oct-03 8:50
Gary Kirkham15-Oct-03 8:50 
GeneralRe: Toolbar Pin
Heath Stewart15-Oct-03 11:54
protectorHeath Stewart15-Oct-03 11:54 
GeneralCustom Controls and Enum value Types Pin
Douglas Troy15-Oct-03 5:45
Douglas Troy15-Oct-03 5:45 
GeneralPassing a Form reference to a new Form Pin
mikemilano15-Oct-03 4:50
mikemilano15-Oct-03 4:50 
I'm trying to pass a reference of Form1 to Form2 so I can change things on Form1 from Form2.

Here is my logic:
Form1
private void btnShow_Click(object sender, System.EventArgs e)
{
  FormTwo = new Form2(ref this);
  FormTwo.Show();
}


Form2:
// .. yes form one was declared up here somewhere as public
public Form2(ref Form1 PassingForm)
{
  InitializeComponent();

  FormOne = PassingForm;
}



error CS1605: Cannot pass '<this>' as a ref or out argument because it is read-only

i can read the error, .. but what would the proper logic be here?
GeneralRe: Passing a Form reference to a new Form Pin
Mike Dimmick15-Oct-03 4:59
Mike Dimmick15-Oct-03 4:59 
GeneralBindingContext Pin
Anonymous15-Oct-03 4:45
Anonymous15-Oct-03 4:45 
GeneralWindows Form TabPage Pin
Jubal15-Oct-03 4:19
Jubal15-Oct-03 4:19 
GeneralRe: Windows Form TabPage Pin
Wjousts15-Oct-03 5:49
Wjousts15-Oct-03 5:49 
GeneralUsing C# in MFC Project Pin
Anonymous14-Oct-03 23:53
Anonymous14-Oct-03 23:53 
GeneralVersioning Solution Pin
Member 37818914-Oct-03 20:55
Member 37818914-Oct-03 20:55 
GeneralRe: Versioning Solution Pin
Douglas Troy15-Oct-03 6:26
Douglas Troy15-Oct-03 6:26 
GeneralRe: Versioning Solution Pin
Heath Stewart15-Oct-03 11:59
protectorHeath Stewart15-Oct-03 11:59 
GeneralRe: Versioning Solution Pin
Douglas Troy16-Oct-03 4:44
Douglas Troy16-Oct-03 4:44 
GeneralRe: Versioning Solution Pin
15-Oct-03 19:38
suss15-Oct-03 19:38 
GeneralRe: Versioning Solution Pin
Member 37818915-Oct-03 23:20
Member 37818915-Oct-03 23:20 
GeneralRe: Versioning Solution Pin
Douglas Troy16-Oct-03 4:58
Douglas Troy16-Oct-03 4:58 
GeneralVBScript to C# Pin
CyberKewl14-Oct-03 20:29
CyberKewl14-Oct-03 20:29 
GeneralRe: VBScript to C# Pin
Mike Dimmick14-Oct-03 23:53
Mike Dimmick14-Oct-03 23:53 
GeneralRe: VBScript to C# Pin
CyberKewl15-Oct-03 0:51
CyberKewl15-Oct-03 0:51 
GeneralRe: VBScript to C# Pin
Mike Dimmick15-Oct-03 1:30
Mike Dimmick15-Oct-03 1:30 
GeneralRe: VBScript to C# Pin
CyberKewl15-Oct-03 4:14
CyberKewl15-Oct-03 4:14 

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.