Skip to main content

Cobol passing parameters form C#

  • May 1, 2017
  • 2 replies
  • 0 views

I have a form in C# that receives a parameter would like the cobol call this program passing this parameter, the form would open and show what came from cobol?

namespace nomeprograma
{
public partial class Form1 : Form
{

public Form1()
{
InitializeComponent();
}

public void QualMsg(string MSG)
{
campo.Text = MSG;
}

}

}

Thank you!


2 replies

Chris Glazier
Forum|alt.badge.img+2
I have a form in C# that receives a parameter would like the cobol call this program passing this parameter, the form would open and show what came from cobol?

namespace nomeprograma
{
public partial class Form1 : Form
{

public Form1()
{
InitializeComponent();
}

public void QualMsg(string MSG)
{
campo.Text = MSG;
}

}

}

Thank you!


Something like:

declare myform as type nomeprograma.Form1 = new nomeprograma.Form1
invoke myform::QualMsg("This is my string")

  • May 6, 2017
I have a form in C# that receives a parameter would like the cobol call this program passing this parameter, the form would open and show what came from cobol?

namespace nomeprograma
{
public partial class Form1 : Form
{

public Form1()
{
InitializeComponent();
}

public void QualMsg(string MSG)
{
campo.Text = MSG;
}

}

}

Thank you!


That's what I was thinking, thank you.