Click here to Skip to main content
15,922,574 members
Home / Discussions / C#
   

C#

 
GeneralRe: The Great Threading Conundrum Pin
eggie515-Oct-03 15:49
eggie515-Oct-03 15:49 
GeneralRe: The Great Threading Conundrum Pin
Wjousts16-Oct-03 5:03
Wjousts16-Oct-03 5:03 
Generalapi Pin
jphuphilly15-Oct-03 13:41
jphuphilly15-Oct-03 13:41 
GeneralRe: api Pin
Daniel M. Edwards15-Oct-03 13:57
Daniel M. Edwards15-Oct-03 13:57 
GeneralRe: api Pin
J. Dunlap15-Oct-03 14:10
J. Dunlap15-Oct-03 14:10 
GeneralRe: api Pin
Carlos H. Perez15-Oct-03 15:14
Carlos H. Perez15-Oct-03 15:14 
GeneralRe: api Pin
Christian Graus16-Oct-03 10:07
protectorChristian Graus16-Oct-03 10:07 
Generallistview Pin
jphuphilly15-Oct-03 13:39
jphuphilly15-Oct-03 13:39 
GeneralRe: listview Pin
Heath Stewart16-Oct-03 9:23
protectorHeath Stewart16-Oct-03 9:23 
Generalc++ vs C# Pin
totig15-Oct-03 11:30
totig15-Oct-03 11:30 
GeneralRe: c++ vs C# Pin
Christian Graus15-Oct-03 13:48
protectorChristian Graus15-Oct-03 13:48 
GeneralRe: c++ vs C# Pin
leppie16-Oct-03 8:24
leppie16-Oct-03 8:24 
GeneralRe: c++ vs C# Pin
Christian Graus16-Oct-03 10:04
protectorChristian Graus16-Oct-03 10:04 
GeneralRe: c++ vs C# Pin
Eric Gunnerson (msft)16-Oct-03 10:33
Eric Gunnerson (msft)16-Oct-03 10:33 
Generalenums suck! Pin
Alvaro Mendez15-Oct-03 9:17
Alvaro Mendez15-Oct-03 9:17 
GeneralRe: enums suck! Pin
Richard Lowe15-Oct-03 10:36
Richard Lowe15-Oct-03 10:36 
GeneralRe: enums suck! Pin
Alvaro Mendez15-Oct-03 11:10
Alvaro Mendez15-Oct-03 11:10 
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?

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.