One other thing to note cporter71 is that the dll is copied to the output directory of the calling app by default.
You can tell the compiler to reference the dll in the location it is in and not copy it to the output directory if you want.
In the IDE look at the properties for the reference...
The solution of casting the control to a radio button is right on the money.
foreach (Control rb in gbOptions.Controls)
{
if (rb is RadioButton)
{
Console.WriteLine(( Radiobutton ) rb ).Name );
}
}
As for the foreach vs for loop in the .NET framework...
with this... "I put this in the web config" I am assuming this is an ASP.NET app.
In that case the access violation is happening becuase "you" are not the one who is trying to open the file. The asp.net worker process is the one trying to open the file. You will have to grant access to the...
cporter71,
Well in asnwer to your intial quesiton about having your executable work with only and depend on your signed version of that dll, that happens at compile time.
In other words when you set a reference to an assembly at compile time that assemblies version is written into the meta...
In the orginal question Ramo seemed to be trying to find a way to have a single method perfom many differnt types of calulations based on a flag.
The first solution as Ramo thought would be a single method that is passed a flag and based on that flag performs the correct calculation.
The...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.