<?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 : Virtual mode + msgbox = empty ?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Virtual mode + msgbox = empty ?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 15 May 2026 12:16:04 +0000</pubDate>
  <lastBuildDate>Sun, 12 Jul 2009 11:05:57 +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=14640</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[Virtual mode + msgbox = empty ? : Private Sub wndReportControl_SelectionChanged()...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14640&amp;PID=50884&amp;title=virtual-mode-msgbox-empty#50884</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14640<br /><strong>Posted:</strong> 12 July 2009 at 11:05am<br /><br /><P>Private Sub wndReportControl_SelectionChanged()<BR>&nbsp;&nbsp;&nbsp; Dim Row As ReportRow<BR>&nbsp;&nbsp;&nbsp; Dim a As Integer<BR>&nbsp;&nbsp;&nbsp; On Error Resume Next<BR>&nbsp;&nbsp;&nbsp; Debug.Print "Selection Changed. Focused Row = " &amp; wndReportControl.FocusedRow.Index<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; Me.Caption = wndReportControl.SelectedRows.Count &amp; " row(s) selected"<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; If (wndReportControl.SelectedRows.Count &lt; 10) Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For Each Row In wndReportControl.SelectedRows<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print "Selected: " &amp; Row.Index<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next<BR>&nbsp;&nbsp;&nbsp; End If<BR></P><DIV>&nbsp;&nbsp;&nbsp; If (wndReportControl.SelectedRows.Count = 10) Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a = 0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; For Each Row In wndReportControl.SelectedRows<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Debug.Print "Selected: " &amp; Row.Index<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; a = a + 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Next<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MsgBox a<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'MsgBox wndReportControl.SelectedRows.Count<BR>&nbsp;&nbsp;&nbsp; End If<BR></DIV><DIV>End Sub<BR></DIV><DIV>&nbsp;</DIV><DIV>Snapshot show that MsgBox popup before redraw happened on my last selection action - count already 10 but highlighted only prev selection</DIV><DIV>&nbsp;</DIV><DIV><img src="https://forum.codejock.com/uploads/20090712_110659_ScreenShot2.jpg" border="0"></DIV>]]>
   </description>
   <pubDate>Sun, 12 Jul 2009 11:05:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14640&amp;PID=50884&amp;title=virtual-mode-msgbox-empty#50884</guid>
  </item> 
  <item>
   <title><![CDATA[Virtual mode + msgbox = empty ? : Yes, i&amp;#039;ve seen but i also...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14640&amp;PID=50744&amp;title=virtual-mode-msgbox-empty#50744</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4049">Lodep59</a><br /><strong>Subject:</strong> 14640<br /><strong>Posted:</strong> 07 July 2009 at 12:14pm<br /><br />Yes, i've seen but i also confirm that if i set the focus to other control before showing msgbox the problem disappear !<DIV>Don't know why but may be this could help you to find a solution ?</DIV>]]>
   </description>
   <pubDate>Tue, 07 Jul 2009 12:14:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14640&amp;PID=50744&amp;title=virtual-mode-msgbox-empty#50744</guid>
  </item> 
  <item>
   <title><![CDATA[Virtual mode + msgbox = empty ? : See my prev snapshot with piece...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14640&amp;PID=50743&amp;title=virtual-mode-msgbox-empty#50743</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14640<br /><strong>Posted:</strong> 07 July 2009 at 12:02pm<br /><br />See my prev snapshot with piece of code used to call MsgBox]]>
   </description>
   <pubDate>Tue, 07 Jul 2009 12:02:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14640&amp;PID=50743&amp;title=virtual-mode-msgbox-empty#50743</guid>
  </item> 
  <item>
   <title><![CDATA[Virtual mode + msgbox = empty ? :   mdoubson wrote:No clear - when...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14640&amp;PID=50740&amp;title=virtual-mode-msgbox-empty#50740</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4049">Lodep59</a><br /><strong>Subject:</strong> 14640<br /><strong>Posted:</strong> 07 July 2009 at 11:58am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by mdoubson" alt="Originally posted by mdoubson" style="vertical-align: text-bottom;" /> <strong>mdoubson wrote:</strong><br /><br />No clear - when MsgBox called inside code (on Selection Change) it does not change focus and don't use some other UI elements</td></tr></table> <DIV>&nbsp;</DIV><DIV><DIV></DIV><DIV></DIV>Sorry i don't understand what you mean ?</DIV>]]>
   </description>
   <pubDate>Tue, 07 Jul 2009 11:58:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14640&amp;PID=50740&amp;title=virtual-mode-msgbox-empty#50740</guid>
  </item> 
  <item>
   <title><![CDATA[Virtual mode + msgbox = empty ? : No clear - when MsgBox called...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14640&amp;PID=50738&amp;title=virtual-mode-msgbox-empty#50738</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14640<br /><strong>Posted:</strong> 07 July 2009 at 11:49am<br /><br />No clear - when MsgBox called inside code (on Selection Change) it does not change focus before MsgBox popuped and don't use some other UI elements ]]>
   </description>
   <pubDate>Tue, 07 Jul 2009 11:49:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14640&amp;PID=50738&amp;title=virtual-mode-msgbox-empty#50738</guid>
  </item> 
  <item>
   <title><![CDATA[Virtual mode + msgbox = empty ? : Hi Mark,  I&amp;#039;ve found a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14640&amp;PID=50737&amp;title=virtual-mode-msgbox-empty#50737</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4049">Lodep59</a><br /><strong>Subject:</strong> 14640<br /><strong>Posted:</strong> 07 July 2009 at 11:01am<br /><br />Hi Mark,<DIV>&nbsp;</DIV><DIV>I've found a "solution" for this problem !</DIV><DIV>Seems that if you set the focus to an other control (not the report control) the msgbox is shown without problem !</DIV><DIV>That's the reason why you don't have the problem with button's showing msgbox, the button got the focus before calling the msgbox !</DIV><DIV>&nbsp;</DIV><DIV>Check my sample :</DIV><DIV><a href="http://forum.codejock.com/uploads/20090707_105826_VirtualList.rar" target="_blank">uploads/20090707_105826_VirtualList.rar</A></DIV><DIV>&nbsp;</DIV><DIV>I've just added a simple textbox on the bottom of the screen.</DIV><DIV>Run the sample and (without doing anything else), go to menu "Report Control" / "Count selected".</DIV><DIV>You'll see 2 msgbox :</DIV><DIV>&nbsp;</DIV><OL><LI>The fisrt is shown with the focus on report control (the report on background is empty --&gt; Bug)</LI><LI>The second is show with the focus on the textbox (--&gt; OK)</LI></OL><DIV>&nbsp;</DIV><DIV>Don't know why but this may help you ?</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 07 Jul 2009 11:01:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14640&amp;PID=50737&amp;title=virtual-mode-msgbox-empty#50737</guid>
  </item> 
  <item>
   <title><![CDATA[Virtual mode + msgbox = empty ? :   mdoubson wrote: Btw - did...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14640&amp;PID=50708&amp;title=virtual-mode-msgbox-empty#50708</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4049">Lodep59</a><br /><strong>Subject:</strong> 14640<br /><strong>Posted:</strong> 06 July 2009 at 4:27am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by mdoubson" alt="Originally posted by mdoubson" style="vertical-align: text-bottom;" /> <strong>mdoubson wrote:</strong><br /><br /><DIV>Btw - did you try same situation in more recent development tools - like VC# or VB.NET?</DIV></td></tr></table> <DIV>&nbsp;</DIV><DIV>No sorry. That's why I use ActiveX versions.</DIV>]]>
   </description>
   <pubDate>Mon, 06 Jul 2009 04:27:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14640&amp;PID=50708&amp;title=virtual-mode-msgbox-empty#50708</guid>
  </item> 
  <item>
   <title><![CDATA[Virtual mode + msgbox = empty ? : At least you see the case when...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14640&amp;PID=50672&amp;title=virtual-mode-msgbox-empty#50672</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14640<br /><strong>Posted:</strong> 04 July 2009 at 8:00pm<br /><br /><P>At least you see the case when app call MsgBox itself by situation reached - no buttons and no user action involved but view is OK?!</P><DIV>Btw - did you try same situation in more recent development tools - like VC# or VB.NET?</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 04 Jul 2009 20:00:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14640&amp;PID=50672&amp;title=virtual-mode-msgbox-empty#50672</guid>
  </item> 
  <item>
   <title><![CDATA[Virtual mode + msgbox = empty ? : And i repeat, there&amp;#039;s also...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14640&amp;PID=50622&amp;title=virtual-mode-msgbox-empty#50622</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4049">Lodep59</a><br /><strong>Subject:</strong> 14640<br /><strong>Posted:</strong> 03 July 2009 at 2:31am<br /><br />And i repeat, there's also many others case in wich the report is cleared !<DIV>Not only by menu.</DIV><DIV>&nbsp;</DIV><DIV>On the "form_queryunload" event, add a msgbox and you'll see the report is cleared !</DIV>]]>
   </description>
   <pubDate>Fri, 03 Jul 2009 02:31:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14640&amp;PID=50622&amp;title=virtual-mode-msgbox-empty#50622</guid>
  </item> 
  <item>
   <title><![CDATA[Virtual mode + msgbox = empty ? : I repeat - the problem is not...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14640&amp;PID=50621&amp;title=virtual-mode-msgbox-empty#50621</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 14640<br /><strong>Posted:</strong> 02 July 2009 at 9:22pm<br /><br />I repeat - the problem is not in MsgBox - in VB Menu handling <DIV>try this function</DIV><DIV>&nbsp;</DIV><DIV>Private Sub wndReportControl_SelectionChanged()<BR>&nbsp;&nbsp;&nbsp; Dim i As Long<BR>&nbsp;&nbsp;&nbsp; i = Me.wndReportControl.SelectedRows.Count<BR>&nbsp;&nbsp;&nbsp; If i = 10 Then MsgBox "SelectedRows.Count " &amp; i<BR>End Sub</DIV><DIV>and you will see picture:</DIV><DIV>&nbsp;</DIV><DIV><img src="http://forum.codejock.com/uploads/20090702_212334_ScreenShot8.jpg" border="0"></DIV>]]>
   </description>
   <pubDate>Thu, 02 Jul 2009 21:22:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14640&amp;PID=50621&amp;title=virtual-mode-msgbox-empty#50621</guid>
  </item> 
 </channel>
</rss>