Robert McLaws: FunWithCoding.NET

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

News

<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="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </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.

Blogroll

Cool .NET Articles

My .NET Tools

My Builder.com Articles

My MSKB Articles

April 2006 - Posts

"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:
The easy way to add controls to the VS2005 Toolbox

Did you know that there is a way to add controls to the Toolbox in Visual Studio 2005 than selececting "Add Items"? Just open Windows Explorer and browse to the assembly containing the controls you want. Select the assembly, and drag it onto the Toolbox, in the tab you want the controls to be in. Visual Studio 2005 will then add any class that has a "ToolboxItem" attribute on it to the Toolbox. Beats having to click a bunch of checkboxes, huh?

Announcing "Atlas" Control Toolkit

Microsoft just released the first public version of the "Atlas" Control Toolkit. This package is a series of sample ControlExtenders that attach to existing controls to do some really cool stuff. My favorite is the TextboxWatermark.

It also includes Project and Item templates to help you build your own controls. It's a separate download from the main "Atlas" release, but I would assume that this would be rolled into the "Atlas" releases at some point.

Check it out!

UPDATE: Did I mention it comes with the complete source code? :)
Posted: Apr 12 2006, 04:36 PM by interscape | with no comments
Filed under:
What's That Guy Up To, Anyway?

Soon, all will be revealed...

I can't wait to start talking about code again :).

More Posts