<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Modal Dialogs with Transparent Backgrounds</title><link>http://blogs.msdn.com/access/archive/2008/04/28/modal-dialogs-with-transparent-backgrounds.aspx</link><description>If you've taken a look at some web sites recently, you may have noticed an effect where items (usually images or videos) are brought to the foreground using an effect called a lightbox . The effect is used to dim (or sometimes lighten) the background</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Modal Dialogs with Transparent Backgrounds</title><link>http://blogs.msdn.com/access/archive/2008/04/28/modal-dialogs-with-transparent-backgrounds.aspx#8436727</link><pubDate>Tue, 29 Apr 2008 10:43:23 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8436727</guid><dc:creator>Chris Lockwood</dc:creator><description>&lt;p&gt;I really like this, and surprisingly easy to implement.&lt;/p&gt;
&lt;p&gt;However in my dual monitor set-up I get some odd behaviour, when I view the project on my primary screen the transparency form displays on my secondary monitor... Strange!&lt;/p&gt;
</description></item><item><title>re: Modal Dialogs with Transparent Backgrounds</title><link>http://blogs.msdn.com/access/archive/2008/04/28/modal-dialogs-with-transparent-backgrounds.aspx#8436862</link><pubDate>Tue, 29 Apr 2008 12:54:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8436862</guid><dc:creator>Renaud Bompuis</dc:creator><description>&lt;p&gt;To Chris and others:&lt;/p&gt;
&lt;p&gt;On the frmTransparent form, also set:&lt;/p&gt;
&lt;p&gt;- Auto Center to true (avoids issues with mutliple monitors)&lt;/p&gt;
&lt;p&gt;- ScrollBars to none (otherwise a portion of the screen remains visible at the bottom in some cases)&lt;/p&gt;
&lt;p&gt;Nice and great effect!&lt;/p&gt;
&lt;p&gt;Thanks Rob.&lt;/p&gt;
</description></item><item><title>re: Modal Dialogs with Transparent Backgrounds</title><link>http://blogs.msdn.com/access/archive/2008/04/28/modal-dialogs-with-transparent-backgrounds.aspx#8438353</link><pubDate>Tue, 29 Apr 2008 20:01:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8438353</guid><dc:creator>Khuzema</dc:creator><description>&lt;p&gt;Its really useful tip and really easy to implement with awesome effect. &lt;/p&gt;
&lt;p&gt;Renaud - Thanks for AutoCenter/Scrollbar tip I was facing the same issue with multi-monitor.&lt;/p&gt;
&lt;p&gt;keep more of this coming...&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
</description></item><item><title>re: Modal Dialogs with Transparent Backgrounds</title><link>http://blogs.msdn.com/access/archive/2008/04/28/modal-dialogs-with-transparent-backgrounds.aspx#8438359</link><pubDate>Tue, 29 Apr 2008 20:05:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8438359</guid><dc:creator>Khuzema</dc:creator><description>&lt;p&gt;Renaud - you can add to list Navigation button also which should be no&lt;/p&gt;
</description></item><item><title>re: Modal Dialogs with Transparent Backgrounds</title><link>http://blogs.msdn.com/access/archive/2008/04/28/modal-dialogs-with-transparent-backgrounds.aspx#8438421</link><pubDate>Tue, 29 Apr 2008 20:28:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8438421</guid><dc:creator>robcooper</dc:creator><description>&lt;p&gt;Thanks to Renaud and Khuzema for the tips on setting additional properties of the form. Glad to hear you are enjoying this!&lt;/p&gt;
</description></item><item><title>re: Modal Dialogs with Transparent Backgrounds</title><link>http://blogs.msdn.com/access/archive/2008/04/28/modal-dialogs-with-transparent-backgrounds.aspx#8443460</link><pubDate>Wed, 30 Apr 2008 17:09:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8443460</guid><dc:creator>Mike</dc:creator><description>&lt;p&gt;Thanks guys, this is exactly what I needed.&lt;/p&gt;
</description></item><item><title>re: Modal Dialogs with Transparent Backgrounds</title><link>http://blogs.msdn.com/access/archive/2008/04/28/modal-dialogs-with-transparent-backgrounds.aspx#8445929</link><pubDate>Thu, 01 May 2008 05:32:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8445929</guid><dc:creator>Toffee</dc:creator><description>&lt;p&gt;The effect works great, but I was wandering if anyone has a method for only creating the lightbox effect within the Access program window instead of the whole screen?&lt;/p&gt;
</description></item><item><title>re: Modal Dialogs with Transparent Backgrounds</title><link>http://blogs.msdn.com/access/archive/2008/04/28/modal-dialogs-with-transparent-backgrounds.aspx#8446689</link><pubDate>Thu, 01 May 2008 12:00:11 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8446689</guid><dc:creator>Renaud Bompuis</dc:creator><description>&lt;p&gt;To Toffee:&lt;/p&gt;
&lt;p&gt;Add a new module and copy-paste the following into it:&lt;/p&gt;
&lt;p&gt;'-------------------------&lt;/p&gt;
&lt;p&gt;Type RECT&lt;/p&gt;
&lt;p&gt; &amp;nbsp; x1 As Long&lt;/p&gt;
&lt;p&gt; &amp;nbsp; y1 As Long&lt;/p&gt;
&lt;p&gt; &amp;nbsp; x2 As Long&lt;/p&gt;
&lt;p&gt; &amp;nbsp; y2 As Long&lt;/p&gt;
&lt;p&gt;End Type&lt;/p&gt;
&lt;p&gt;Declare Function GetWindowRect Lib &amp;quot;user32&amp;quot; (ByVal hwnd As Long, rectangle As RECT) As Boolean&lt;/p&gt;
&lt;p&gt;Declare Function MoveWindow Lib &amp;quot;user32&amp;quot; (ByVal hwnd As Long, ByVal x As Long, ByVal y As Long, ByVal width As Long, ByVal height As Long, ByVal repaint As Boolean) As Boolean&lt;/p&gt;
&lt;p&gt;'-------------------------&lt;/p&gt;
&lt;p&gt;Now change the frmTransparent's Resize event:&lt;/p&gt;
&lt;p&gt;Private Sub Form_Resize()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Me.Painting = False&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Dim r As RECT&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;GetWindowRect Application.hWndAccessApp, r&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;MoveWindow Me.hwnd, r.x1, r.y1, (r.x2 - r.x1), (r.y2 - r.y1), True&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;SetFormOpacity Me, 0.7&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Me.Painting = True&lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;
&lt;p&gt;Make sure the frmTransparent settings are:&lt;/p&gt;
&lt;p&gt;--&amp;gt; AutoCenter: No &amp;lt;--!!&lt;/p&gt;
&lt;p&gt;- Default View: Single Form&lt;/p&gt;
&lt;p&gt;- BorderStyle: none&lt;/p&gt;
&lt;p&gt;- ScrollBars: neither&lt;/p&gt;
&lt;p&gt;- Record Selector: No&lt;/p&gt;
&lt;p&gt;- Navigation Buttons: No&lt;/p&gt;
&lt;p&gt;The frmTransparent &amp;nbsp;should now open to cover the main Access window only.&lt;/p&gt;
&lt;p&gt;Works fine on multiple monitors and even if the main form is partially outside the desktop.&lt;/p&gt;
&lt;p&gt;One thing to be careful with this effect is that if your application is accessible through Remote Desktop, the RDP clients may not support transparency and will instead see an opaque window.&lt;/p&gt;
&lt;p&gt;You can use the following to detect if you're running in a Remote Terminal Desktop client:&lt;/p&gt;
&lt;p&gt;left(Environ$(&amp;quot;SESSIONNAME&amp;quot;), 3) = &amp;quot;RDP&amp;quot;&lt;/p&gt;
&lt;p&gt;If this is true, then don't show the frmTransparent &amp;nbsp;form.&lt;/p&gt;
</description></item><item><title>re: Modal Dialogs with Transparent Backgrounds</title><link>http://blogs.msdn.com/access/archive/2008/04/28/modal-dialogs-with-transparent-backgrounds.aspx#8447235</link><pubDate>Thu, 01 May 2008 19:49:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8447235</guid><dc:creator>Joe Dowski</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I love the effect. &amp;nbsp;However, what values do I need to adjust to change the level of transparency in my form ? &amp;nbsp;I'd like to lighten it up a bit.&lt;/p&gt;
&lt;p&gt;Thanks again very much for the tip !&lt;/p&gt;
&lt;p&gt;J.&lt;/p&gt;
</description></item><item><title>re: Modal Dialogs with Transparent Backgrounds</title><link>http://blogs.msdn.com/access/archive/2008/04/28/modal-dialogs-with-transparent-backgrounds.aspx#8447276</link><pubDate>Thu, 01 May 2008 20:24:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8447276</guid><dc:creator>robcooper</dc:creator><description>&lt;p&gt;Joe,&lt;/p&gt;
&lt;p&gt;To change the transparency level, change the value passed to SetFormOpacity from 0.7 to something smaller. I've tried 0.5 (50% opacity) and it looks pretty cool as well.&lt;/p&gt;
&lt;p&gt;Hope this helps,&lt;/p&gt;
&lt;p&gt;Rob&lt;/p&gt;
</description></item><item><title>re: Modal Dialogs with Transparent Backgrounds</title><link>http://blogs.msdn.com/access/archive/2008/04/28/modal-dialogs-with-transparent-backgrounds.aspx#8447309</link><pubDate>Thu, 01 May 2008 20:36:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8447309</guid><dc:creator>robcooper</dc:creator><description>&lt;p&gt;Renaud&lt;/p&gt;
&lt;p&gt;Your follow up post to this is really great! I tend to use a class module for my own implementation so I'm working on a follow up to this where I'm encapsulting the new code into a class to make it easier to use.&lt;/p&gt;
&lt;p&gt;Rob&lt;/p&gt;
</description></item><item><title>re: Modal Dialogs with Transparent Backgrounds</title><link>http://blogs.msdn.com/access/archive/2008/04/28/modal-dialogs-with-transparent-backgrounds.aspx#8447369</link><pubDate>Thu, 01 May 2008 21:10:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8447369</guid><dc:creator>JoeOxfordCT</dc:creator><description>&lt;p&gt;Rob,&lt;/p&gt;
&lt;p&gt;I apologize for being thick headed but I can't find where you're setting the forms opacity to 0.7, nevermind changing it to 0.5....?&lt;/p&gt;
&lt;p&gt;Sorry...&lt;/p&gt;
&lt;p&gt;Joe&lt;/p&gt;
</description></item><item><title>re: Modal Dialogs with Transparent Backgrounds</title><link>http://blogs.msdn.com/access/archive/2008/04/28/modal-dialogs-with-transparent-backgrounds.aspx#8447413</link><pubDate>Thu, 01 May 2008 21:47:33 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8447413</guid><dc:creator>robcooper</dc:creator><description>&lt;p&gt;Hi Joe,&lt;/p&gt;
&lt;p&gt;No worries - it is called from the Form_Resize event of frmTransparent:&lt;/p&gt;
&lt;p&gt;Private Sub Form_Resize() &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Me.Painting = False &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;DoCmd.Maximize &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;SetFormOpacity Me, 0.5 &lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Me.Painting = True &lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;
&lt;p&gt;Rob&lt;/p&gt;
</description></item><item><title>re: Modal Dialogs with Transparent Backgrounds</title><link>http://blogs.msdn.com/access/archive/2008/04/28/modal-dialogs-with-transparent-backgrounds.aspx#8450258</link><pubDate>Fri, 02 May 2008 14:51:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8450258</guid><dc:creator>Renaud Bompuis</dc:creator><description>&lt;p&gt;thanks Rob.&lt;/p&gt;
&lt;p&gt;I did a sample database showing off the concept.&lt;/p&gt;
&lt;p&gt;My post on this is on blog (just click my name aboce this comment to get to the article)&lt;/p&gt;
&lt;p&gt;It would be nice to see your own improvements of this by making it a class helper.&lt;/p&gt;
&lt;p&gt;Strangely enough, Mark Miller talked about that kind of stuff (What makes great UI) on the last show of DotNetRocks.&lt;/p&gt;
&lt;p&gt;Check it out it's both interesting and funny (look up dotnetrocks, show #338).&lt;/p&gt;
</description></item><item><title>re: Modal Dialogs with Transparent Backgrounds</title><link>http://blogs.msdn.com/access/archive/2008/04/28/modal-dialogs-with-transparent-backgrounds.aspx#8458349</link><pubDate>Sun, 04 May 2008 18:00:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8458349</guid><dc:creator>Thomas Wortig</dc:creator><description>&lt;p&gt;Thx Rob, great concept.&lt;/p&gt;
&lt;p&gt;However, testing it I ran into the problem (perhaps caused by my relative inexperience, so bear with me):&lt;/p&gt;
&lt;p&gt;When I click on the dimmed area around the lightbox form frmTransparent gets the focus pushing the foreground form into the background, which makes it non-responsive.&lt;/p&gt;
&lt;p&gt;How to prevent this?&lt;/p&gt;
</description></item><item><title>re: Modal Dialogs with Transparent Backgrounds</title><link>http://blogs.msdn.com/access/archive/2008/04/28/modal-dialogs-with-transparent-backgrounds.aspx#8458351</link><pubDate>Sun, 04 May 2008 18:04:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8458351</guid><dc:creator>Thomas Wortig</dc:creator><description>&lt;p&gt;Never mind, found it myself.&lt;/p&gt;
&lt;p&gt;The modal-property did the trick.&lt;/p&gt;
&lt;p&gt;Sorry for posting prematurely ...&lt;/p&gt;
</description></item><item><title>re: Modal Dialogs with Transparent Backgrounds</title><link>http://blogs.msdn.com/access/archive/2008/04/28/modal-dialogs-with-transparent-backgrounds.aspx#8459000</link><pubDate>Mon, 05 May 2008 02:50:32 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8459000</guid><dc:creator>robcooper</dc:creator><description>&lt;p&gt;Thanks Renaud - I'll check that out.&lt;/p&gt;
&lt;p&gt;Thomas - thanks for the feedback! Glad you got it working.&lt;/p&gt;
</description></item><item><title>re: Modal Dialogs with Transparent Backgrounds</title><link>http://blogs.msdn.com/access/archive/2008/04/28/modal-dialogs-with-transparent-backgrounds.aspx#8460305</link><pubDate>Mon, 05 May 2008 14:54:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8460305</guid><dc:creator>Jose Cardona</dc:creator><description>&lt;p&gt;Hello! &amp;nbsp;Please don’t forget the Microsoft Access Project (.ADP) developers. &amp;nbsp;In addition, MS Access Project don’t recognize the data type bigint when connect to MS SQL Server 2005. &amp;nbsp;Thanks for read this and remember us! &amp;nbsp;We feel a little orphaned. &lt;/p&gt;
</description></item><item><title>re: Modal Dialogs with Transparent Backgrounds</title><link>http://blogs.msdn.com/access/archive/2008/04/28/modal-dialogs-with-transparent-backgrounds.aspx#8461120</link><pubDate>Mon, 05 May 2008 21:38:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8461120</guid><dc:creator>Joe</dc:creator><description>&lt;p&gt;Hi Rob,&lt;/p&gt;
&lt;p&gt;I've implement the effect on one form but I'm getting some users where when they call the form, (I'll call it Form1) that opens the frmTransparent up, Form1 is behind frmTransparent and greyed out along with everything else on the screen. &amp;nbsp;It's weird because they don't get this all the time.....In fact I was having trouble believing it until I saw it happen with my own eyes on another user's machine.....it's not everytime...just sometimes. &amp;nbsp;In my example Form1 has both Popup &amp;amp; Modal properties set to yes.&lt;/p&gt;
</description></item><item><title>re: Modal Dialogs with Transparent Backgrounds</title><link>http://blogs.msdn.com/access/archive/2008/04/28/modal-dialogs-with-transparent-backgrounds.aspx#8461382</link><pubDate>Mon, 05 May 2008 23:42:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8461382</guid><dc:creator>robcooper</dc:creator><description>&lt;p&gt;Hi Joe,&lt;/p&gt;
&lt;p&gt;Does the frmTransparent form have the Popup property set to Yes?&lt;/p&gt;
</description></item><item><title>Follow up to Transparency Forms</title><link>http://blogs.msdn.com/access/archive/2008/04/28/modal-dialogs-with-transparent-backgrounds.aspx#8461811</link><pubDate>Tue, 06 May 2008 03:47:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8461811</guid><dc:creator>Access Team Blog</dc:creator><description>&lt;p&gt;Renaud posted some comments to the previous post about transparency forms and made some really cool enhancements&lt;/p&gt;
</description></item></channel></rss>