Cannot pass 'AviewerV1.Aviewer.H' as ref or out, because 'AviewerV1.Aviewer.H' is a marshal-by-refer

  • Thread starter Thread starter Jeroen Ceuppens
  • Start date Start date
J

Jeroen Ceuppens

What does this mean?

that fault occurs on
this.textBoxH.Text = this.headfrm.H.ToString();

this.textBoxW.Text = this.headfrm.W.ToString();

headfrm is a passed object of a form with public int W,D



some more code

public class ChangeSurface : System.Windows.Forms.Form

{

private System.Windows.Forms.Button buttonUpdate;

private System.Windows.Forms.TextBox textBoxH;

private System.Windows.Forms.Label label1;

private System.Windows.Forms.TextBox textBoxW;

public Aviewer headfrm;


public ChangeSurface(Aviewer headform)

{

//

// Required for Windows Form Designer support

//

this.headfrm=headform;

InitializeComponent();

this.textBoxH.Text = this.headfrm.H.ToString();

this.textBoxW.Text = this.headfrm.W.ToString();

//

// TODO: Add any constructor code after InitializeComponent call

//

}



..........



can anybody help me out?



Thx

JC
 
Back
Top