Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Join Date
    Nov 2008
    Posts
    26

    help with z-order of window

    hi there i am new here and i really loved this program it is amazing but i really have 3 questions:

    1- when my app opens (lets call it app1) it runs another app with it (lets call it app2) but app1 is always on top of app2 , i want app2 to be always on top app1 only. Note: (app2) is another program not made using autoplay.

    2- is there a way to block the (ALT+CTRL+DEL) keys , i tried to make the app1 when it starts it renames the file (C:\WINDOWS\system32\taskmgr.exe to C:\WINDOWS\system32\taskmgrm.exe) but the windows creates the file again.

    3-last but not too important , is there anyway to lower the memory usage for the app1.

    my application is just an interface for a computer gaming center we own , so i want to make and interface that makes it easier for the customers to start their games yet i want to forbid them to access anything on the pcs (from the desktop to any files on the hard drives), so i dont want the application to eat too many memory (right now it takes up to 42mb from memory).

    and sorry about my English , because i am from Yemen.

    thanks for any help

  2. #2
    Join Date
    Aug 2003
    Posts
    2,427
    Hello and welcome to the forum

    1. Look at the project/settings and in the appearance tab below the window title there is an option to set "Always on top". That may be all you need.

    2. Not a direct method but there is a dll on the forum HERE from member SSIDE which will do this for you.

    3. I don't know of any way to do this. The runtime file has a lot of functionality so I guess you just have to live with that.

    .. and finally as far as your English is concerned, you have no worries there - it is excellent

  3. #3
    Join Date
    Nov 2008
    Posts
    26
    thanks for answers but :

    1-
    Look at the project/settings and in the appearance tab below the window title there is an option to set "Always on top". That may be all you need
    that will make the app1 on top app2 but i want the opposite completely , i want app2 to be on top app1 but app1 runs app2

    2-
    Not a direct method but there is a dll on the forum HERE from member SSIDE which will do this for you.
    i am using this .dll (thanks to SSIDE) but it seems it dont disable the (ALT+CTRL+DEL) keys combination's.

    3-my application uses a lot of images and buttons and i have about 7 pages and about 40-50 buttons and images , cant i make the application free the loaded images when going to another page?? , or load the images to the virtual memory (hard drive)??

    thanks for your time

  4. #4
    Join Date
    Aug 2003
    Posts
    2,427
    Ah Ok in that case try-

    Code:
    Window.SetOrder(Application.GetWndHandle(), HWND_BOTTOM);
    Not sure about the other two.

  5. #5
    Join Date
    Nov 2008
    Posts
    26
    ah okay i tried this code before (sorry i didn't say i did) but i don't understand how to get these {Application.GetWndHandle()} , if you could give me an example about this code (i tried to find in the tut page but i dont find it)

  6. #6
    Join Date
    Aug 2003
    Posts
    2,427
    Just put the code exactly as it is in the application startup and then on show start the page timer at say 250 msecs. Put the same code in the on timer event. If the user pulls the window to the fron it will drop back to the bottom again.

    If your application requires no user interaction you could also look at using-

    Code:
    Window.Hide(Application.GetWndHandle());
    *BUT* you have to code some check into the on timer to look for your second app window and if it's not found, then show the window again, or alternatively just exit the application.

    It all depends on how you want to manage it.

  7. #7
    Join Date
    Nov 2008
    Posts
    26
    you know , i don't know how to thank you , it WORKED!! thanks a lot , it was soooo easy code and i didn't even think of.

    now about the 2nd one , i heard that you can disable the taskmanger from the registry , if you know anything about it i will be happy .


    thanks for your help

  8. #8
    Join Date
    Aug 2003
    Posts
    2,427
    Off the top of my head I'd say use a similar approach i.e. search for the Task Manager window and if found, close it. You could easily incorporate that into the other timer events you've already got.

    I'd caution against messing with the registry unless you are completely 'at ease' with it.

  9. #9
    Join Date
    Nov 2008
    Posts
    26
    thanks for help but i manged to disable the task mangaer from the registry , but there is one problem.

    when i am working in my pc the .dll file from (SSIDE) works fine and it blocks everything as i want , but when i copy the application to another pc for testing nothing works , do you have any idea ??? (my pc is XP sp3 and the other pc is XP sp2) can this be the problem????
    Last edited by MigLeader; 12-11-2008 at 04:49 PM.

  10. #10
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    Most of SSides dll's require .net 2.0, does the other computer have .NET Framework 2.0?
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  11. #11
    Join Date
    Nov 2008
    Posts
    26
    Most of SSides dll's require .net 2.0, does the other computer have .NET Framework 2.0
    and you are right , i installed the .net 2.0 and it worked.

    maybe the last question , when i run a game using my application i can press the keys that SSides dll's have disabled , is there any workaround???

    and i really thanks everybody who helped me here , you made me really happy , thanks.

Similar Threads

  1. help with window show and hide
    By TimeSurfer in forum AutoPlay Media Studio 7.5
    Replies: 1
    Last Post: 01-21-2008, 03:33 PM
  2. Window order problem
    By adivin in forum AutoPlay Media Studio 6.0
    Replies: 17
    Last Post: 06-28-2007, 09:31 AM
  3. set Window transparency!
    By goldingname in forum AutoPlay Media Studio 6.0
    Replies: 3
    Last Post: 01-12-2007, 10:03 PM
  4. problem with file exe run and window order
    By mike022 in forum AutoPlay Media Studio 5.0
    Replies: 0
    Last Post: 11-28-2004, 01:48 AM
  5. HOWTO: Get the Position and Size of a Window
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 09-27-2002, 09:40 AM

Tags for this Thread

Posting Permissions

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