1.)
In a little mediaplayer app I'm doing I have a SeekBar.
In the initial layout it is set to a .Value of 50. [This
is used to control mediaplayer volume.]
During play in portrait mode, I drag it to, oh, say,
a value of 83.
When I rotate to landscape mode, the SeekBar.Value
immediately sets itself back to 50 (the initial design
setting).
I tried setting:
If UserChanged = False Then Return
in the SeekBar_ValueChanged Sub -- but that does
not do it.
I assume that this is because the layout is reloaded.
How do I get around this?
2.)
Just in general, is there a way to detect when
rotation takes place?
Thanks!
David
-----
David Sosnowski
The Music of David Sosnowski
In a little mediaplayer app I'm doing I have a SeekBar.
In the initial layout it is set to a .Value of 50. [This
is used to control mediaplayer volume.]
During play in portrait mode, I drag it to, oh, say,
a value of 83.
When I rotate to landscape mode, the SeekBar.Value
immediately sets itself back to 50 (the initial design
setting).
I tried setting:
If UserChanged = False Then Return
in the SeekBar_ValueChanged Sub -- but that does
not do it.
I assume that this is because the layout is reloaded.
How do I get around this?
2.)
Just in general, is there a way to detect when
rotation takes place?
Thanks!
David
-----
David Sosnowski
The Music of David Sosnowski