Hello,
Our application is written in VB. There is a menu item called 'Installed pricefiles'. When clicked, it loads a form 'frmAPfiles.frm'. This basically extract the price files from the system and display it. So this process may take around 10 seconds. I want to change the mousepointer to hourglass during this period and when the form is completely loaded mousepointer should come back to default.
I tried with screen.MousePointer = vbhourglass/vbdefault. I also tried with screen.MousePointer = 11/0. But the mousepointer is not refreshed untill the form 'frmAPfiles' is loaded.
This is how my code looks
When the user clicks on 'Installed price files' menu item :
DoInstlPricefiles is written in the APfiles.bas file :
Mousepointer is not seems to be changed to hourglass as I am changing back the Mousepointer to default before frmAPfiles.Show vbModal. If I give vbDefault statement after frmAPfiles.Show vbModal then, the mousepointer will remain as hourglass.
So please let me know how can I refresh the mousepointer (to display hourglass) when the menu item is clicked. It is not automatically refreshed.
Thank you
TBhat
Our application is written in VB. There is a menu item called 'Installed pricefiles'. When clicked, it loads a form 'frmAPfiles.frm'. This basically extract the price files from the system and display it. So this process may take around 10 seconds. I want to change the mousepointer to hourglass during this period and when the form is completely loaded mousepointer should come back to default.
I tried with screen.MousePointer = vbhourglass/vbdefault. I also tried with screen.MousePointer = 11/0. But the mousepointer is not refreshed untill the form 'frmAPfiles' is loaded.
This is how my code looks
When the user clicks on 'Installed price files' menu item :
Code:
Case InstlPricefilesID
frmAPfiles.MousePointer = vbHourglass
DoInstlPricefiles
DoInstlPricefiles is written in the APfiles.bas file :
Code:
Sub DoInstlPricefiles()
avl_retcode = retrievePriceFiles(avl_ccode, avl_modal, avl_gsaflag, avl_opstring, avl_opsize)
'format the output here
.............
................
frmAPfiles.MousePointer = vbDefault
' form is displayed here
frmAPfiles.Show vbModal
End Sub
Mousepointer is not seems to be changed to hourglass as I am changing back the Mousepointer to default before frmAPfiles.Show vbModal. If I give vbDefault statement after frmAPfiles.Show vbModal then, the mousepointer will remain as hourglass.
So please let me know how can I refresh the mousepointer (to display hourglass) when the menu item is clicked. It is not automatically refreshed.
Thank you
TBhat