G
George Meng
I got a tough question:
The backgroud for this question is:
I want to design an application works like a engine.
After release, we can still customize a form by adding a button, and source
code for the button. (This is done by the form itself, not by using VS.Net)
(button and source code should be a record in database, these information
should be retrieve from database when the form shows up)
What I want is:
I want the source code (comes from database) to access other controls which
has already been in the form. For example:
I want to read a item from a listbox (let's assume there is a listbox in
the form)
I want to add a item to a listbox
I want to change the property of a datagrid
.......
What I can to do:
1) add a button on the fly
2) load source code from database for this button's click event
3) complie code on the fly.
What I don't know:
I don't knwo how to reference the form in the new code.
I don't know how to reference the controls in the form.
Thanks for any suggestions.
George Meng
The backgroud for this question is:
I want to design an application works like a engine.
After release, we can still customize a form by adding a button, and source
code for the button. (This is done by the form itself, not by using VS.Net)
(button and source code should be a record in database, these information
should be retrieve from database when the form shows up)
What I want is:
I want the source code (comes from database) to access other controls which
has already been in the form. For example:
I want to read a item from a listbox (let's assume there is a listbox in
the form)
I want to add a item to a listbox
I want to change the property of a datagrid
.......
What I can to do:
1) add a button on the fly
2) load source code from database for this button's click event
3) complie code on the fly.
What I don't know:
I don't knwo how to reference the form in the new code.
I don't know how to reference the controls in the form.
Thanks for any suggestions.
George Meng