Results 1 to 2 of 2

Thread: Windows Vista buttons effects

  1. #1
    DavisMartin is offline Senior Member
    Join Date
    Dec 2009
    Posts
    174
    Rep Power
    3

    Default Windows Vista buttons effects

    How to give Windows Vista buttons effects?

    I am learning C# programming language. I want to give glowing effects to all the buttons, it look something like windows vista’s button, I know for giving this effect use mouse hover event but I do not how I right the code .any suggestion would be highly appreciated.

  2. #2
    PerryCollins is offline Senior Member
    Join Date
    Dec 2009
    Posts
    380
    Rep Power
    3

    Default

    I give you the best solution for this, because I also want to implement the same glowing effect to the buttons in my project, I also try many things, but after so many try to get this code to solve the same problems that you face right now, and to solve your problems, you should use the following code.

    protected override void Mouseover(MouseEventArgs mevn)
    {
    base.Mouseover(mevn);
    Graphics g = this.CreateGraphics();
    SizeF strSize = g.MeasureString(m_labelText, this.Font);
    RectangleF labelRect = new RectangleF(m_labelLocation, strSize);
    if (labelRect.Contains(new Point(mevn.X, mevn.Y)))
    }

Similar Threads

  1. Buttons to a Java applet
    By RogersNguyen in forum Programming
    Replies: 1
    Last Post: 05-27-2010, 02:19 PM
  2. How to Assign PC Controller Buttons
    By AllenBrown in forum Hardware Jargons
    Replies: 0
    Last Post: 12-28-2009, 05:33 PM
  3. Group Taskbar buttons (XP)
    By tenzin in forum Windows XP
    Replies: 0
    Last Post: 03-26-2009, 06:49 AM
  4. Make buttons with WordArt
    By widstone in forum General Internet Terms
    Replies: 0
    Last Post: 06-23-2008, 11:47 AM
  5. Windows Vista Home Premium and Windows Vista Ultimate.
    By techno23 in forum Windows Vista
    Replies: 0
    Last Post: 02-14-2008, 09:00 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48