2
I have a Picture Box, and in some part of the code I edit the horizontal size (x) of it, then further down in the code, I need to edit only the vertical size (y). I want the size of (x) to remain the same as it is currently.
Just one example:
pb->Size = System::Drawing::Size(2, 110 + 8);
pb->Size = System::Drawing::Size(AQUI SERIA ALGO QUE CONTENHA O VALOR ATUAL DE X, 110 + 9);
Or some other alternative to achieve the same result.
Remembering that I want x size and not x location
In . NET In C++ Only "." Is Used for Variables ?
– axell-brendow
If you use
->
when the left variable is a pointer, such aspb
. But if you use.
if it is a direct reference, such aspb->Size
. In this respect, C++ is identical to C.– Guilherme Bernal