Click here to Skip to main content
15,923,376 members
Home / Discussions / C#
   

C#

 
Questionadding icon to systemtray Pin
Mridang Agarwalla6-Jul-06 7:41
Mridang Agarwalla6-Jul-06 7:41 
AnswerRe: adding icon to systemtray Pin
Stefan Troschuetz6-Jul-06 8:15
Stefan Troschuetz6-Jul-06 8:15 
GeneralRe: adding icon to systemtray Pin
Mridang Agarwalla6-Jul-06 17:15
Mridang Agarwalla6-Jul-06 17:15 
GeneralRe: adding icon to systemtray Pin
Stefan Troschuetz6-Jul-06 20:56
Stefan Troschuetz6-Jul-06 20:56 
QuestionCopying UserControl Variables to another instance of the UserControl [modified] Pin
TheBlindWatchmaker6-Jul-06 7:39
TheBlindWatchmaker6-Jul-06 7:39 
AnswerRe: Copying UserControl Variables to another instance of the UserControl Pin
Dustin Metzgar6-Jul-06 7:55
Dustin Metzgar6-Jul-06 7:55 
GeneralRe: Copying UserControl Variables to another instance of the UserControl Pin
TheBlindWatchmaker6-Jul-06 8:13
TheBlindWatchmaker6-Jul-06 8:13 
GeneralRe: Copying UserControl Variables to another instance of the UserControl Pin
Dustin Metzgar6-Jul-06 8:28
Dustin Metzgar6-Jul-06 8:28 
Sure thing. I needed to be able to copy a CodeCompileUnit object. This represents an entire CodeDom graph which can get really huge. It's a Microsoft library, so I can't just edit the code myself, and digging through the entire graph to copy it would not only be tedious but potentially faulty. It's just not an option. Luckily, serialization is there:

private CodeCompileUnit CopyCcu(CodeCompileUnit ccu) {
   try {
      BinaryFormatter bf = new BinaryFormatter();
      MemoryStream ms = new MemoryStream();
      bf.Serialize(ms, ccu);
      ms.Position = 0L;
      CodeCompileUnit newCcu = bf.Deserialize(ms) as CodeCompileUnit;
      return newCcu;
   }
   catch (Exception exc) {
      // Do something
   }
}


This is at least how you would get a copy of your UserControl. I'm lost on the whole right-click thing. Where are you doing that? In the Visual Studio designer?




Logifusion[^]
QuestionTransferring data from database to database Pin
Stephen Hurt6-Jul-06 6:27
Stephen Hurt6-Jul-06 6:27 
AnswerRe: Transferring data from database to database Pin
led mike6-Jul-06 6:40
led mike6-Jul-06 6:40 
AnswerRe: Transferring data from database to database Pin
BambooMoon6-Jul-06 7:09
BambooMoon6-Jul-06 7:09 
Questionif/else statement for command button; object reference not set to an instance error Pin
leckey6-Jul-06 6:15
leckey6-Jul-06 6:15 
AnswerRe: if/else statement for command button; object reference not set to an instance error Pin
Guffa6-Jul-06 6:21
Guffa6-Jul-06 6:21 
GeneralRe: if/else statement for command button; object reference not set to an instance error Pin
leckey6-Jul-06 7:08
leckey6-Jul-06 7:08 
GeneralRe: if/else statement for command button; object reference not set to an instance error Pin
Paul Conrad6-Jul-06 7:17
professionalPaul Conrad6-Jul-06 7:17 
GeneralRe: if/else statement for command button; object reference not set to an instance error [modified] Pin
leckey6-Jul-06 7:55
leckey6-Jul-06 7:55 
GeneralRe: if/else statement for command button; object reference not set to an instance error Pin
Paul Conrad6-Jul-06 8:00
professionalPaul Conrad6-Jul-06 8:00 
GeneralRe: if/else statement for command button; object reference not set to an instance error Pin
Paul Conrad6-Jul-06 8:04
professionalPaul Conrad6-Jul-06 8:04 
AnswerRe: if/else statement for command button; object reference not set to an instance error Pin
Guffa6-Jul-06 8:16
Guffa6-Jul-06 8:16 
GeneralRe: if/else statement for command button; object reference not set to an instance error Pin
leckey6-Jul-06 8:40
leckey6-Jul-06 8:40 
AnswerRe: if/else statement for command button; object reference not set to an instance error Pin
Paul Conrad6-Jul-06 6:59
professionalPaul Conrad6-Jul-06 6:59 
QuestionListView Item/Subitem backcolor solution Pin
Aaron Dilliard6-Jul-06 5:33
Aaron Dilliard6-Jul-06 5:33 
QuestionPlugin can't see referenced code Pin
berry seltzer6-Jul-06 5:17
berry seltzer6-Jul-06 5:17 
QuestionHow to retrieve image with Html Pin
Bluebamboo6-Jul-06 5:13
Bluebamboo6-Jul-06 5:13 
AnswerRe: How to retrieve image with Html Pin
Not Active6-Jul-06 5:32
mentorNot Active6-Jul-06 5:32 

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.