if (progressBar1->Value == 2000;
{
label1->Text = "Hello";
}

Edited 5 Years Ago by emreozpalamutcu: n/a

Your missing a ) and have one too many ;

if (progressBar1->Value == 2000)
{
label1->Text = "Hello";
}

Edited 5 Years Ago by gerard4143: n/a

Thanks...
Is there something wrong with this one too?

if (array<Process^>^localByName = Process::GetProcessesByName( "7zFM.exe" ))
{
label1->Text = "Loaded: 7-Zip";
}

Edited 5 Years Ago by emreozpalamutcu: n/a

It ment to see if the "7zFM" process is running and if it's running it should change text on label but i dont know if it's right!

Well if you're not coding in C++, you've perhaps not picked the best forum on which to ask questions. :)

It's C++/CLI (used on the CLR in .NET) and it's certainly welcome here.

Fair enough. I was misled by the words "Our C++ forum is the place for Q&A-style discussions related to this popular language"; to my mind, CLI is not C++, but I can see how one could argue it is related to it.

Can I ask about ALGOL? :)

Edited 5 Years Ago by Moschops: n/a

Fair enough. I was misled by the words "Our C++ forum is the place for Q&A-style discussions related to this popular language"; to my mind, CLI is not C++, but I can see how one could argue it is related to it.

I never said that it was C++ in the purest sense, just that questions about it were welcome here.

Can I ask about ALGOL? :)

You certainly can, but it will probably get moved to the "Legacy and Other Languages" forum and get all of the attention it deserves. ;)

This article has been dead for over six months. Start a new discussion instead.