Click here to Skip to main content
15,902,636 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to send two responses to one request Pin
prasadbuddhika14-Dec-08 20:35
prasadbuddhika14-Dec-08 20:35 
GeneralRe: how to send two responses to one request Pin
Christian Graus14-Dec-08 20:53
protectorChristian Graus14-Dec-08 20:53 
QuestionOpen Source SMTP server (C#) Pin
Tiger45614-Dec-08 17:37
Tiger45614-Dec-08 17:37 
AnswerRe: Open Source SMTP server (C#) Pin
Christian Graus14-Dec-08 17:54
protectorChristian Graus14-Dec-08 17:54 
GeneralRe: Open Source SMTP server (C#) Pin
Tiger45615-Dec-08 16:53
Tiger45615-Dec-08 16:53 
Questionhow c sharp interact with asp without integrate in a webserver Pin
walile114-Dec-08 17:03
walile114-Dec-08 17:03 
AnswerRe: how c sharp interact with asp without integrate in a webserver Pin
Christian Graus14-Dec-08 17:20
protectorChristian Graus14-Dec-08 17:20 
GeneralRe: how c sharp interact with asp without integrate in a webserver Pin
walile115-Dec-08 3:44
walile115-Dec-08 3:44 
Questiondifference between appsettings and settings Pin
bhatted14-Dec-08 16:57
bhatted14-Dec-08 16:57 
AnswerRe: difference between appsettings and settings Pin
Brij14-Dec-08 17:11
mentorBrij14-Dec-08 17:11 
Questionconfiguring usb to rs-232 converter Pin
Faysal14-Dec-08 16:38
Faysal14-Dec-08 16:38 
AnswerRe: configuring usb to rs-232 converter Pin
Phil J Pearson15-Dec-08 3:15
Phil J Pearson15-Dec-08 3:15 
QuestionHow do I print the address of a reference? Pin
Shao Voon Wong14-Dec-08 16:19
mvaShao Voon Wong14-Dec-08 16:19 
AnswerRe: How do I print the address of a reference? Pin
Christian Graus14-Dec-08 17:18
protectorChristian Graus14-Dec-08 17:18 
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 
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 

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.