Click here to Skip to main content
16,005,437 members
Home / Discussions / C#
   

C#

 
GeneralRe: notifyicon doesn't disappear when program crashes Pin
scoroop8-Jan-06 12:15
scoroop8-Jan-06 12:15 
GeneralRe: notifyicon doesn't disappear when program crashes Pin
mav.northwind8-Jan-06 12:27
mav.northwind8-Jan-06 12:27 
GeneralRe: notifyicon doesn't disappear when program crashes Pin
scoroop8-Jan-06 12:38
scoroop8-Jan-06 12:38 
GeneralRe: notifyicon doesn't disappear when program crashes Pin
Stephen Hewitt8-Jan-06 15:01
Stephen Hewitt8-Jan-06 15:01 
AnswerRe: notifyicon doesn't disappear when program crashes Pin
Dave Kreskowiak8-Jan-06 16:01
mveDave Kreskowiak8-Jan-06 16:01 
Questionnested xml tables and dataTables Pin
kostast8-Jan-06 10:01
kostast8-Jan-06 10:01 
GeneralOops! Invisible code! : nested xml tables and dataTables Pin
kostast8-Jan-06 10:06
kostast8-Jan-06 10:06 
QuestionDesigner ?bugs? in VS 2003 && VS 2005 Pin
Darek Maciejewski8-Jan-06 9:58
Darek Maciejewski8-Jan-06 9:58 
Hi!

I have two different problems, one in VS'03, second in VS'05...

Well... first I'll show examplatory situation skelleton
<br />
  public class Form1 : Form<br />
  {<br />
    myclass cl1;<br />
    myotherclass cl2;<br />
<br />
    private void InitializeComponent()<br />
    {<br />
      cl1 = new myclass (some arguments); // I use TypeConverter to use non-default constructor<br />
      cl2 = new myotherclass();<br />
<br />
      cl2.property1 = cl1;<br />
      cl2.property2 = new myclass (some arguments);<br />
    }<br />
  }<br />


I have a control and a custom TypeConverter for it. I use the second one, to choose proper constructor for my control. The code in InitializeComponent is generated properly, the proper constructor is being used. When I compile project, the program works fine, but...
When the Designer recreates form (on project load or after stoping the application which is being designed), it uses default constructor for creating cl1 and in effect, the component is initialized improperly...
The funny thing is, that the control of same type, the cl2.property2 is always properly initialized using non-default constructor Suspicious | :suss:

I found a unpleasant solution to it - to init the properties which are set by my constructor again, below, as other properties are... so this constructor works ok only in initialization of cl2.property2.

So...

I've moved to VS'05 to check if they did sth with this bug...

They did, it works fine now... but...
The cl1 is serialized by designer ok now... but cl2.property2 is no more serialized :/ (cl2.property1 stayed as it was)

Does anyone now the solution for VS'05... or better solution than mine for VS'03?

Regards,
Darek Maciejewski
AnswerRe: Designer ?bugs? in VS 2003 && VS 2005 Pin
Christian Graus8-Jan-06 10:14
protectorChristian Graus8-Jan-06 10:14 
GeneralRe: Designer ?bugs? in VS 2003 && VS 2005 Pin
Darek Maciejewski8-Jan-06 10:26
Darek Maciejewski8-Jan-06 10:26 
GeneralRe: Designer ?bugs? in VS 2003 && VS 2005 Pin
Christian Graus8-Jan-06 10:34
protectorChristian Graus8-Jan-06 10:34 
AnswerRe: Designer ?bugs? in VS 2003 && VS 2005 Pin
BadKarma8-Jan-06 11:52
BadKarma8-Jan-06 11:52 
AnswerRe: Designer ?bugs? in VS 2003 && VS 2005 - VS'05 solution Pin
Darek Maciejewski9-Jan-06 7:33
Darek Maciejewski9-Jan-06 7:33 
QuestionHas Anyone Created C# Classes for Win32 API? Pin
redfish348-Jan-06 8:40
redfish348-Jan-06 8:40 
AnswerRe: Has Anyone Created C# Classes for Win32 API? Pin
Christian Graus8-Jan-06 10:14
protectorChristian Graus8-Jan-06 10:14 
GeneralRe: Has Anyone Created C# Classes for Win32 API? Pin
redfish348-Jan-06 18:27
redfish348-Jan-06 18:27 
GeneralRe: Has Anyone Created C# Classes for Win32 API? Pin
Chad Smith10-Jan-06 9:57
professionalChad Smith10-Jan-06 9:57 
QuestionCatching unmanaged threaded events with C# Pin
Shtong8-Jan-06 8:10
Shtong8-Jan-06 8:10 
AnswerRe: Catching unmanaged threaded events with C# Pin
Shtong9-Jan-06 10:58
Shtong9-Jan-06 10:58 
QuestionTextbox Cursor Pin
Hellsaint8-Jan-06 6:10
Hellsaint8-Jan-06 6:10 
AnswerRe: Textbox Cursor Pin
Shtong8-Jan-06 8:20
Shtong8-Jan-06 8:20 
QuestionCompression. Pin
aerosmith2k18-Jan-06 5:27
aerosmith2k18-Jan-06 5:27 
AnswerRe: Compression. Pin
mav.northwind8-Jan-06 23:52
mav.northwind8-Jan-06 23:52 
QuestionBinary Serialization asks for IConvertible Pin
peterchen8-Jan-06 3:54
peterchen8-Jan-06 3:54 
QuestionC# OOP Design Pin
XeoN-Kc8-Jan-06 2:58
XeoN-Kc8-Jan-06 2:58 

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.