3
Answers

VS Designer keeps resetting my properties

Rennest

Rennest

19y
2.2k
1
It's really annoying, I have made a control which displays two boxes, which has two orienations - vertical or horizontal - which you can change by changing a property on the control in designer - which works fine. it compiles and runs fine and as I want However, then when you come back to the code, it has changed the orientation back to what it is by default. Unforuntalely the orientation changes the size of the control also, so it ends up completely wrecked I cannot think why it might be doing this. Anyone met it?
Answers (3)
0
Peter

Peter

NA 4 0 15y
That much I know.  My question is, why one PC converts 1 to string and gets "1" and the other does the same thing and gets "1.0"?
0
Manish Dwivedi

Manish Dwivedi

NA 8.3k 1.2m 15y
Hi

This is happening due to this res = "1.0" {string} while converting.

because you are using int.TryParse so u have to pass the values like 1,2,123,10 etc in the res parameter.

I think u got it.
Next Recommended Forum