Print Page | Close Window

Setting Location Property with VB.NET

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=6921
Printed Date: 06 October 2024 at 1:47pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Setting Location Property with VB.NET
Posted By: burnsjm
Subject: Setting Location Property with VB.NET
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net