﻿<?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 / SmartCode ViewerX VNC Viewer ActiveX / Bug Reports  / Dynamically Created Viewer requires license file / 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 16:07:35 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Dynamically Created Viewer requires license file</title><link>http://www.vncmanager.com/forum/Topic1601-8-1.aspx</link><description>The licensing popup appears when COM reports that the ActiveX is running in "design mode". You shouldn't redistribute the .lic file with your application.&lt;/P&gt;&lt;P&gt;In the VNC Manager we also using dynamically created ViewerX instances as part the VNC Thumbnails view feature. I think you should add BeginInit() and EndInit() calls to your code. In C# the code should look like this:&lt;BR&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New"&gt;AxViewerX.AxCSC_ViewerXControl objVNC = new AxViewerX.AxCSC_ViewerXControl();&lt;BR&gt;objVNC.BeginInit();&lt;BR&gt;//setup ViewerX properties here&lt;BR&gt;PanelMain.Controls.Add(objVNC);&lt;BR&gt;objVNC.EndInit();&lt;/FONT&gt;</description><pubDate>Mon, 20 Aug 2007 21:54:58 GMT</pubDate><dc:creator>Support (s-code)</dc:creator></item><item><title>Dynamically Created Viewer requires license file</title><link>http://www.vncmanager.com/forum/Topic1601-8-1.aspx</link><description>&lt;FONT size=2&gt;Doing something like this will cause the licensing popup window to pop up on user machines. The only way I've found to get around it is to deploy the .lic file with with. What is the correct way to handle this?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;(VB.NET 2005)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;[code]dim objVNC = New AxViewerX.AxCSC_ViewerXControl&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;Me.PanelMain.Controls.Add(objVNC)[/code]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;I can send a demo project and binaries if that helps..&lt;BR&gt;&lt;/FONT&gt;</description><pubDate>Mon, 20 Aug 2007 14:43:21 GMT</pubDate><dc:creator>Airegin</dc:creator></item></channel></rss>