on 2022 Oct 12 11:32 PM
Hello Experts,
I am trying to send a Value (String) from an open Form to another open Form (FatherForm) to set the value as an EditText Value.
So I open a Form ( Not a system Form) and click on a Button which open a new Form where i can choose one Value from a Grid and as soon as I choose a Value ( By double clicking on a specific Row in a Grid) the open Form will be closed and the Value that i clicked on should be copied to the Father Form and set in a specific Edittext there.
It's something like Choose from a List function but I didnt get it how to solve it with the ChooseFromList function so I am trying it this way.
Any briefly Steps how to identify the Father Form and be able to set new Values on the Father Form?
Request clarification before answering.
Hi,
The new form where the choice is made, should be a Dialog. Choose it when you add a new item to your project:
Program the form to save the chosen value to a property, and after the dialog is closed, and the code of the father form continues, you can access the dialog object's property. It works pretty much the same as, for example, a OpenFileDialog, except that you need to setup your own property for the chosen value.
Regards,
Johan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello johan.hakkesteegt ,
thank you very much for your Answer.
I have two Problems :
1- Under Windows Forms I do not have a Dialog (Windows Form).
2- The Data that the user is going to choose will be Data from my SAP Database so I need to get this Data in a Grid . Is that possible in Case I open a Dilag Windows Form?
PS: I am using VS 2015
Hi,
Regards,
Johan
User | Count |
---|---|
96 | |
15 | |
8 | |
7 | |
5 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.