Click here to Skip to main content
16,014,748 members
Home / Discussions / C#
   

C#

 
QuestionMap network drive from remote machine(server) to local machine Pin
chakran16-Jun-08 3:44
chakran16-Jun-08 3:44 
AnswerRe: Map network drive from remote machine(server) to local machine Pin
Zoltan Balazs16-Jun-08 4:11
Zoltan Balazs16-Jun-08 4:11 
GeneralRe: Map network drive from remote machine(server) to local machine Pin
chakran16-Jun-08 4:40
chakran16-Jun-08 4:40 
GeneralRe: Map network drive from remote machine(server) to local machine Pin
Zoltan Balazs16-Jun-08 4:56
Zoltan Balazs16-Jun-08 4:56 
GeneralRe: Map network drive from remote machine(server) to local machine Pin
chakran16-Jun-08 19:31
chakran16-Jun-08 19:31 
QuestionEnable/disable buttons according to txt file Pin
Casper Hansen16-Jun-08 3:00
Casper Hansen16-Jun-08 3:00 
AnswerRe: Enable/disable buttons according to txt file Pin
Christian Graus16-Jun-08 3:02
protectorChristian Graus16-Jun-08 3:02 
GeneralRe: Enable/disable buttons according to txt file Pin
Casper Hansen19-Jun-08 1:07
Casper Hansen19-Jun-08 1:07 
Yeah

I know how to do that, but the problem is that there can be some unvalid data and I dont know how to enable/disable if the data is unvalid

The text file is not the same all the time. The user can change it

So it could look like this:
// Comment
2
0	0	20	177	185	4	// (If any)
0	0	20	75	65	4	// (If any)
0	0	20	85	65	4	// (If any)
0	0	20	95	65	4	// (If any)
0	0	20	15	65	4	// (If any)
0	0	20	55	65	4	// (If any)
0	0	20	91	65	4	// (If any)
end


Or this:
// Comment
2
0	0	20	177	185	4	// (If any)
0	0	20	75	65	4	// (If any)
0	0	20	85	65	4	// (If any)
0	0	20	95	65	4	// (If any)
0	0	20	15	65	4	// (If any)
0	0	20	55	65	4	// (If any)
0	0	20	91	65	4	// (If any)
end
// End of this
// Sh*t


Or
2
0	0	20	91	65	4	// (If any)
end
// No this is the end


If we take the last example the only valid data is 0 0 20 91 65 4 // (If any), so I want to disable the forward and previous button since there is no valid data to go to


I thought of an example where I looped the whole array and searched for a valid data, but couldn seem to figure it out


Here is how I read my text file:
while ((MonsterSetBaseLine = rds.ReadLine()) != null)
{

        // If not then add normal
        MonsterSetBaseDataArray.Add(MonsterSetBaseLine);
 }

}


You might want to see this video:
http://youtube.com/watch?v=yLMDBRms-KU

You can see there are two buttons (forward and previous) where I go through the text file

So if the data is unvalid I skip it and go to the next valid data

Now if there is no valid data left in the text file I want to disable the forward button


Hope you understand my long post
AnswerRe: Enable/disable buttons according to txt file Pin
Casper Hansen21-Jun-08 1:36
Casper Hansen21-Jun-08 1:36 
QuestionWhy i always received mail sent by c# code in spam not inbox???? Pin
malak nour16-Jun-08 2:54
malak nour16-Jun-08 2:54 
AnswerRe: Why i always received mail sent by c# code in spam not inbox???? Pin
Christian Graus16-Jun-08 3:01
protectorChristian Graus16-Jun-08 3:01 
AnswerRe: Why i always received mail sent by c# code in spam not inbox???? Pin
Simon P Stevens16-Jun-08 3:03
Simon P Stevens16-Jun-08 3:03 
QuestionHow to Write PlugIn for our Applications in C# 2.0 ? Pin
hdv21216-Jun-08 2:43
hdv21216-Jun-08 2:43 
AnswerRe: How to Write PlugIn for our Applications in C# 2.0 ? Pin
Christian Graus16-Jun-08 2:46
protectorChristian Graus16-Jun-08 2:46 
GeneralRe: How to Write PlugIn for our Applications in C# 2.0 ? Pin
ali35416-Jun-08 13:33
ali35416-Jun-08 13:33 
AnswerRe: How to Write PlugIn for our Applications in C# 2.0 ? Pin
Simon P Stevens16-Jun-08 2:55
Simon P Stevens16-Jun-08 2:55 
GeneralRe: How to Write PlugIn for our Applications in C# 2.0 ? Pin
ali35416-Jun-08 13:34
ali35416-Jun-08 13:34 
Questionwhy constructor ??? Pin
tasumisra16-Jun-08 2:14
tasumisra16-Jun-08 2:14 
AnswerRe: why constructor ??? Pin
Christian Graus16-Jun-08 2:30
protectorChristian Graus16-Jun-08 2:30 
GeneralRe: why constructor ??? Pin
tasumisra16-Jun-08 3:03
tasumisra16-Jun-08 3:03 
GeneralRe: why constructor ??? Pin
Christian Graus16-Jun-08 3:08
protectorChristian Graus16-Jun-08 3:08 
GeneralRe: why constructor ??? Pin
darkelv16-Jun-08 5:14
darkelv16-Jun-08 5:14 
Questionmake active x component Pin
justintimberlake16-Jun-08 2:05
justintimberlake16-Jun-08 2:05 
AnswerRe: make active x component Pin
Christian Graus16-Jun-08 2:31
protectorChristian Graus16-Jun-08 2:31 
QuestionApplication of nunit for the method that does not return value Pin
sowmya k16-Jun-08 1:58
sowmya k16-Jun-08 1:58 

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.