Click here to Skip to main content
15,908,931 members
Home / Discussions / C#
   

C#

 
QuestionHow can I hide a new app started with Button1 Pin
bklynjava118-Dec-05 13:53
bklynjava118-Dec-05 13:53 
AnswerRe: How can I hide a new app started with Button1 Pin
Dave Kreskowiak18-Dec-05 14:51
mveDave Kreskowiak18-Dec-05 14:51 
GeneralRe: How can I hide a new app started with Button1 Pin
bklynjava118-Dec-05 15:08
bklynjava118-Dec-05 15:08 
GeneralRe: How can I hide a new app started with Button1 Pin
Dave Kreskowiak18-Dec-05 17:13
mveDave Kreskowiak18-Dec-05 17:13 
GeneralRe: How can I hide a new app started with Button1 Pin
bklynjava118-Dec-05 18:49
bklynjava118-Dec-05 18:49 
QuestionNeed help with how to begin on a project. Pin
Courtesy of Illusion18-Dec-05 13:15
Courtesy of Illusion18-Dec-05 13:15 
AnswerRe: Need help with how to begin on a project. Pin
g00fyman18-Dec-05 13:36
g00fyman18-Dec-05 13:36 
QuestionNeed help with a Struct or Class (array) Pin
flicktom18-Dec-05 12:35
flicktom18-Dec-05 12:35 
I have a C# problem that I need a solution for. I've pretty much mastered in in VB6, but keep running into brick walls, even with all the tutorials for C#.

Here's the definition of the variables you're about to see...
"ClassStudents" is a class I created to manage an array of students read in from...
"LogReader" This is the name given to the SQL select statement that returns the information I'm trying to use.
"logCount" is simply to keep the array element in check.

while (LogReader.Read())
{
ClassStudents[] Students = new ClassStudents[logCount+1];
Students[logCount].setKnown(LogReader.GetInt32(0), LogReader.GetString(1).....
logCount++;
}

Basically, I need to be able to populate an array of what in VB6 would be a simple 'Type' so I can go back to it for data 'after' the fact.

Everything's fine until I leave the while loop, at which point I seem to lose the ability to reference the "Students" array I created. I tried using Structs as well. I know it must be a fundamental rule I'm breaking, but I just can't find any reference to what is happening in any documentation or help files. I found a post basically outlining the method I'm using, but they stop short of any reason why I wouldn't be able to access the data outside of where it was populated. Kinda defeats the purpose, if you ask me.
AnswerRe: Need help with a Struct or Class (array) Pin
[Marc]18-Dec-05 12:56
[Marc]18-Dec-05 12:56 
GeneralRe: Need help with a Struct or Class (array) Pin
flicktom18-Dec-05 15:46
flicktom18-Dec-05 15:46 
AnswerRe: Need help with a Struct or Class (array) Pin
Guffa18-Dec-05 18:59
Guffa18-Dec-05 18:59 
GeneralRe: Need help with a Struct or Class (array) Pin
flicktom18-Dec-05 20:01
flicktom18-Dec-05 20:01 
AnswerRe: Need help with a Struct or Class (array) Pin
Guffa18-Dec-05 13:22
Guffa18-Dec-05 13:22 
GeneralRe: Need help with a Struct or Class (array) Pin
[Marc]18-Dec-05 14:32
[Marc]18-Dec-05 14:32 
QuestionHow to add Timer to class in C# ? Pin
Yanshof18-Dec-05 8:44
Yanshof18-Dec-05 8:44 
AnswerRe: How to add Timer to class in C# ? Pin
Andy Brummer18-Dec-05 13:13
sitebuilderAndy Brummer18-Dec-05 13:13 
QuestionNew Combobox Challenge! Pin
SpeBeeTo18-Dec-05 7:21
SpeBeeTo18-Dec-05 7:21 
QuestionHow set new system date and time in .NET Framework? Pin
Andrey_Mark18-Dec-05 4:39
Andrey_Mark18-Dec-05 4:39 
AnswerRe: How set new system date and time in .NET Framework? Pin
Colin Angus Mackay18-Dec-05 5:16
Colin Angus Mackay18-Dec-05 5:16 
GeneralRe: How set new system date and time in .NET Framework? Pin
Andrey_Mark21-Dec-05 8:11
Andrey_Mark21-Dec-05 8:11 
QuestionInteract Pin
nc3b18-Dec-05 4:23
nc3b18-Dec-05 4:23 
AnswerRe: Interact Pin
Colin Angus Mackay18-Dec-05 5:11
Colin Angus Mackay18-Dec-05 5:11 
GeneralRe: Interact Pin
nc3b19-Dec-05 7:19
nc3b19-Dec-05 7:19 
QuestionAn object reference is required for the nonstatic field, method, or property Pin
ESTAN18-Dec-05 1:48
ESTAN18-Dec-05 1:48 
AnswerRe: An object reference is required for the nonstatic field, method, or property Pin
S. Senthil Kumar18-Dec-05 2:03
S. Senthil Kumar18-Dec-05 2:03 

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.