473,471 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

exe to class library

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
2 1412
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: syd | last post by:
In my project, I've got dozens of similar classes with hundreds of description variables in each. In my illustrative example below, I have a Library class that contains a list of Nation classes. ...
6
by: Patrick | last post by:
Following earlier discussions about invoking a .NET class library via ..NET-COM Interop (using regasm /tlb) at...
4
by: Brian Shannon | last post by:
I am playing around with class libraries trying to understand how they work. I created a class library, library.vb. I placed the library.dll into the bin directory and set my reference. If I...
3
by: eBob.com | last post by:
I have several applications which mine web sites for personal information which they publish. They publish the info in one form, I transform the info into Excel spreadsheets. So all these...
5
by: Tony Johansson | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file called A One project that build a user control dll. Here we have a class called B One project...
0
by: tony | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file called A One project that build a user control dll. In this user control we have a class...
5
by: tony | last post by:
Hello! This is a rather long mail but it's a very interesting one. I hope you read it. I have tried several times to get an answer to this mail but I have not get any answer saying something...
5
by: Rainer Queck | last post by:
Hello NG, Is it possible to share the settings of an application with a class libreary? In my case I have a application and a set of different reports (home made) put into a class library. The...
0
by: drawing in aspnet | last post by:
Question about putting the data layer in a separate class library. I keep reading that the data layer should be separated from the presentation layer and put in its own class library. I am...
4
by: Steve Baer | last post by:
I've already tested this with C# and it works, but I'm being paranoid and I wanted to also check here. Our application has a large class library written in C++/CLI for plug-in projects. The...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.