Results 1 to 6 of 6

Thread: Disabling parts of any application's interface

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2001
    Location
    Fishburn
    Posts
    45

    Disabling parts of any application's interface

    Is there any way of controlling the interface of any application currently running? In particular, is there any way of disabling the menus or toolbars? Assuming we have the window id or process id of the application we want to work with.

    Here's the scenario. I'm writing bespoke applications working with CAD/CAM softare, and the main VB app controls two or three different applications via OLE. Each application is displayed on the VB Form itself. The applications I'm controlling do not expose any methods to allow the interface to be controlled so I'm wanting to override it some how.

    Firstly, I want my VB app to control when the user exits each individual application, so need to disable not only the application close icon, but also the FILE, EXIT menus too.

    Secondly, I want to limit the functionality available to the user in the main applications so that they use only the functionality made available through my VB App can be used.

    I'm hoping there's some way via the API, so any advice would be much appreciated.

    Thanks.

  2. #2
    Member
    Join Date
    Jan 2003
    Location
    Earth
    Posts
    60
    try disabling the window
    i will be come a better programmer some day! thanks to vbforums.com

  3. #3

    Thread Starter
    Member
    Join Date
    Sep 2001
    Location
    Fishburn
    Posts
    45
    I don't want to disable the window altogether.

    The user still needs to use the main applications embedded on the VB form, but I want to prevent them closing down each individual application, and prevent them accessing the menus/toolbars. Access to functionality within the main application will be provided in my VB app.

  4. #4
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    Maybe if you put the controls in some frames?


    Has someone helped you? Then you can Rate their helpful post.

  5. #5

    Thread Starter
    Member
    Join Date
    Sep 2001
    Location
    Fishburn
    Posts
    45
    The controls and menus I'm trying to disable/hide are not in my VB app, they're in the 3rd party application.

  6. #6
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    Sorry, I misread your first post


    Has someone helped you? Then you can Rate their helpful post.

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