<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Using PopupControl as a message box replacement</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Suite Pro : Using PopupControl as a message box replacement]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 22 Apr 2026 09:37:52 +0000</pubDate>
  <lastBuildDate>Thu, 13 Sep 2007 13:40:16 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=7996</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Using PopupControl as a message box replacement :   oleg wrote:Hi,  You know size...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7996&amp;PID=25824&amp;title=using-popupcontrol-as-a-message-box-replacement#25824</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3295">eugene_v</a><br /><strong>Subject:</strong> 7996<br /><strong>Posted:</strong> 13 September 2007 at 1:40pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br />Hi, <DIV>You know size of Popup, you know Size and position of Form, don't see why you can't calculate Right property to make it centered.</DIV></td></tr></table> <DIV>&nbsp;</DIV><DIV>You are correct! It didn't seam to work because VB uses Twips and Popup uses pixes.</DIV><DIV>&nbsp;</DIV><DIV>Here is how to center your popup on a form and</DIV><DIV>use it as a message box replacement:</DIV><DIV>&nbsp;</DIV><DIV><table width="99%"><tr><td><pre class="BBcode"></DIV><DIV>&nbsp;</DIV><DIV>Popup.Right = Me.ScaleX(Me.Left + (Me.Width / 2), vbTwips, vbPixels) + (Popup.Width / 2)<BR>Popup.Bottom = Me.ScaleY(Me.Top + (Me.Height / 2), vbTwips, vbPixels) + (Popup.Height / 2)<BR></DIV><DIV></pre></td></tr></table></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 13 Sep 2007 13:40:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7996&amp;PID=25824&amp;title=using-popupcontrol-as-a-message-box-replacement#25824</guid>
  </item> 
  <item>
   <title><![CDATA[Using PopupControl as a message box replacement : Hi, You know size of Popup, you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7996&amp;PID=25811&amp;title=using-popupcontrol-as-a-message-box-replacement#25811</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7996<br /><strong>Posted:</strong> 13 September 2007 at 12:02pm<br /><br />Hi,<DIV>You know size of Popup, you know Size and position of Form, don't see why you can't calculate Right property to make it centered.</DIV>]]>
   </description>
   <pubDate>Thu, 13 Sep 2007 12:02:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7996&amp;PID=25811&amp;title=using-popupcontrol-as-a-message-box-replacement#25811</guid>
  </item> 
  <item>
   <title><![CDATA[Using PopupControl as a message box replacement : Good day everyone! Has anyone...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7996&amp;PID=25807&amp;title=using-popupcontrol-as-a-message-box-replacement#25807</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3295">eugene_v</a><br /><strong>Subject:</strong> 7996<br /><strong>Posted:</strong> 13 September 2007 at 11:40am<br /><br /><P>Good day everyone!</P><P>Has anyone tried using the PopupControl as a less annoying replacement for a message box under VB6?</P><P>PopupControl seems to have .Right property that doesn't allow it to be displayed centered to a form, for example.</P><DIV>Do you think it is possible to display the&nbsp;PopupControl&nbsp;centered to a form?</DIV>]]>
   </description>
   <pubDate>Thu, 13 Sep 2007 11:40:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7996&amp;PID=25807&amp;title=using-popupcontrol-as-a-message-box-replacement#25807</guid>
  </item> 
 </channel>
</rss>