Thread: how do i create a windows icon effect?

  1. #1
    Registered User
    Join Date
    Jun 2010
    Posts
    1

    how do i create a windows icon effect?

    hello i am 14 years old and i am workin on creating a dock for my desktop basically its like a windows taskbar and i want to make it so i can put my cursor over and image (program icon) and a label i want it so it will go blue then when you click it , it selects it but doesnt run the program you click then when you double click it it runs the program basically i want the icons like on windows when you add a program to your desktop that kind of effect so is there anyone out there who can do this please help me i would really appreciate it as i have spent a lot of time on it and cant find out how to do it



    thanks in advance



    jake hathaway

  2. #2
    Registered User C_ntua's Avatar
    Join Date
    Jun 2008
    Posts
    1,853
    God that was tiring to read. And its your fault for not putting periods

    You can add an event handler for MouseDoubleClick on most things.
    Create a Panel, set the BackgroundImage as the image to an icon and implement the event handler for double click to open the application you want. When single clicking you can change the picture in one with blue background or anything else you want to do.

    Well, you can use a BackColor actually. Set it to Color.Transparent when de-activated and to Color.Blue when activated. Use BackgroundImage for the icon and make sure it has a transparent color on it (search for this depending on the format of the picture, you should be able to set a transparent color on a pgn).

    Well, that is all you need. For a label again change Background and maybe Font color (goolge for the Fonts).

    To run a specific application use ths
    You can find the name of the program from the label of course. Or better create a class with a label and a panel and store the full path of the program to be executed there as well.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Zoom
    By jma619 in forum C Programming
    Replies: 1
    Last Post: 09-13-2009, 05:13 AM
  2. opengl help
    By heat511 in forum Game Programming
    Replies: 4
    Last Post: 04-05-2004, 01:08 AM
  3. Menu Item Caption - /a for right aligned Accelerator?
    By JasonD in forum Windows Programming
    Replies: 6
    Last Post: 06-25-2003, 11:14 AM
  4. FlashWindowEx not declared?
    By Aidman in forum Windows Programming
    Replies: 3
    Last Post: 05-17-2003, 02:58 AM