|
||||||
| 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 Don't hesitate to ask any questions that you have! Check out our ASCII Calculator! |
![]() |
| 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 04:58 AM |
| HTML table vertical aligning problem | Carrym | HTML Programming | 2 | 03-22-2007 10:04 PM |
| HTML Basic Formatting | clookid | Tutorials | 14 | 03-06-2007 03:10 PM |
| Glass text - Photoshop | ahsan16 | Photoshop Tutorials | 3 | 01-11-2007 10:35 PM |
| Generate text with transparent background | AfTriX | PHP Tutorials | 1 | 01-08-2007 02:13 AM |
| John | ........ | 223.00000 |
| dargueta | ........ | 168.00000 |
| Xav | ........ | 164.00000 |
| LogicKills | ........ | 20.00000 |
| gaylo565 | ........ | 18.00000 |
| WingedPanther | ........ | 15.00000 |
| |pH| | ........ | 15.00000 |
| Johnnyboy | ........ | 3.00000 |
| navghost | ........ | 1.00000 |
Goal: 100,000 Posts
Complete: 67%