Click here to Skip to main content
15,889,595 members
Home / Discussions / C#
   

C#

 
AnswerRe: New problem with linq just started ... anyone seen this? Pin
RugbyLeague18-Mar-10 5:29
RugbyLeague18-Mar-10 5:29 
GeneralRe: New problem with linq just started ... anyone seen this? Pin
Michael J. Eber18-Mar-10 10:23
Michael J. Eber18-Mar-10 10:23 
GeneralRe: New problem with linq just started ... anyone seen this? Pin
RugbyLeague18-Mar-10 22:46
RugbyLeague18-Mar-10 22:46 
AnswerRe: New problem with linq just started ... anyone seen this? Pin
Keith Barrow18-Mar-10 6:48
professionalKeith Barrow18-Mar-10 6:48 
GeneralRe: New problem with linq just started ... anyone seen this? Pin
Michael J. Eber18-Mar-10 10:22
Michael J. Eber18-Mar-10 10:22 
QuestionGrouping similar taskbar buttons in the Taskbar Pin
stanley1818-Mar-10 3:07
stanley1818-Mar-10 3:07 
AnswerRe: Grouping similar taskbar buttons in the Taskbar Pin
Michael J. Eber18-Mar-10 10:36
Michael J. Eber18-Mar-10 10:36 
QuestionDesign-time code generation; InitializeComponent Pin
phanton18-Mar-10 2:06
phanton18-Mar-10 2:06 
Hi,

I'm writing a UserControl that has similar functionality to the ListView but I'm writing it from scratch, it has columns and rows of type List<t>;

Everything is generally fine with the project its moving along except when I add items to columns or rows at design time, the IDE seems to be doing something odd when generating code in InitializeComponent().

For instance;

private void InitializeComponent()<br />
{<br />
	BigView.Column column1 = new BigView.Column();<br />
	this.bigViewer1 = new BigView.BigViewer();<br />
	column1.Value = "Key";<br />
	column1.Width = 253;<br />
	new BigView.ColList().Add(column1);<br />
}



Every time I re-compile the project the columns are not reloaded in the designer, because the code above never really assosciates the column with my user control. I've tried lots of combination of attributes but nothing solves my problem.

This is what I'd expect the code should look like;

private void InitializeComponent()<br />
{<br />
	BigView.Column column1 = new BigView.Column();<br />
	this.bigViewer1 = new BigView.BigViewer();<br />
	column1.Value = "Key";<br />
	column1.Width = 253;<br />
	this.bigViewer1.Columns.Add(column1);<br />
}


Does anyone know why the designer would do this? Why it creates a column but never adds it to my Columns property?

The columns property is a List<column>. The same thing happens with my rows property which is a List<row>.
AnswerRe: Design-time code generation; InitializeComponent Pin
phanton18-Mar-10 3:56
phanton18-Mar-10 3:56 
GeneralRe: Design-time code generation; InitializeComponent Pin
Speto25-Oct-10 15:26
professionalSpeto25-Oct-10 15:26 
QuestionRun method on client from server Pin
pointdee18-Mar-10 2:02
pointdee18-Mar-10 2:02 
AnswerRe: Run method on client from server Pin
Not Active18-Mar-10 3:14
mentorNot Active18-Mar-10 3:14 
GeneralRe: Run method on client from server Pin
pointdee18-Mar-10 3:37
pointdee18-Mar-10 3:37 
GeneralRe: Run method on client from server Pin
Mirko198018-Mar-10 5:20
Mirko198018-Mar-10 5:20 
QuestionHow to do operation in excel using C#.net Pin
keeperharish18-Mar-10 0:48
keeperharish18-Mar-10 0:48 
AnswerRe: How to do operation in excel using C#.net Pin
Abhinav S18-Mar-10 1:03
Abhinav S18-Mar-10 1:03 
QuestionUpdate the ProgressBar from 2 Threads Pin
Anil Kumar.Arvapalli18-Mar-10 0:20
Anil Kumar.Arvapalli18-Mar-10 0:20 
AnswerRe: Update the ProgressBar from 2 Threads Pin
Keith Barrow18-Mar-10 0:44
professionalKeith Barrow18-Mar-10 0:44 
QuestionSilverlight <-> WinForms Method Invoking Pin
softwarejaeger17-Mar-10 22:57
softwarejaeger17-Mar-10 22:57 
AnswerRe: Silverlight WinForms Method Invoking Pin
Abhinav S17-Mar-10 23:38
Abhinav S17-Mar-10 23:38 
QuestionHow To Iterate the Hashtable in C# Pin
elizas17-Mar-10 21:52
elizas17-Mar-10 21:52 
AnswerRe: How To Iterate the Hashtable in C# Pin
AspDotNetDev17-Mar-10 22:16
protectorAspDotNetDev17-Mar-10 22:16 
GeneralRe: How To Iterate the Hashtable in C# PinPopular
OriginalGriff17-Mar-10 22:45
mveOriginalGriff17-Mar-10 22:45 
GeneralRe: How To Iterate the Hashtable in C# Pin
AspDotNetDev18-Mar-10 0:03
protectorAspDotNetDev18-Mar-10 0:03 
QuestionUpdate Dataset Pin
sjs4u17-Mar-10 21:06
sjs4u17-Mar-10 21:06 

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.