IMouseCursor pMouseCursor = new MouseCursorClass(); pMouseCursor.SetCursor(2);
Windows.Forms.Cursor.Current = Cursors.WaitCursor
Windows.Forms.Cursor.Current = Cursors.Arrow
Carlos,
Have you tried to implement the cursor from the parent Windows form?
Prior to the method call, set the cursor (VB.NET):Windows.Forms.Cursor.Current = Cursors.WaitCursor
After the method and the return to the form, re-set the cursor:Windows.Forms.Cursor.Current = Cursors.Arrow
Hope this helps,
james
Thanks for the reply James and my apologies for replying so late. The new forums is not notifying me of when I get a new message in spite of me setting it to send email immediately so if I forget to check for new messages myself, I don't see them and in this case, I got pulled away from this problem to take care of another one. 😞
Anyhow, I will give your suggestion a try.
Carlos
No problem at all. Any new major switch is going to cause disruptions, and I think this forum has a ways to go to get at the activity levels seen in previous versions --- it's just a part of making major changes like this I guess.
Please post up your solution when you find it! I know what I have posted does work for many of the apps I have implemented and currently maintain (all are VB.NET framwork 3.5/ ArcGIS 9.3.1), so I'd like to hear if you found another way to accomplish this.
{Also: are you in the West Palm Beach office off of Gun Club Rd? I'm originally from Lantana (Palm Beach County) and return quite often to visit family and freinds --- I've been residing in Charlotte County since 1999}
Take Care,
james
James,
I was not able to get it to work with your suggestions but by pure trial and error, I was able to solve it. At one point, the code that populates the listbox, uses ITrackCancel to sort the results before displaying them in the listbox and when it hits that line of code, the cursor goes back to a pointer. Reissung pMouseCursor.SetCursor(2); right afterwards resets the cursor back to the hourglass for the duration of the code. The cursor does briefly (a second or two) switches to the pointer between the two lines of code but that's fine.
Yes, I am in the West Palm office off Gun Club road. Did you work at the District in the past? Your name does sound familiar to me for some reason. I've been here since 1988.
Anyhow, thanks for your time and your help. As always, I appreciate it a lot!!!
Carlos