By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,979 Members | 960 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,979 IT Pros & Developers. It's quick & easy.

exe to class library

P: n/a
Hi,
I build a c# win form application and i put a control on the form the
control send event every 1 sec and in the function that catch that event i
do beep(or so...).
i recompile that application to be a class library (dll) and i load it
dynamicly from a nother c# winform application using reflaction and invoke i
callaed the function that play the control and i see that the control send
event to the event function implemented in the dll form dialog how thats
work???

I try to show the dll dialog(win form) and it crash Why???

Thanks!
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
When you go to show the dialog, are you creating a new instance of it from
within your main application? Or are you just trying to do a Show() or
ShowDialog() on the (noninstantiated) class?

Brendan
"Dave" wrote:
Hi,
I build a c# win form application and i put a control on the form the
control send event every 1 sec and in the function that catch that event i
do beep(or so...).
i recompile that application to be a class library (dll) and i load it
dynamicly from a nother c# winform application using reflaction and invoke i
callaed the function that play the control and i see that the control send
event to the event function implemented in the dll form dialog how thats
work???

I try to show the dll dialog(win form) and it crash Why???

Thanks!

Nov 17 '05 #2

P: n/a
just show!

"Brendan Grant" <gr****@NOSPAMdahat.com> wrote in message
news:83**********************************@microsof t.com...
When you go to show the dialog, are you creating a new instance of it from
within your main application? Or are you just trying to do a Show() or
ShowDialog() on the (noninstantiated) class?

Brendan
"Dave" wrote:
Hi,
I build a c# win form application and i put a control on the form the
control send event every 1 sec and in the function that catch that event
i
do beep(or so...).
i recompile that application to be a class library (dll) and i load it
dynamicly from a nother c# winform application using reflaction and
invoke i
callaed the function that play the control and i see that the control
send
event to the event function implemented in the dll form dialog how thats
work???

I try to show the dll dialog(win form) and it crash Why???

Thanks!

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.