Hi
I tried to print a treeview . What I need is a image object from the treeview
I am looking for CLR compliant way not using PInvoke
I trie
Graphics gr = Graphics.FromHwnd (tree.Handle )
Bitmap bmp = new Bitmap (width,height,gr)
Image img = Image.FromHbitmap(bmp.GetHbitmap())
but if i try to print with this image i gets a blue box
Any Idea ???
Francois Beaussier [MVS] - 28 May 2004 10:39 GMT
"sam" wrote :
> Hi,
>
> I tried to print a treeview . What I need is a image object from the treeview.
> I am looking for CLR compliant way not using PInvoke.
Here is a exemple using PInvoke (you might change your mind :))
http://perso.3ie.org/yannick.lejeune/archives/2004_05_01_blog-programmation-dotn
et.html#108488067800186632

Signature
Francois Beaussier
Francois@3ie.org.remove
FAQ .NET C#:
http://perso.3ie.org/yannick.lejeune/blog-programmation-csharp.html
Bob Powell [MVP] - 28 May 2004 14:27 GMT
Please check your clock settings.

Signature
Bob Powell [MVP]
Visual C#, System.Drawing
Image transition effects, automatic persistent configuration and
design time mouse operations all in April's issue of Well Formed
http://www.bobpowell.net/wellformed.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm
The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://royo.is-a-geek.com/siteFeeder/GetFeed.aspx?FeedId=41
> Hi,
>
[quoted text clipped - 9 lines]
>
> Any Idea ????