473,804 Members | 2,184 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tooltips only work once on form

Hi all,

Using the toolbox I added a tooltip provider to my form, and set the text
for each of my buttons using the properties window.

When I first show the form using .showdialog the tooltips work. However
if I close and re-open the form the tooltips are no longer displayed.

Am I missing something obvious or is this a bug ??

thanks in advance
Steve

Nov 21 '05
11 1683
On Fri, 8 Oct 2004 16:30:16 +0100, One Handed Man ( OHM - Terry Burns )
wrote:
When a form is closed, all resources created within the object are closed
and the form is disposed. If you simply want to hide the form from view use
the Hide() method.


I don't believe that the form is disposed when closed after a .showdialog.

--
Chris

dunawayc[AT]sbcglobal_lunch meat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
Nov 21 '05 #11
On Mon, 11 Oct 2004 09:46:27 -0500, Chris Dunaway wrote:
I don't believe that the form is disposed when closed after a .showdialog.


Further info from the docs:

When a form is displayed as a modal dialog box, clicking the close form
button (the button with an "X" at the top right of the form) causes the
form to be hidden and the DialogResult property to be set to
DialogResult.Ca ncel. Unlike modeless forms, the Close method is not called
by the .NET Framework when the user clicks the close form button of a
dialog box or sets the value of the DialogResult property. Instead the form
is hidden and can be shown again without creating a new instance of the
dialog box. Because a form displayed as a dialog box is not closed, you
must call the Dispose method of the form when the form is no longer needed
by your application.
--
Chris

dunawayc[AT]sbcglobal_lunch meat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
Nov 21 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2713
by: David Ei | last post by:
I'm working on a C# Windows Forms application that is leaking memory. I've been using the SciTech NetMem Profiler 2 (A really great tool, BTW) to track down leaks. I've found one related to ToolTips that I've been unable to fix. We have a base form, from which we add and remove panels. When created, the panels create tooltips which they associate with themselves. When removed, the panels and their tooltips are Disposed. The disposed...
0
1167
by: ADavis | last post by:
We have an existing ActiveX control that plots data points over an image. When the mouse is moved over these points, a tool tip is supposed to be displayed indicating information about the point. This control is already deployed in an unmanaged application and works correctly there. We have been attempting to re-use it in a .Net forms based application and have gotten all other aspects to work except the tooltips. The ToolTips...
3
5181
by: David Hayes | last post by:
I've made tooltips work in Firefox*, but tooltip doesn't appear at the specified location until the SECOND time that the user passes the mouse over the location with the mouseover event. What I want is for the user to be able to put the mouse over text that gives a year (e.g., "(1932)", "(1946)" and "(1923)") and see the tooltip to the right and slightly beneath the year. (For the record -- this needn't concern the debugging effort --...
1
1845
by: Wayne Aprato | last post by:
Tooltips in Access have not worked on my machine for a long time despite several reinstalls of the operating system and applications at fairly regular intervals. I have finally pinned down the culprit. I have just performed a reformat and reinstallation of all apps and utilites one at a time and checked that tooltips in Access was working after each new application was installed. Acrobat 5 was the culprit. With it installed tooltips...
0
982
by: glhanson | last post by:
I am using the AxWebBrowser control to display a simple HTML page on a windows form. I want to display tooltips using the title attribute for the hrefs. The tooltips work fine when the HTML is displayed in IE and FireFox, but they don't work at all inside the AXWebBrowser. Does anyone know if tooltips are not supported, or is there a property on the control that needs to be set? Or maybe something else I am overlooking? Any help is...
2
3055
by: David Batt | last post by:
Hello I have a problem whereby I wish to setup a custom tooltip. I have the code attached to do this, it all works very wel if you have the following code in a button click event on the form toolTip1.SetToolTip(BtnProjSearch, "Search for a Project" toolTip1.SetToolTip(cboSelect, "select the number of projects that you wish to select" Dim tp As New CustomTi tp.CustomBalloon(toolTip1
1
1804
by: TyBreaker | last post by:
I have a simple form with a toolstrip on it and some toolstrip buttons. Tooltips work fine. But then I use the ShAppBarMessage API call to register the form as an Application Desktop Toolbar. That's when the tooltips seem to stop working. Does anybody know why this is so? I heard SP1 for Visual Studio 2005 is imminent so if nobody can help, I'll cross fingers and see if it is a VS2005 bug rather than my own
9
2434
by: timnels | last post by:
I have an issue where I have a user control that is launched into a floating form. At some point later, I allow the user to "unfloat" the user control by reparenting it on a split container in another form. Problem is if I wake a tooltip when the window is floated, and then try the same thing when it is reparented, the app crashes with " Cannot access a disposed object.Object name: 'Form'. Presumably, this is a result of the tooltips...
3
2610
by: =?Utf-8?B?RXRoYW4gU3RyYXVzcw==?= | last post by:
Hi, Is it possible to access menustrips and tooltips from the IDE when they are present on a form from which you have inherited? I would like to have a template form from which a bunch of forms inherit. This template would have a tooltip provider & a menustrip, but I need to be able to access both of those in the child forms to add remove items. I can manipulate the programatically by creating getters & setters, but I would prefer to...
0
9594
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10343
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10341
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10089
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7634
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5530
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4308
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.