how to use API

How to paint a shape in Picturebox control use device context

Comments

  • Hi,
    From my experience with a picturebox i don't think that you can do that since all a picturebox does is load a picture.

    BattleGuard

    : How to paint a shape in Picturebox control use device context
    :

  • Tanks for you reply
    My do it since picturebox doesn't load picture.I want to get icon from .exe file or other type file assistant.
    I want to put icon to imagelist for file icon of listview,but the icon can't direct Draw in imagelist.so I draw it in picturebox first then put it in imagelist from picturebox.
    I get a long use MyIcon=assistantfileicon(0,filename,1) then draw in a picturebox use Drawicon(e.graphics.GetHdc().toint64,MyIcon,0,0) then put it to imagelist.
    Test successful in VB 6,fail in VB.NET
    Is there other way do it? how to ? please help me.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories