Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / July 2006

Tip: Looking for answers? Try searching our database.

Cursor set impossible for a migrated VB6 UserControl

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bruno BERTRAND - 30 Jun 2006 16:44 GMT
Hi,

I've got a UserControl created years ago in VB6.
I can migrate the project which uses this control into VB.NET 2003.

Everything's fine. But...
When in the form class, if I do such a thing:
    Me.MyUserControl.Cursor = Cursors.Hand
there is just no effect while I can do it well with any .NET Control.

I can see that the migration tool created for me a wrapper class that
inherits for AxHost which defines a
'Public Overrides Property Cursor() As System.Windows.Forms.Cursor'.

As AxHost inherits from System.Windows.Forms.Control, does this property
disable the MyBase.Cursor property?

Thanks a lot for any help.

Regards.
B. BERTRAND
Sundari - 02 Jul 2006 18:12 GMT
Hi,

Did you try changing the code in wrapper class to hand cursor to figure out
whether it
works as you have described?

Even though the wrapper is generated by IDE, it should be OK to make some
modifications.

If you happen to regenerate the wrapper class again, you just need to
remember these changes.

Regards
Sundari

> Hi,
>
[quoted text clipped - 17 lines]
> Regards.
> B. BERTRAND
Bruno BERTRAND - 04 Jul 2006 13:42 GMT
Sundari a écrit :
> Hi,
>
[quoted text clipped - 4 lines]
> Even though the wrapper is generated by IDE, it should be OK to make some
> modifications.

Oh, I just didn't know we can change the wrapper class...
I thought the IDE just made a DLL for us without allowing to change the
source.

I'll try and find out that stuff.

Thanks again !

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.