Click here to Skip to main content
15,907,687 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do I use this class Pin
Richard MacCutchan23-Oct-14 5:23
mveRichard MacCutchan23-Oct-14 5:23 
AnswerRe: How do I use this class Pin
BillWoodruff23-Oct-14 3:34
professionalBillWoodruff23-Oct-14 3:34 
AnswerRe: How do I use this class Pin
jschell23-Oct-14 8:45
jschell23-Oct-14 8:45 
QuestionTeamviewer Protocol Pin
Jassim Rahma22-Oct-14 23:11
Jassim Rahma22-Oct-14 23:11 
AnswerRe: Teamviewer Protocol Pin
Pete O'Hanlon22-Oct-14 23:48
mvePete O'Hanlon22-Oct-14 23:48 
AnswerRe: Teamviewer Protocol Pin
Richard MacCutchan23-Oct-14 0:31
mveRichard MacCutchan23-Oct-14 0:31 
GeneralRe: Teamviewer Protocol Pin
Jassim Rahma23-Oct-14 1:26
Jassim Rahma23-Oct-14 1:26 
GeneralRe: Teamviewer Protocol Pin
Richard MacCutchan23-Oct-14 2:30
mveRichard MacCutchan23-Oct-14 2:30 
AnswerRe: Teamviewer Protocol Pin
Thomas Mahlberg23-Oct-14 6:13
professionalThomas Mahlberg23-Oct-14 6:13 
Question"This command is not available because no document is open." Pin
Tejas Shastri22-Oct-14 12:13
Tejas Shastri22-Oct-14 12:13 
AnswerRe: "This command is not available because no document is open." Pin
Richard Andrew x6422-Oct-14 13:04
professionalRichard Andrew x6422-Oct-14 13:04 
GeneralRe: "This command is not available because no document is open." Pin
Tejas Shastri23-Oct-14 0:45
Tejas Shastri23-Oct-14 0:45 
GeneralRe: "This command is not available because no document is open." Pin
Richard Andrew x6423-Oct-14 1:34
professionalRichard Andrew x6423-Oct-14 1:34 
GeneralRe: "This command is not available because no document is open." Pin
Tejas Shastri23-Oct-14 2:12
Tejas Shastri23-Oct-14 2:12 
GeneralRe: "This command is not available because no document is open." Pin
Richard Andrew x6423-Oct-14 2:22
professionalRichard Andrew x6423-Oct-14 2:22 
GeneralRe: "This command is not available because no document is open." Pin
Tejas Shastri23-Oct-14 2:23
Tejas Shastri23-Oct-14 2:23 
AnswerRe: "This command is not available because no document is open." Pin
Pete O'Hanlon23-Oct-14 0:49
mvePete O'Hanlon23-Oct-14 0:49 
GeneralRe: "This command is not available because no document is open." Pin
Tejas Shastri23-Oct-14 0:54
Tejas Shastri23-Oct-14 0:54 
GeneralRe: "This command is not available because no document is open." Pin
Pete O'Hanlon23-Oct-14 2:28
mvePete O'Hanlon23-Oct-14 2:28 
GeneralRe: "This command is not available because no document is open." Pin
Tejas Shastri23-Oct-14 2:33
Tejas Shastri23-Oct-14 2:33 
GeneralRe: "This command is not available because no document is open." Pin
Pete O'Hanlon23-Oct-14 2:40
mvePete O'Hanlon23-Oct-14 2:40 
GeneralRe: "This command is not available because no document is open." Pin
Tejas Shastri23-Oct-14 4:08
Tejas Shastri23-Oct-14 4:08 
GeneralRe: "This command is not available because no document is open." Pin
Freak3023-Oct-14 3:56
Freak3023-Oct-14 3:56 
GeneralRe: "This command is not available because no document is open." Pin
Tejas Shastri23-Oct-14 4:09
Tejas Shastri23-Oct-14 4:09 
Questionlaunch another Application from memory by C# Pin
iscreen22-Oct-14 0:15
iscreen22-Oct-14 0:15 
hello every one,I'm trying to load and run an application A from memory which was written in c#.I have learn the skill from this http://www.codeproject.com/Articles/13897/Load-an-EXE-File-and-Run-It-from-Memory
It work well when the A's Form was simple,but when i add something control such as webbrowser to A's Form, it will throw an exception:"cannot be instantiated because the current thread is not in a single-threaded apartment" . below is my code
C#
Assembly myAssembly = Assembly.Load(exeBuffer);
         _MethodInfo myInfo = myAssembly.EntryPoint;
         new Thread(() => myInfo.Invoke(null, null)).Start();

could somebody tell me how to solve it? thank you very much.

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.