If the y component for a control location is the same when moved, why is it showing at a different height in the scree when running

  • Thread starter Thread starter AWIcurrent
  • Start date Start date
A

AWIcurrent

Guest
I have a control. combobox10 that when it gets focus I am expanding its size on screen to show more information.

However the actual on screen performance has the combobox10 getting wider as desired but the location is shifting to a lower place on the screen. Note the 692 Y setting in location does not vary. The move is very annoying to say the least. Any recommendations would be appreciated. I would think this would not be impacted by screen preferences set on the PC, but is that a possible cause?

Thank you for your assistance on this.


The code is the following.


Private Sub ComboBox10_GotFocus(sender As Object, e As EventArgs) Handles ComboBox10.GotFocus


ComboBox10.BringToFront()





ComboBox10.Size = New System.Drawing.Size(1706, 33)


ComboBox10.Location = New System.Drawing.Point(153, 692)


End Sub





Private Sub ComboBox10_LostFocus(sender As Object, e As EventArgs) Handles ComboBox10.LostFocus


ComboBox10.SendToBack()


ComboBox10.Location = New System.Drawing.Point(1257, 692)


ComboBox10.Size = New System.Drawing.Size(602, 33)


End Sub

Continue reading...
 
Back
Top