Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 23rd, 2005, 11:16 AM
Registered User
 
Join Date: Aug 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Preventing operations with Hourglass Mousepointer

I have a VB application with several tabs in it. When I am doing a process on one of those tabs, I am changing the mouse pointer to an Hourglass MP. But I am still able to click on other tabs. That is creating problems. How do I prevent the user from clicking on other things when the MP is hourglass? Does the mousepointer have a property which lets me do that?

Thanks,
krithi20
 
Old August 23rd, 2005, 11:55 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to ashu_from_india Send a message via Yahoo to ashu_from_india
Default

hi krithi20

when u start a process then disable the tab control, and enable it again when the process finishes

Ashu


 
Old August 23rd, 2005, 02:09 PM
Registered User
 
Join Date: Aug 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

well, the problem is that if i disable the tab control then the whole form is disabled and the mousepointer goes back to vbDefault..and is no longer houglass.

Thanks,
krithi20
 
Old August 23rd, 2005, 02:41 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there...

how are you disabling the tabs that disable all the form???

you can disable the tab control and the rest of the form can be enabled...

HTH

Gonzalo
 
Old August 23rd, 2005, 04:20 PM
Registered User
 
Join Date: Aug 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, the structure in this form is a little different. Its not the regular tab control that we are using here. Its a seperate component, which is tied to the my form placed on the main form. Soif I disable the tab then my form(which is on top of the main form) gets disabled too.

Thanks,
krithi20
 
Old August 23rd, 2005, 04:50 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

this looks like an interesting project. Can yoy clarify these points for me please?

Its a seperate component [do you mean a UserControl? a ActiveX?], which is tied [what do you mean with "tied"?] to the my form placed on the main form [we have two forms here, why so? why do you have a form "placed" on another form? What does "placed" mean?]. So if I disable the tab then my form (which is on top of the main form) gets disabled too [??? what are you disabling here? a tab? myForm? the main form?].

well, the problem is that if i disable the tab control then the whole form is disabled and the mousepointer goes back to vbDefault..and is no longer houglass. [if you set Screen.MousePointer = vbHourglass the it stays so even though the form is disabled]

HTH
Marco





Similar Threads
Thread Thread Starter Forum Replies Last Post
Hourglass with C# khautinh C# 2 October 3rd, 2007 02:35 AM
How can the mousepointer be changed? apike VBScript 0 April 17th, 2007 10:38 PM
Hourglass cursor toekneel Crystal Reports 6 October 14th, 2004 01:39 PM
HourGlass Mouse Pointer Help rubymist3 Excel VBA 4 December 2nd, 2003 12:23 PM
2 ListBox operations melvik C# 1 August 19th, 2003 06:51 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.