Click here to Skip to main content
15,903,802 members
Home / Discussions / C#
   

C#

 
AnswerRe: pocket pc client in tcp/ip Pin
Not Active3-Oct-07 4:01
mentorNot Active3-Oct-07 4:01 
QuestionHow to put red color border on picturebox.??? Pin
Chintan.Desai3-Oct-07 0:51
Chintan.Desai3-Oct-07 0:51 
AnswerRe: How to put red color border on picturebox.??? Pin
Anthony Mushrow3-Oct-07 1:11
professionalAnthony Mushrow3-Oct-07 1:11 
QuestionMDI Problem & Controls Resizing Pin
sajid.salim.khan3-Oct-07 0:41
sajid.salim.khan3-Oct-07 0:41 
AnswerRe: MDI Problem & Controls Resizing Pin
Parwej Ahamad3-Oct-07 1:06
professionalParwej Ahamad3-Oct-07 1:06 
AnswerRe: MDI Problem & Controls Resizing Pin
Chintan.Desai3-Oct-07 1:08
Chintan.Desai3-Oct-07 1:08 
QuestionDisplaying different values in a datagridviewcomboboxcolumn Pin
sudjp3-Oct-07 0:19
sudjp3-Oct-07 0:19 
QuestionGet the public types from object in a polymorphic list Pin
gizmokaka3-Oct-07 0:17
gizmokaka3-Oct-07 0:17 
Hello to all,
this is my problem,
I have a list of objects of type message_A. message_A is a specific message with it's own types.
I of course have Message_B and message_C etc.
I now want to create a List to hold all kinds of messages, using polymorphism.
in order to do that, I created an empty class called messages(for instance) and made
every message type inherit from it.
this way I am able to do:

List<messages> myMess = new List<messages>();
messages Amessage = new message_A();
myMess.Add(Amesssage);


this works fine, the problem is when I want to use data from the myMess[i] type, I can't reach
that data.
meaning, this won't work:

DT = myMess[i].timeStemp;


when writing the dot "." I can't access any of the public types of message_A It was created from.

Please Help me.
I am kind of new to C# specifically and Programming all together.

Thank you.
regards.

P.S
all the code snippets I gave were written here and not real code from my program
because it's more scattered there.
the code here is supposed to explain my issue. if you need more info just ask
and I will provide real code if necessary.
AnswerRe: Get the public types from object in a polymorphic list Pin
Christian Graus3-Oct-07 0:29
protectorChristian Graus3-Oct-07 0:29 
GeneralRe: Get the public types from object in a polymorphic list Pin
gizmokaka3-Oct-07 0:56
gizmokaka3-Oct-07 0:56 
GeneralRe: Get the public types from object in a polymorphic list Pin
Christian Graus3-Oct-07 11:09
protectorChristian Graus3-Oct-07 11:09 
QuestionData is Null. This method or property cannot be called on Null values. Pin
Mirunab2-Oct-07 23:05
Mirunab2-Oct-07 23:05 
AnswerRe: Data is Null. This method or property cannot be called on Null values. Pin
Mustafa Ismail Mustafa2-Oct-07 23:14
Mustafa Ismail Mustafa2-Oct-07 23:14 
QuestionSQL Query Pin
Llama_42-Oct-07 22:22
Llama_42-Oct-07 22:22 
AnswerRe: SQL Query Pin
Christian Graus2-Oct-07 22:35
protectorChristian Graus2-Oct-07 22:35 
GeneralRe: SQL Query Pin
Llama_42-Oct-07 22:56
Llama_42-Oct-07 22:56 
GeneralRe: SQL Query Pin
Pete O'Hanlon2-Oct-07 23:04
mvePete O'Hanlon2-Oct-07 23:04 
GeneralRe: SQL Query Pin
Llama_42-Oct-07 23:11
Llama_42-Oct-07 23:11 
GeneralRe: SQL Query Pin
Christian Graus2-Oct-07 23:38
protectorChristian Graus2-Oct-07 23:38 
AnswerRe: SQL Query Pin
Islam Khalil Saber2-Oct-07 22:55
Islam Khalil Saber2-Oct-07 22:55 
GeneralRe: SQL Query Pin
Colin Angus Mackay3-Oct-07 1:01
Colin Angus Mackay3-Oct-07 1:01 
GeneralRe: SQL Query Pin
Islam Khalil Saber3-Oct-07 2:34
Islam Khalil Saber3-Oct-07 2:34 
GeneralRe: SQL Query Pin
Colin Angus Mackay3-Oct-07 3:09
Colin Angus Mackay3-Oct-07 3:09 
QuestionScheduling processes? Pin
kbalias2-Oct-07 22:21
kbalias2-Oct-07 22:21 
AnswerRe: Scheduling processes? Pin
N a v a n e e t h2-Oct-07 22:36
N a v a n e e t h2-Oct-07 22:36 

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.