|
||||||
| Managed C++ Visual Studio .NET managed C++ Topics |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
| Sponsored Links |
|
|
|
|||
|
Ahh, this is managed C++? .NET 2.0?
Your timer interval is in seconds and you just want to display time left? Code:
private: System::Void timer1_Tick(System::Object^ sender, System::EventArgs^ e)
{
// Update the timer
intTimerCounter++;
textBox2->Text = System::ConvertToString(30 - intTimerCounter);
if( intTimerCounter == 30 )
{
// If the timer reaches 30, disable
// the buttons
button1->Enabled = false;
button2->Enabled = false;
__________________
I Need Help |
|
|||||
|
Thanks NeedHelp
Your line make sense. I changed "ConvertToString" to "Convert" since Intellisense does not recognize ConvertToString. I did both but came with an error. The command textBox2->Text is to see text only. Would it be another command to see a variable or a timer in a text box? P.S. Sorry I see my post should have been in the Managed C++. Maybe a MODO could transfer my post. Thank you |
|
|||||
|
Hey Viper,
I just loaded VC++ 2005 (.NET 2.0) and textBox1->Text is correct. Here is the function I used: Code:
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
textBox1->Text = "Test";
}
Code:
textBox2->Text = Convert::ToString(30 - intTimerCounter);
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages! |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [C] Comparison problem | Alhazred | C and C++ | 1 | 08-29-2007 05:58 AM |
| HTML table vertical aligning problem | Carrym | HTML Programming | 2 | 03-22-2007 11:04 PM |
| HTML Basic Formatting | clookid | Tutorials | 14 | 03-06-2007 04:10 PM |
| Glass text - Photoshop | ahsan16 | Photoshop Tutorials | 3 | 01-11-2007 11:35 PM |
| Generate text with transparent background | AfTriX | PHP Tutorials | 1 | 01-08-2007 03:13 AM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |