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

C#

 
AnswerRe: How do I print the address of a reference? Pin
dan!sh 14-Dec-08 17:21
professional dan!sh 14-Dec-08 17:21 
GeneralRe: How do I print the address of a reference? Pin
Shao Voon Wong15-Dec-08 14:06
mvaShao Voon Wong15-Dec-08 14:06 
AnswerRe: How do I print the address of a reference? Pin
Guffa14-Dec-08 20:47
Guffa14-Dec-08 20:47 
GeneralRe: How do I print the address of a reference? Pin
Shao Voon Wong15-Dec-08 14:00
mvaShao Voon Wong15-Dec-08 14:00 
QuestionHow to create a jagged array of multiple data-type data? Pin
LightIceStorm14-Dec-08 14:41
LightIceStorm14-Dec-08 14:41 
AnswerRe: How to create a jagged array of multiple data-type data? Pin
Colin Angus Mackay14-Dec-08 14:48
Colin Angus Mackay14-Dec-08 14:48 
GeneralRe: How to create a jagged array of multiple data-type data? Pin
Luc Pattyn14-Dec-08 15:08
sitebuilderLuc Pattyn14-Dec-08 15:08 
AnswerRe: How to create a jagged array of multiple data-type data? [modified] Pin
Guffa14-Dec-08 15:44
Guffa14-Dec-08 15:44 
You are not thinking object oriented enough. You don't use a jagged array for something like that, you use a list of custom objects.

Create a class:
public class AxisLabel {

   public int Id { get; private set; }
   public string Name { get; private set; }
   public Color Color { get; private set; }
   public Rectangle Rectangle { get; private set; }

   public AxisLabel(int id, string name, Color color, Rectangle rectangle) {
      Id = id;
      Name = name;
      Color = color;
      Rectangle = rectangle;
   }

}

Create a list of objects:
List<AxisLabel> axisLabelItems = new List<AxisLabel>();

Add in item to the list:
axisLabelItems.Add(new AxisLabel(1, "TEST1", Color.Black, new Rectangle(1,2,3,4)));


LightIceStorm wrote:
Why are there all the new lines above the html-table?


Because you have <br /> tags between the rows and cells in the table. As they don't belong there, they are displayed outside the table, in this case the browser chose to display them before the table.

[Edit]
Corrected some encoding in the code.

Despite everything, the person most likely to be fooling you next is yourself.

modified on Monday, December 15, 2008 6:06 PM

GeneralRe: How to create a jagged array of multiple data-type data? Pin
Mycroft Holmes14-Dec-08 19:26
professionalMycroft Holmes14-Dec-08 19:26 
GeneralRe: How to create a jagged array of multiple data-type data? Pin
LightIceStorm15-Dec-08 9:57
LightIceStorm15-Dec-08 9:57 
GeneralRe: How to create a jagged array of multiple data-type data? Pin
Guffa15-Dec-08 12:03
Guffa15-Dec-08 12:03 
QuestionLoading Multiple Images to a Picture Box Pin
User 543536414-Dec-08 14:19
User 543536414-Dec-08 14:19 
AnswerRe: Loading Multiple Images to a Picture Box Pin
Christian Graus14-Dec-08 17:17
protectorChristian Graus14-Dec-08 17:17 
GeneralRe: Loading Multiple Images to a Picture Box Pin
User 543536414-Dec-08 17:30
User 543536414-Dec-08 17:30 
GeneralRe: Loading Multiple Images to a Picture Box Pin
Lev Danielyan14-Dec-08 19:16
Lev Danielyan14-Dec-08 19:16 
QuestionC# Xml struggles Pin
lszanto14-Dec-08 12:56
lszanto14-Dec-08 12:56 
AnswerRe: C# Xml struggles Pin
lszanto14-Dec-08 12:58
lszanto14-Dec-08 12:58 
AnswerRe: C# Xml struggles Pin
Colin Angus Mackay14-Dec-08 14:20
Colin Angus Mackay14-Dec-08 14:20 
GeneralRe: C# Xml struggles Pin
lszanto14-Dec-08 14:33
lszanto14-Dec-08 14:33 
QuestionForm turning into component Pin
kod3brkr14-Dec-08 12:41
kod3brkr14-Dec-08 12:41 
AnswerRe: Form turning into component Pin
Colin Angus Mackay14-Dec-08 14:07
Colin Angus Mackay14-Dec-08 14:07 
GeneralRe: Form turning into component Pin
kod3brkr14-Dec-08 14:19
kod3brkr14-Dec-08 14:19 
GeneralRe: Form turning into component Pin
Colin Angus Mackay14-Dec-08 14:27
Colin Angus Mackay14-Dec-08 14:27 
GeneralRe: Form turning into component Pin
kod3brkr14-Dec-08 16:07
kod3brkr14-Dec-08 16:07 
GeneralRe: Form turning into component Pin
Colin Angus Mackay14-Dec-08 21:37
Colin Angus Mackay14-Dec-08 21:37 

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.