Click here to Skip to main content
15,922,309 members
Home / Discussions / C#
   

C#

 
AnswerRe: Difference between two dates Pin
Nahed Qudieh12-Feb-07 8:53
Nahed Qudieh12-Feb-07 8:53 
Questionminimize to system tray Pin
convivial.developer12-Feb-07 7:57
convivial.developer12-Feb-07 7:57 
Questioninsert value into datagridview Pin
cocoonwls12-Feb-07 7:42
cocoonwls12-Feb-07 7:42 
AnswerRe: insert value into datagridview Pin
Nish Nishant12-Feb-07 8:19
sitebuilderNish Nishant12-Feb-07 8:19 
GeneralRe: insert value into datagridview Pin
cocoonwls12-Feb-07 13:58
cocoonwls12-Feb-07 13:58 
QuestionC# setup project custom action Pin
pole_cat12-Feb-07 7:38
pole_cat12-Feb-07 7:38 
QuestionHow do I do this? Pin
Ranger4912-Feb-07 7:13
Ranger4912-Feb-07 7:13 
AnswerRe: How do I do this? Pin
Ranger4912-Feb-07 8:12
Ranger4912-Feb-07 8:12 
Well, I looked around in articles on this site, and found a reference to a method that creates an instance for an array, where you can determine yourself what the size and type of this array is. So I tried the following way to get to declare an arry of a certain size.

Still I get the following error message and that I don't know what this message means.

Can anyone help me clear this last hurdle..?

Thanks,
Ranger....

Static member 'Aljo3D_1.Storage.MAXNumberOfVectors' cannot be accessed with an instance reference; qualify it with a type name instead

private const int MAXNumberOfVectors = 100;
private const int MAXNumberOfVertices = 200;

public Vector[] StoreVectors;
public int[] StoreVerticesFrom;
public int[] StoreVerticesTo;
public Point2D[] StorePoints;

public Storage()
{
Array StoreVectors = Array.CreateInstance(typeof(Vector), MAXNumberOfVectors);
Array StoreVerticesFrom = Array.CreateInstance(typeof(int), MAXNumberOfVertices);
Array StoreVerticesTo = Array.CreateInstance(typeof(int), MAXNumberOfVertices);
Array StorePoints = Array.CreateInstance(typeof(Point2D), MAXNumberOfVectors);
}

Beginner
GeneralRe: How do I do this? Pin
Ranger4912-Feb-07 8:27
Ranger4912-Feb-07 8:27 
AnswerRe: How do I do this? Pin
Christian Graus12-Feb-07 8:38
protectorChristian Graus12-Feb-07 8:38 
AnswerRe: How do I do this? Pin
Luc Pattyn12-Feb-07 11:56
sitebuilderLuc Pattyn12-Feb-07 11:56 
GeneralRe: How do I do this? Pin
Ranger4912-Feb-07 17:54
Ranger4912-Feb-07 17:54 
Question.Net Remoting Debugging Pin
pssuresh12-Feb-07 7:01
pssuresh12-Feb-07 7:01 
QuestionRE: Updating a live application Pin
Saamir12-Feb-07 6:29
Saamir12-Feb-07 6:29 
AnswerRe: RE: Updating a live application Pin
Ed.Poore12-Feb-07 8:33
Ed.Poore12-Feb-07 8:33 
GeneralRe: RE: Updating a live application Pin
Saamir12-Feb-07 9:16
Saamir12-Feb-07 9:16 
GeneralRe: RE: Updating a live application Pin
Ed.Poore12-Feb-07 10:20
Ed.Poore12-Feb-07 10:20 
GeneralRe: RE: Updating a live application Pin
Saamir13-Feb-07 2:51
Saamir13-Feb-07 2:51 
Questionread ip adress from client Pin
ujupanmester12-Feb-07 5:54
ujupanmester12-Feb-07 5:54 
AnswerRe: read ip adress from client Pin
Bassam Saoud12-Feb-07 6:11
Bassam Saoud12-Feb-07 6:11 
QuestionFirewall Pin
A.m.a.L12-Feb-07 5:46
A.m.a.L12-Feb-07 5:46 
AnswerRe: Firewall Pin
Pete O'Hanlon12-Feb-07 23:39
mvePete O'Hanlon12-Feb-07 23:39 
Questioncapture and play audio Pin
ThetaClear12-Feb-07 5:25
ThetaClear12-Feb-07 5:25 
AnswerRe: capture and play audio Pin
Ed.Poore12-Feb-07 8:35
Ed.Poore12-Feb-07 8:35 
GeneralRe: capture and play audio Pin
ThetaClear12-Feb-07 20:30
ThetaClear12-Feb-07 20:30 

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.