How do i create user-defined button shapes in visual c#. for example, clickable areas
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: How do i create user-defined button shapes in visual c#. for example, clickable areas

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Posts
    3

    Question How do i create user-defined button shapes in visual c#. for example, clickable areas

    Hi All
    Im running into a problem when i try to do something using c sharp. Im trying to create a GUI in which there is an image of a parking lot. i want parts of the image to be clickable. in fact i want parts of the image to act like buttons.
    i run into two problems

    1 how to make the image visible on the windows form
    2 how to make the parts of the image clickable (in fact act like buttons)


    for trying to make the image appear on the form i made a picturebox and used the "initial image" property to set the image i wanted to display on the form

    but its not showing up. why is that?




    as for the second part, the one where i had to do the clickable image, i have posted the image on top of the form and taken a screenshot of it so u guys can see what im trying to say.

    http://img257.imageshack.us/img257/1265/parkinglotp.jpg


    in that image u guys can see parking lots, numbered. i want to make each one of the numbered area act like a button. is there any way for me to do that?


    ps: im using visual studio 2008


    thanks a lot!!
    any help is appreciated
    Last edited by starsiege; November 22nd, 2009 at 12:24 PM.

  2. #2
    Join Date
    Apr 2004
    Posts
    99

    Re: How do i create user-defined button shapes in visual c#. for example, clickable a

    Have you considered using a Image Map Control?

  3. #3
    Join Date
    Mar 2004
    Location
    Prague, Czech Republic, EU
    Posts
    1,701

    Re: How do i create user-defined button shapes in visual c#. for example, clickable a

    I think easies it could be achieved with WPF.
    • Make it run.
    • Make it right.
    • Make it fast.

    Don't hesitate to rate my post.

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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center