Results 1 to 10 of 10

Thread: Extended Form Events control.

  1. #1

    Thread Starter
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011

    Extended Form Events control.

    hi!
    I created this control back in 2002, i shared its ocx form but not code... then i got real busy... and now back to share its code also..

    This ActiveX Control gives you some extended events of the form, like form resizing(which doesn't flicker), mouse events on non-client areas(like titlebar, borders, menus etc)

    The code, and a test project attached ....

    Suggestions for any improvement is welcome...
    Attached Files Attached Files

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Extended Form Events control.

    Very nice

    Quote Originally Posted by moinkhan
    Suggestions for any improvement is welcome...
    • Make an event like Form_Move (I hate it how VB doesn't have that)
    • Disabling some things doesn't work if you do it on their own (like close, doesn't work unless you also disable maximize)
    • Couldn't get a menu mouse move event on any menus other than File.


    Other than that, very good work

  3. #3

    Thread Starter
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011

    Re: Extended Form Events control.

    Quote Originally Posted by penagate
    Very nice


    • Make an event like Form_Move (I hate it how VB doesn't have that)
    • Disabling some things doesn't work if you do it on their own (like close, doesn't work unless you also disable maximize)
    • Couldn't get a menu mouse move event on any menus other than File.


    Other than that, very good work

    thanx for the suggestions penagate...
    here these options work...
    i will look into it deeper... then will let u know...

    thanx again..

  4. #4

    Thread Starter
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011

    Re: Extended Form Events control.

    Quote Originally Posted by penagate
    Very nice


    • Make an event like Form_Move (I hate it how VB doesn't have that)
    • Disabling some things doesn't work if you do it on their own (like close, doesn't work unless you also disable maximize)
    • Couldn't get a menu mouse move event on any menus other than File.


    Other than that, very good work
    For form move event... i am on it...

    and the issues you have raised..unfortunately.. i was unable to reproduce these errors here...
    I tested on XP, Win2K and win98..

  5. #5
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Extended Form Events control.

    Quote Originally Posted by moinkhan
    ...the issues you have raised..unfortunately.. i was unable to reproduce these errors here...
    I tested on XP, Win2K and win98..
    It seems the blame lies with WindowBlinds. I unloaded it and then the disabling options all worked. Unfortunately then I couldn't get any MenuMouseMove events for the top-level menus. I then reloaded WindowBlinds and got MenuMouseMove events for the File menu, but not the Edit menu.

    Oh well

  6. #6

    Thread Starter
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011

    Re: Extended Form Events control.

    Quote Originally Posted by penagate
    It seems the blame lies with WindowBlinds. I unloaded it and then the disabling options all worked. Unfortunately then I couldn't get any MenuMouseMove events for the top-level menus. I then reloaded WindowBlinds and got MenuMouseMove events for the File menu, but not the Edit menu.

    Oh well

    ... strange enough...


    Would love to reproduce this error here as well..

  7. #7
    New Member
    Join Date
    Sep 2005
    Posts
    1

    Re: Extended Form Events control.

    hi,
    your tool is quite bloody good.

    What i am missing is, like others a function for an move-event of a form, when it is possible too, for dynamic genrated mdi-child-forms.

    dears

    wandancer

  8. #8
    New Member
    Join Date
    Apr 2008
    Posts
    1

    Exclamation Re: Extended Form Events control.

    Hi !

    That event you provided for VB6 is very usefull.
    I wonder why it hasn't been there at the start? Manually moving a window is so common.
    Have you tried it on a dual screen installation ?
    For me, it is working on Screen 1, but the window disappears when I move it on screen 2.

    Oncle Richi

  9. #9
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Extended Form Events control.

    Its probably a limitation of VB6 as .NET has these features, except the titlebar stuff, already built in. It has a object for working with multiple displays.

    Evolution takes time but to create/extend events like this can be continued on with API code like shown in the API FAQ thread (flicker free form resize is in there for ex.).
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  10. #10

    Thread Starter
    Frenzied Member moinkhan's Avatar
    Join Date
    Jun 2000
    Location
    Karachi, Pakistan
    Posts
    2,011

    Re: Extended Form Events control.

    Quote Originally Posted by Oncle_Richi
    Hi !

    That event you provided for VB6 is very usefull.
    I wonder why it hasn't been there at the start? Manually moving a window is so common.
    Have you tried it on a dual screen installation ?
    For me, it is working on Screen 1, but the window disappears when I move it on screen 2.

    Oncle Richi
    Thanks..
    I shifted from VB to java... so i do not know whether all or some of these events are provided in .Net or not...
    I didn't check it with Dual screen ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width