473,669 Members | 2,415 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help.ShowPopup for all Textboxes on Form?

Hello,

I have a large number of forms which contain an equally large number
of textboxes within (All textboxes have a prefix of txt before their
name). Is there a way that I can have the Help.ShowPopup to display
the contents of the textbox in which the mouse is hovering over?

The issue is that there is text in the text boxes, but cannot be seen
as the text is longer than the textbox.

I can use the following to display the contents of the textbox, but am
hoping there is a way that can work for all of the textboxes rather
than copying the same three lines per textbox as shown below:

Private Sub txtFullName_Mou seHover(ByVal sender As Object, ByVal e
As System.EventArg s) Handles txtFullName.Mou seHover
Help.ShowPopup( Me, txtFullName.Tex t, Cursor.Position )
End Sub

Thanks in Advanced.

LD

May 2 '07 #1
1 1830
Private Sub txtFullName_Mou seHover(ByVal sender As Object, ByVal e
As System.EventArg s) Handles txtFullName.Mou seHover
Help.ShowPopup( Me, txtFullName.Tex t, Cursor.Position )
End Sub
The "Handles" statement says which events are handled by your method.
All you need to do is change the handles to include the other
textboxes:

Private Sub txtFullName_Mou seHover(ByVal sender As Object, ByVal e
As System.EventArg s) Handles txtFullName.Mou seHover, txt2.MouseHover ,
txt3.MouseHover , txt4.MouseHover
Help.ShowPopup( Me, txtFullName.Tex t, Cursor.Position )
End Sub

Also, if you select all your textbox in the designer you should be
able to open the properties tab, set it to show events, and then
select "txtFullName_Mo useHover" from the drop down list of choices for
MouseHover. Then the designer should take care of adding the events to
the method's Handle statement.

Thanks,

Seth Rowe
On May 2, 6:42 am, Dean Richardson <advertis...@de anrichardson.co m>
wrote:
Hello,

I have a large number of forms which contain an equally large number
of textboxes within (All textboxes have a prefix of txt before their
name). Is there a way that I can have the Help.ShowPopup to display
the contents of the textbox in which the mouse is hovering over?

The issue is that there is text in the text boxes, but cannot be seen
as the text is longer than the textbox.

I can use the following to display the contents of the textbox, but am
hoping there is a way that can work for all of the textboxes rather
than copying the same three lines per textbox as shown below:

Private Sub txtFullName_Mou seHover(ByVal sender As Object, ByVal e
As System.EventArg s) Handles txtFullName.Mou seHover
Help.ShowPopup( Me, txtFullName.Tex t, Cursor.Position )
End Sub

Thanks in Advanced.

LD

May 2 '07 #2

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

Similar topics

4
1466
by: morgan.mark | last post by:
I am not an expert at access and I need a little help with a form. I have a form that is linked to a table with address information. My form has a checkbox linked to a field in the database to show when an address has been gone through and confirmed. I would like to have a box on the form that shows how many records have been checked and have "-1" in the table. I don't know how to do this and I asked a consultant that helps me from time to...
8
2320
by: Tim Geiges | last post by:
Since I am being challenged with learning c# I figured I could pass some of the pain on to you guys :-) I have another question(this one is important for me to fix before I can get my app to Beta) My app (an image viewer) opens with a Main form with a file explorer if you open the program with the exe, but opens with the ImageView form if you double click an image file, if you want to see the Main form once the ImageView is open the...
2
1192
by: hartbypass | last post by:
Trying to determine the best way to do this. I have a table that has about 16 columns of free form text and one column that needs to be updated by an enduser. Instead of trying to put the data in a datagrid, I wanted to created something like an input form where the 16 columns were readyonly and the 17th was a text box that could be updated. I need a next and back type button to navigate the data. I am not sure what the best way to...
4
1600
by: newbie | last post by:
Hi, I have a windows form written in C#. The form has multiple textboxes and multiple buttons. I want to create a form where when the users clicks on a particulat textbox and then clicks on a button, a text is added to that textbox. How do i go about doing this when a user selects on any textbox and clicks on a buttont to insert text, it insert the text in the correct
4
1695
by: zihuz86 | last post by:
I need help on php form processing for example : Menu no. : list_menu1 Menu name : list_menu2 Table : Menu
2
2585
by: Richard | last post by:
Help please. I am trying to autofill a form text field from a select-box lookup. I have no problem doing this if the select-box is part of the form but because there are 5 possible select boxes for them to choose from and because of the very large number of options in each select box, to save form loading time, I want to put the look-up select boxes on separate (pop-up) pages. (I prefer them not to be hidden divs on the same page) ...
9
1305
by: Kodiak | last post by:
I am trying to write some javascript code in which you enter some text in one text box and the text will also appear in the second text box. For example, if I write the word "Test" both text boxes should have the same word in them. I need to be able to see the work actually being typed out in both text boxes as well. If I trye the letter T then both text boxes should have the same result all the type. If I delete the letter T then both...
1
1341
by: mturner64 | last post by:
Good Day All! I have a basic understanding of html/asp et cetera. I am wanting to create an html form/interface that allows a user to enter, for example (first name, last name, donation amount in dollars). Once the user clicks "submit" button, I want that information to be stored into a database (preferrably MS Access 2007). This is where I begin to get clueless. I can build the interface/form using VWD 2005 (asp), using textboxes for...
9
8008
by: =?Utf-8?B?RnJhbmsgVXJheQ==?= | last post by:
Hi all I have a MDI Container Form, with one label control on the Background of this container form. When I now open a child form, this form is behind the label ... and this looks ugly ... :-)) When I set the label with "SendToBack", it completely disapears. I also tried to set the child form like "BringToFront" but this also does not help.
0
8465
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8383
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
8803
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
8587
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
7407
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5682
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
4206
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...
0
4384
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2029
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.