﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>The VNC Manager - SmartCode Solutions Forum / General Discussion / SmartCode ViewerX VNC Viewer ActiveX  / Thumbnail mode using ActiveX control / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>The VNC Manager - SmartCode Solutions Forum</description><link>http://www.vncmanager.com/forum/</link><webMaster>forums@s-code.com</webMaster><lastBuildDate>Thu, 20 Nov 2008 15:20:37 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Thumbnail mode using ActiveX control</title><link>http://www.vncmanager.com/forum/Topic1830-6-1.aspx</link><description>Can ayone convert this C# code to VB6?&lt;/P&gt;&lt;P&gt;&lt;FONT color=#0000ff&gt;using&lt;/FONT&gt; (Bitmap bmp = Bitmap.FromHbitmap(&lt;FONT color=#0000ff&gt;new&lt;/FONT&gt; &lt;FONT color=#2b91af&gt;IntPtr&lt;/FONT&gt;(vncCtrl.ScreenBitmap)))&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Tim</description><pubDate>Fri, 29 Aug 2008 10:54:24 GMT</pubDate><dc:creator>TShriver</dc:creator></item><item><title>RE: Thumbnail mode using ActiveX control</title><link>http://www.vncmanager.com/forum/Topic1830-6-1.aspx</link><description>It's possible, in fact the VNC Manager uses ViewerX for the thumbnail view implementation.&lt;/P&gt;&lt;P&gt;There are several ways how it could be implemented. But just to give you a rough idea about our implementation. &lt;BR&gt;We use native Windows listview control to show the thumbnail items. To each listview item corresponds a hidden instance of ViewerX control.&lt;BR&gt;For this case, when ViewerX is hidden you would want to initialize the following properties:&lt;/P&gt;&lt;P&gt;//since you just want to show a remote screen&lt;BR&gt;vncCtrl.ViewOnly = &lt;FONT color=#0000ff&gt;true&lt;/FONT&gt;;&lt;BR&gt;&lt;BR&gt;//no need to transfer clipboard either&lt;BR&gt;vncCtrl.DisableClipboard = &lt;FONT color=#0000ff&gt;true&lt;/FONT&gt;;&lt;BR&gt;&lt;BR&gt;//tells ViewerX not to paint the remote screen (ViewerX is hidden, so there is no need to paint it)&lt;BR&gt;vncCtrl.ThumbnailMode = &lt;FONT color=#0000ff&gt;true&lt;/FONT&gt;;&lt;BR&gt;&lt;BR&gt;//allows ScreenUpdatedEvent to be fired for each screen update. By default this event is disabled for performance reasons&lt;BR&gt;vncCtrl.AdvancedSettings.EnableScreenUpdatedEvent = &lt;FONT color=#0000ff&gt;true&lt;/FONT&gt;;&lt;BR&gt;&lt;BR&gt;So we subscribe to ScreenUpdatedEvent and update an ImageList associated with thumbnails listview control for each screen update. Although in reality it's a bit more complicated than that.&lt;/P&gt;&lt;P&gt;Last but not least, here is how you could get access to the screen bitmap (C# code):&lt;BR&gt;&lt;FONT color=#0000ff&gt;using&lt;/FONT&gt; (Bitmap bmp = Bitmap.FromHbitmap(&lt;FONT color=#0000ff&gt;new&lt;/FONT&gt; &lt;FONT color=#2b91af&gt;IntPtr&lt;/FONT&gt;(vncCtrl.ScreenBitmap)))&lt;BR&gt;{&lt;BR&gt;     //do something with bmp &lt;BR&gt;}&lt;/P&gt;&lt;P&gt;I hope this helps.</description><pubDate>Thu, 20 Dec 2007 09:36:09 GMT</pubDate><dc:creator>Support (s-code)</dc:creator></item><item><title>Thumbnail mode using ActiveX control</title><link>http://www.vncmanager.com/forum/Topic1830-6-1.aspx</link><description>Hi&lt;/P&gt;&lt;P&gt;Is it possible to replicate the VNC manager thumbnail feature using the activeX control?&lt;/P&gt;&lt;P&gt;Regards, Carl Gilbert</description><pubDate>Thu, 20 Dec 2007 08:41:09 GMT</pubDate><dc:creator>Carl916</dc:creator></item></channel></rss>