Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / COM / April 2007



Tip: Looking for answers? Try searching our database.

hdc TO IPictureDisp

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
දසුන් සමීර - 01 Apr 2007 18:07 GMT
HI ALL
I have create hdc graph using picture box controller. now i want to
conver it to IPictureDisp(or Bitmap).
Any one help me to do this.
alpine - 01 Apr 2007 18:19 GMT
>HI ALL
>I have create hdc graph using picture box controller. now i want to
>conver it to IPictureDisp(or Bitmap).
> Any one help me to do this.

Since you're working with a picturebox, all you need to do is cast the
Picture or Image property (depending on whether or not AutoRedraw =
True) to the desired interface.  Something like....

 Dim oPicDisp as IPictureDisp

 Set oPicDisp = YourPictureBox.Picture

HTH,
Bryan
_________________________________________________________
Bryan Stafford                      "Don't need no more lies"
New Vision Software        - Neil Young -
www.mvps.org/vbvision    Living With War : The Restless Consumer
alpineDon'tSpam@mvps.org
දසුන් සමීර - 01 Apr 2007 19:26 GMT
ThankX for Help.
but thats not work. i have draw graph using Picture box. yes. but it
doesn't contain any picture. i draw on it using Line,Circle functions.
now i want to save it to hard disk as bitmap?
දසුන් සමීර - 01 Apr 2007 19:57 GMT
Ok i found it. thaks for help.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.