Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
AnswerCheck out Pin
Ennis Ray Lynch, Jr.14-May-09 2:45
Ennis Ray Lynch, Jr.14-May-09 2:45 
GeneralRe: Check out Pin
devvvy14-May-09 2:49
devvvy14-May-09 2:49 
GeneralRe: Check out Pin
Ennis Ray Lynch, Jr.14-May-09 2:50
Ennis Ray Lynch, Jr.14-May-09 2:50 
GeneralRe: Check out Pin
devvvy14-May-09 2:55
devvvy14-May-09 2:55 
GeneralAnother common solution Pin
Ennis Ray Lynch, Jr.14-May-09 3:00
Ennis Ray Lynch, Jr.14-May-09 3:00 
GeneralRe: Another common solution Pin
devvvy14-May-09 3:07
devvvy14-May-09 3:07 
GeneralRe: Check out Pin
devvvy14-May-09 4:59
devvvy14-May-09 4:59 
GeneralRe: Check out Pin
devvvy14-May-09 5:24
devvvy14-May-09 5:24 
oh this looks like it...
<br />
  Assembly currentDomain_AssemblyResolve(object sender, ResolveEventArgs args)<br />
        {<br />
            //This handler is called only when the common language runtime tries to bind to the assembly and fails.<br />
	<br />
            //Retrieve the list of referenced assemblies in an array of AssemblyName.<br />
            Assembly MyAssembly, objExecutingAssemblies;<br />
            string strTempAssmbPath = "";<br />
	<br />
            objExecutingAssemblies = Assembly.GetExecutingAssembly();<br />
            AssemblyName[] arrReferencedAssmbNames = objExecutingAssemblies.GetReferencedAssemblies();<br />
	<br />
            //Loop through the array of referenced assembly names.<br />
            foreach (AssemblyName strAssmbName in arrReferencedAssmbNames)<br />
            {<br />
                //Check for the assembly names that have raised the "AssemblyResolve" event.<br />
                if (strAssmbName.FullName.Substring(0, strAssmbName.FullName.IndexOf(",")) == args.Name.Substring(0, args.Name.IndexOf(",")))<br />
                {<br />
                    //Build the path of the assembly from where it has to be loaded.<br />
                    //The following line is probably the only line of code in this method you may need to modify:<br />
                    <strong>strTempAssmbPath = txtAssemblyDir.Text;</strong><br />
                    if (strTempAssmbPath.EndsWith("\\")) strTempAssmbPath += "\\";<br />
                    strTempAssmbPath += args.Name.Substring(0, args.Name.IndexOf(",")) + ".dll";<br />
                    break;<br />
                }<br />
	<br />
            }<br />
            //Load the assembly from the specified path.<br />
            MyAssembly = Assembly.LoadFrom(strTempAssmbPath);<br />
	<br />
            //Return the loaded assembly.<br />
            return MyAssembly;<br />
        }<br />

http://www.chilkatsoft.com/p/p_502.asp[^]

Thanks for your hint

dev

QuestionNeed to get installed program list from add or remove program using C# Pin
priyanka_jns14-May-09 0:39
priyanka_jns14-May-09 0:39 
AnswerRe: Need to get installed program list from add or remove program using C# Pin
Programm3r14-May-09 1:10
Programm3r14-May-09 1:10 
QuestionErr... Form Design / Layout? Pin
Baeltazor14-May-09 0:39
Baeltazor14-May-09 0:39 
AnswerRe: Err... Form Design / Layout? Pin
Jimmanuel14-May-09 1:03
Jimmanuel14-May-09 1:03 
GeneralRe: Err... Form Design / Layout? Pin
Baeltazor14-May-09 1:10
Baeltazor14-May-09 1:10 
GeneralRe: Err... Form Design / Layout? Pin
Nagy Vilmos14-May-09 1:22
professionalNagy Vilmos14-May-09 1:22 
AnswerRe: Err... Form Design / Layout? Pin
Nagy Vilmos14-May-09 1:21
professionalNagy Vilmos14-May-09 1:21 
GeneralRe: Err... Form Design / Layout? Pin
Baeltazor14-May-09 1:25
Baeltazor14-May-09 1:25 
AnswerRe: Err... Form Design / Layout? Pin
Henry Minute14-May-09 2:17
Henry Minute14-May-09 2:17 
QuestionBug with between sql command Pin
yueru14-May-09 0:02
yueru14-May-09 0:02 
AnswerRe: Bug with between sql command Pin
Rob Philpott14-May-09 0:10
Rob Philpott14-May-09 0:10 
GeneralRe: Bug with between sql command Pin
yueru14-May-09 3:25
yueru14-May-09 3:25 
GeneralRe: Bug with between sql command Pin
PIEBALDconsult14-May-09 3:51
mvePIEBALDconsult14-May-09 3:51 
GeneralRe: Bug with between sql command Pin
yueru14-May-09 5:04
yueru14-May-09 5:04 
QuestionConvert .Ps to .pdf Pin
Member 339495914-May-09 0:01
Member 339495914-May-09 0:01 
QuestionFile.Move throws exception Pin
Casper Hansen13-May-09 23:42
Casper Hansen13-May-09 23:42 
AnswerRe: File.Move throws exception Pin
Simon P Stevens14-May-09 0:27
Simon P Stevens14-May-09 0:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.