I put the following in the above event but it doesn’t work but if I put it in the Resized event it does. Should it work in OrientationChanged?
If System.Device.Orientation = System.DeviceData.Orientations.Portrait Then
MessageBox("Portrait")
ListBox.Visible = false
end if
If System.Device.Orientation = System.DeviceData.Orientations.LandscapeLeft Then
MessageBox("landscape")
ListBox.Visible = true
End If
If System.Device.Orientation = System.DeviceData.Orientations.LandscapeRight Then
MessageBox("landscape")
ListBox.Visible = true
End If