<ge***********@gmail.comwrote in message
news:80**********************************@a1g2000h sb.googlegroups.com...
Hi I have a managed front end
and a
unmanaged back end.
The back end does the processing work.
While processing I want to populate a listbox on the main form. How
can I access the list box ?
The back end, by definition, is something that does not deal with the UI in
the front end. Indeed, the back end should not even know of or require the
existence of the front end!
In your scenario, your backend should just hand the _data_ (not list box
items, or something like that... but raw data - say, a list of error
messages) to the front end, and then the front end can decide what to do
with it - ignore, Console.WriteLine, or fill the listbox.
How to do it best depends on the nature of the backend - it is just an
unmanaged .dll with plain C-style API, a COM component, or a separate
process? - and on what it is written in.