Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Setting Location Property with VB.NET
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Setting Location Property with VB.NET

 Post Reply Post Reply
Author
Message
burnsjm View Drop Down
Newbie
Newbie


Joined: 18 April 2007
Location: United States
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote burnsjm Quote  Post ReplyReply Direct Link To This Post Topic: Setting Location Property with VB.NET
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.