Setting Location Property with VB.NET |
Post Reply |
Author | |
burnsjm
Newbie Joined: 18 April 2007 Location: United States Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 18 April 2007 at 12:57pm |
I have an application in VB.NET that was converted from VB6. The issue I'm having regards the showing of the date picker. The control is hidden by default and appears (or should I say is supposed to show up) next to the command button on the form. The control shows, but is not in the location I need it to be. I have been unable to find code that will alter the Location.X and Location.Y properties. Any ideas are greatly appreciated. Here's the code that I'm using that brings up an error:
wndDatePickerPopUp.Location.X = Me.cmdF2Lookup(Index).Width + Me.cmdF2Lookup(Index).Left wndDatePickerPopUp.Location.Y = Me.cmdF2Lookup(Index).Top This code will bring the control up, but not in the right location: wndDatePickerPopUp.Left = Me.cmdF2Lookup(Index).Width + Me.cmdF2Lookup(Index).Left wndDatePickerPopUp.Top = Me.cmdF2Lookup(Index).Top |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |