Robert McLaws: FunWithCoding.NET

Public Shared Function BrainDump(ByVal dotNet As String) As [Value]


<script type="text/javascript"><!-- google_ad_client = "pub-4330602465258980"; google_hints = "ASP.NET, VB.NET, C#, C#.NET, WindowsForms, .NET Framework, VS2005, Visual Studio, XAML, WinFX, Windows Workflow, WPF, WCF, Atlas, NetFX3, Visual Studio Orcas"; google_ad_width = 120; google_ad_height = 240; google_ad_format = "120x240_as"; google_ad_type = "text_image"; google_ad_channel ="4997399242"; google_color_border = "B6C9E7"; google_color_bg = "EFEFEF"; google_color_link = "0000FF"; google_color_text = "000000"; google_color_url = "002C99"; //--></script> <script type="text/javascript" src=""> </script>

You should feel free to challenge me, disagree with me, or tell me I'm completely nuts in the comments section of each blog entry, but I reserve the right to delete any comment for any reason whatsoever. That said, I will most likely only delete abusive, profane, rude, or annonymous comments, so keep it polite, please.


Cool .NET Articles

My .NET Tools

My Articles

My MSKB Articles

"Atlas" Toolkit - Using an Image in a CollapsiblePanelExtender

Want to use an image instead of a text label to trigger the expanding/collapsing events of an "Atlas" CollapsiblePanel? You still use a "Label" control for the trigger, but you switch it up a bit by setting the "ExpandText" and "CollapseText" properties to the HTML code for an image, like this:

        CollapsiblePanelProperties.ExpandedText = "<img src='\website\images\toggle_expand.gif' />"
        CollapsiblePanelProperties.CollapsedText = "<img src='\website\images\collapsed_toggleExpand.gif' />"

It's the same trick you can use in DataGrids to create an image without an image control, and creates the desired effect, as shown below.

In a future post, I'll illustrate in detail how to combine several "Atlas" extenders to create a "Poor Man's Portal" control. I just need to clean up the code and make it a little more "elegant".

Posted: Apr 17 2006, 12:30 AM by interscape | with 2 comment(s) |
Filed under:


Shawn said:

Ha! Wow - that is as cool way of doing it. Never thought of that one!
# April 17, 2006 1:05 PM

Ayl said:

Nice work... I'm interested in something else though, I want to be able to use multiple controls to manage the collapsing and espanding of the collapsible panel. i.e. if u had a panel for adding records, you'd want update, save and cancel to all collapse the panel. How can I run this in code?
# June 3, 2006 1:27 PM