GUI を作成しましたValueBox.Text
。これは文字列「randomstring」です。私がやりたいことは次のとおりです。
文字 && 数字または文字のみが含まれる場合ValueBox.Text
は数字のみ double valueLenght = Convert.ToDouble(ValueBox.Text);
が含まれる場合、MSDN から Convert.ToDouble(string) は 0 を返すと考えました。ここではそうではありません。コードは次の場所に移動します。
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
次に、からの例外を与えますmscorlib