Zrob
03-29-2009, 08:16 PM
Hi,
Just thought I would share this with you and maybe get some feed back too. I am kinda new to Visual Studios 2005 using VB and I was creating a special calculator for sheet metal bending. Well I noticed that if I used a Dialog box with the stock buttons (using the Me.Stuff.....) and I inserted my code in them I got a casting error on the text box array to my Double variables; But on another similar program I did not get these errors. Well it took me about an hour before I realized the one difference between the two programs was that on the one that did work, I had made my own button without all that (Me.Stuff) and it was able to cast string arrays from my text box input to a Double. If I used the stock dialog buttons that had the (Me.Stuff...) I got Casting errors and no matter what I did such as CDbl, or Double.Parse nothing worked, made my own simple button and it worked.
WTF :dunno
Anyone have a reason why?
Just thought I would share this with you and maybe get some feed back too. I am kinda new to Visual Studios 2005 using VB and I was creating a special calculator for sheet metal bending. Well I noticed that if I used a Dialog box with the stock buttons (using the Me.Stuff.....) and I inserted my code in them I got a casting error on the text box array to my Double variables; But on another similar program I did not get these errors. Well it took me about an hour before I realized the one difference between the two programs was that on the one that did work, I had made my own button without all that (Me.Stuff) and it was able to cast string arrays from my text box input to a Double. If I used the stock dialog buttons that had the (Me.Stuff...) I got Casting errors and no matter what I did such as CDbl, or Double.Parse nothing worked, made my own simple button and it worked.
WTF :dunno
Anyone have a reason why?