Hi Dave The control has an OleClass of MSCA.Caledar.7 I need to use the Double Click event as I want to offer the user the options of either entering the date into the textbox as it is automatically populated with the current date or Double click and choose from the Calendar. The advantage of the second option being when they have to calculate say Monday in two weeks time or check to see if the date falls at a weekend or Bank Holiday. I will try it in the GotFocus as if that works I can move it and then make it visible in the Double Click.
Further to the other problem with slow connection over the internet. David wouldn't even ask about putting MySQL or the cut down version of MSSQL as he says it would cause all sorts of problems with company who supply the Server and there maintenance of the Opera System. So we have installed the App on a separate Desktop Computer in the Server Room. We are then using LogMeIn to allow the users at the London Branch to enter Purchase Orders and View stock etc. This will suffice for the moment, then we will look at better ways in the future. Thanks again for your help. Cheers Peter -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Crozier Sent: 17 March 2008 08:31 To: 'ProFox Email List' Subject: RE: How to move an OleControl Peter, Works for me with the Microsoft date picker no problem if I use the GotFocus event in the textbox to move the control. Also make sure Application.Autoyield=.F. However, it could be that it is the OLEControl that is causing the problem. Which one are you using? Dave Crozier -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Hart Sent: 14 March 2008 09:07 To: ProFox Email List Subject: RE: How to move an OleControl Hi all I am using an olecontrol as a date picker on a form. There are quite a few date fields to enter. These are automatically populated with today's date on opening the form. I want to offer the employee the option of double clicking on a date field which I want to move to the position of the text box With ThisForm .oleControl1.Left = This.Left .Top = This.Top .Visible = .T. EndWith This would place the Date Picker (in this case a Calendar control) over the text box. Unfortunately the control does not move although the properties change when viewed in the debugger. Any Ideas Cheers Peter Hart --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

