Can a Timer from a open form interupt code on other open form
By : intelceptor
Date : March 29 2020, 07:55 AM
|
Passing information from an open form to an open form on TextChanged event
By : Niru Tamang
Date : March 29 2020, 07:55 AM
wish helps you I'm not sure if got your question right. I assume you want to pass information from one child-form to another. One way of doing that would be like this: code :
public interface IDataContainer
{
void SetData(String data);
}
public partial class parentForm : Form, IDataContainer
public partial class parentForm : Form, IDataContainer
[...]
public void SetData(String dataComingFromOtherSource)
{
this.browserFormInstance.passInfo = dataComingFromOtherSource;
}
[...]
public partial class parentForm : Form
{
private notesForm notesForm = null;
public parentForm()
{
InitializeComponent();
// Note that at this point you are instantiating
// the child-form and you are passing a reference
// to the `parentForm` so that you can pass information
// to it, and from it to whatever other form you may
// need, in an elegant way.
this.notesForm = new notesForm(this);
}
public partial class notesForm : DockContent
{
// On runtime this will in fact the `parentForm` object instance.
IDataContainer myDataContainerInstance = null;
public notesForm(IDataContainer myDataContainerInstance) : base()
{
InitializeComponent();
// Assign the reference so that you can use it later
this.myDataContainerInstance = myDataContainerInstance;
textBox1.TextChanged += new EventHandler(textBox1_TextChanged);
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
this.myDataContainerInstance.SetData(textBox1.Text);
}
}
|
Budget Analysis Form Rightside grid should defaultly open when i Open the form for single project. Dynamics ax
By : Fernando González
Date : March 29 2020, 07:55 AM
|
Button click to open new form and don't open if already have active form running
By : psT
Date : March 29 2020, 07:55 AM
|
Import registration form as a selection in program list, and close form when finished; when I return to open form again,
By : user2626049
Date : March 29 2020, 07:55 AM
|