Home > Back-end >  For Delphi combobox
For Delphi combobox

Time:10-19

I do a little thing with Delphi, the interface forms a, insert data,
In form 2 combobox found no have new insert data,
Form 2 data in a combobox is form formed through adoquery statement attached
How to solve?

CodePudding user response:

After inserting data will form 2 combobox data query update again, or change Form2 to dynamic invocation,

CodePudding user response:

You should be a call in the Form1 Form2 is:
General practice is Form2. Create again after this to Form2.com bobox add content, then Form2. Show

You post your code to see what is the problem

CodePudding user response:

My understanding is you this is a new foundation of data forms two call form after return to form two, the basic data in the combobox showed no update in time,
If there is nothing wrong with my understanding, can be done by the custom event

In the custom event in form 2
In form a define and implement the custom events - which is to update the contents of the combobox
2 forms a startup form, pass the event processing to form 2
Forms two calls in their own event handling methods form an incoming event processing, can be realized synchronous update

CodePudding user response:

The Form2.com bobox. The text is the right of assignment
  • Related