Click here to Skip to main content
15,904,652 members
Home / Discussions / C#
   

C#

 
GeneralRe: Any help Christian? :) Pin
Christian Graus24-Aug-05 14:57
protectorChristian Graus24-Aug-05 14:57 
GeneralRe: Any help Christian? :) Pin
amitmohanty24-Aug-05 15:07
amitmohanty24-Aug-05 15:07 
GeneralRe: Any help Christian? :) Pin
Christian Graus24-Aug-05 15:09
protectorChristian Graus24-Aug-05 15:09 
GeneralRe: Any help Christian? :) Pin
amitmohanty24-Aug-05 15:43
amitmohanty24-Aug-05 15:43 
GeneralRe: Any help Christian? :) Pin
Christian Graus24-Aug-05 16:06
protectorChristian Graus24-Aug-05 16:06 
GeneralRe: Any help Christian? :) Pin
amitmohanty24-Aug-05 16:14
amitmohanty24-Aug-05 16:14 
GeneralRe: Class Question from Newbie Pin
Christian Graus24-Aug-05 13:52
protectorChristian Graus24-Aug-05 13:52 
GeneralRe: Class Question from Newbie Pin
Christian Graus24-Aug-05 14:10
protectorChristian Graus24-Aug-05 14:10 
VickyC# wrote:
Practically the RoomObjects is public. But does not appear.

It can't be practically public, either your instance of the class is public, or it isn't.

VickyC# wrote:
public class Room {
protected string _name;
public Room() { }
public string Name {
get {return _name; }
set {_name = value; }
}

public class RoomObjects : System.Collections.CollectionBase {
public void RoomObjects{}
public void Add(RoomObject roomObject) { List.Add(roomObject); }
.
.
.
public RoomObject Item(int Index) { return (RoomObject) List[Index]; }
}
}
and RoomObject is just another class.


This is a class within a class. Room.RoomObjects.xxx will only show static members, you'd need an *instance* of this class that is public to call non static methods like Add and Count. Does an instance of this class exist inside Room, or just the class itself ?



Christian Graus - Microsoft MVP - C++
GeneralFinding Friday Pin
eggie524-Aug-05 12:28
eggie524-Aug-05 12:28 
GeneralRe: Finding Friday Pin
Christian Graus24-Aug-05 12:45
protectorChristian Graus24-Aug-05 12:45 
GeneralNumericUpDown Problem Pin
wjr-itt24-Aug-05 12:14
wjr-itt24-Aug-05 12:14 
GeneralRe: NumericUpDown Problem Pin
Christian Graus24-Aug-05 12:47
protectorChristian Graus24-Aug-05 12:47 
GeneralRe: NumericUpDown Problem Pin
wjr-itt24-Aug-05 13:42
wjr-itt24-Aug-05 13:42 
GeneralRe: NumericUpDown Problem Pin
Christian Graus24-Aug-05 13:50
protectorChristian Graus24-Aug-05 13:50 
GeneralRe: NumericUpDown Problem Pin
wjr-itt24-Aug-05 13:58
wjr-itt24-Aug-05 13:58 
GeneralRe: NumericUpDown Problem Pin
Christian Graus24-Aug-05 14:06
protectorChristian Graus24-Aug-05 14:06 
GeneralRe: NumericUpDown Problem Pin
wjr-itt24-Aug-05 14:16
wjr-itt24-Aug-05 14:16 
GeneralRe: NumericUpDown Problem Pin
Christian Graus24-Aug-05 14:23
protectorChristian Graus24-Aug-05 14:23 
GeneralRe: NumericUpDown Problem Pin
wjr-itt25-Aug-05 4:00
wjr-itt25-Aug-05 4:00 
GeneralGRAPHICS IN C# and ASP.net Pin
Anonymous24-Aug-05 12:08
Anonymous24-Aug-05 12:08 
GeneralRe: GRAPHICS IN C# and ASP.net Pin
Christian Graus24-Aug-05 12:45
protectorChristian Graus24-Aug-05 12:45 
GeneralAccessing parts of identical use controls Pin
Mikan2324-Aug-05 11:35
Mikan2324-Aug-05 11:35 
GeneralRe: Accessing parts of identical use controls Pin
rudy.net24-Aug-05 17:03
rudy.net24-Aug-05 17:03 
GeneralRe: Accessing parts of identical use controls Pin
Mikan2324-Aug-05 19:21
Mikan2324-Aug-05 19:21 
Generalgetting partial url Pin
philly_dan24-Aug-05 11:19
philly_dan24-Aug-05 11:19 

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.