Wrox Programmer Forums
BOOK: Professional C#, 2nd and 3rd Editions
This is the forum to discuss the Wrox book Professional C#, 3rd Edition by Simon Robinson, Christian Nagel, Karli Watson, Jay Glynn, Morgan Skinner, Bill Evjen; ISBN: 9780764557590
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional C#, 2nd and 3rd Editions section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old January 8th, 2004, 12:35 AM
DAK DAK is offline
Registered User
Join Date: Jan 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Tool Tips in C#

I couldn't find anything in the book on activating tool tips for a form. I found a ToolTips class and examples in the MSDN help, but its a standalone method that refers to "this.components" as the "Form container", but this variable is null at the Form.Load time, so the constructor for ToolTips fails:

     // Create the ToolTip and associate with the Form container.
         ToolTip toolTip1 = new ToolTip(this.components);

--> found some sample code elsewhere and found that I needed to initialize "this.components" - not sure why yet (I'm new at C#) - would have expected the designer to do this:

     this.components = new System.ComponentModel.Container();

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tips for organizing Team Projects? vcohen BOOK: Professional Team Foundation Server ISBN: 0-471-91930-6 0 April 9th, 2007 05:10 PM
how to add tool tips for drop down list ? wlin ASP.NET 2.0 Basics 0 November 20th, 2006 04:12 PM
hints and tips needed Vano2005 C# 6 July 13th, 2005 11:42 AM
How to make Tool Tips when onmouseover bekim Javascript How-To 5 February 2nd, 2005 08:53 AM
How to add tool tips to button control Kevin M VB.NET 2002/2003 Basics 3 October 27th, 2003 01:23 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.