Click here to Skip to main content
15,922,015 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: about void Pin
Mark Salsbery5-May-07 22:16
Mark Salsbery5-May-07 22:16 
AnswerRe: about void Pin
John R. Shaw6-May-07 8:04
John R. Shaw6-May-07 8:04 
QuestionC++ Coding Pin
Naman20075-May-07 2:31
Naman20075-May-07 2:31 
AnswerRe: C++ Coding Pin
sarah_malik5-May-07 12:01
sarah_malik5-May-07 12:01 
QuestionPrevious Form Pin
Debun5-May-07 1:32
Debun5-May-07 1:32 
AnswerRe: Previous Form Pin
sarah_malik5-May-07 11:40
sarah_malik5-May-07 11:40 
QuestionWhere has edit control gone and how do I convert a string to a numeric Pin
BuckBrown4-May-07 11:57
BuckBrown4-May-07 11:57 
AnswerRe: Where has edit control gone and how do I convert a string to a numeric Pin
Mark Salsbery4-May-07 12:41
Mark Salsbery4-May-07 12:41 
I'll leave the Forms stuff to the experts (I still use MFC for UI Smile | :) )...

BuckBrown wrote:
use a textBox control and then convert the string to a numeric? If so, how do you do this conversion?


The Sytem::Convert class can do these conversions:
try
{
   int textboxint = System::Convert::ToInt32(MyTextBox->Text);
   double textboxdouble = System::Convert::ToDouble(MyTextBox->Text);
   // etc.
} 
catch (System::OverflowException*) 
{
   System::Console::WriteLine("Numeric Overflow");
}
catch (System::FormatException*) 
{
   System::Console::WriteLine("Bad string format");
} 
catch (System::ArgumentException*) 
{
   System::Console::WriteLine("NULL String");
}



"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

GeneralRe: Where has edit control gone and how do I convert a string to a numeric Pin
BuckBrown4-May-07 13:18
BuckBrown4-May-07 13:18 
GeneralRe: Where has edit control gone and how do I convert a string to a numeric Pin
Mark Salsbery4-May-07 14:14
Mark Salsbery4-May-07 14:14 
GeneralRe: Where has edit control gone and how do I convert a string to a numeric Pin
led mike4-May-07 16:47
led mike4-May-07 16:47 
GeneralRe: Where has edit control gone and how do I convert a string to a numeric Pin
Mark Salsbery5-May-07 6:06
Mark Salsbery5-May-07 6:06 
QuestionAscending decending arrows in ListView columns Pin
BuckBrown4-May-07 8:28
BuckBrown4-May-07 8:28 
AnswerRe: Ascending decending arrows in ListView columns Pin
Mark Salsbery4-May-07 9:39
Mark Salsbery4-May-07 9:39 
GeneralRe: Ascending decending arrows in ListView columns Pin
BuckBrown4-May-07 10:08
BuckBrown4-May-07 10:08 
QuestionJavascript / DOM Implementing on C++ Pin
Freezerg3-May-07 15:27
Freezerg3-May-07 15:27 
AnswerRe: Javascript / DOM Implementing on C++ Pin
George L. Jackson3-May-07 16:50
George L. Jackson3-May-07 16:50 
AnswerRe: Javascript / DOM Implementing on C++ Pin
Freezerg3-May-07 17:28
Freezerg3-May-07 17:28 
QuestionHelp in Console app Pin
Nerd20103-May-07 14:23
Nerd20103-May-07 14:23 
AnswerRe: Help in Console app Pin
George L. Jackson3-May-07 14:26
George L. Jackson3-May-07 14:26 
GeneralRe: Help in Console app Pin
Nerd20103-May-07 15:03
Nerd20103-May-07 15:03 
GeneralRe: Help in Console app Pin
George L. Jackson3-May-07 16:21
George L. Jackson3-May-07 16:21 
Questionhelp me pls.......... Pin
Hamsika rani3-May-07 14:18
Hamsika rani3-May-07 14:18 
AnswerRe: help me pls.......... Pin
George L. Jackson3-May-07 14:24
George L. Jackson3-May-07 14:24 
GeneralRe: help me pls.......... Pin
Hamsika rani3-May-07 14:40
Hamsika rani3-May-07 14:40 

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.