473,508 Members | 2,454 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_MouseHover(ByVal sender As Object, ByVal e
As System.EventArgs) Handles txtFullName.MouseHover
Help.ShowPopup(Me, txtFullName.Text, Cursor.Position)
End Sub

Thanks in Advanced.

LD

May 2 '07 #1
1 1824
Private Sub txtFullName_MouseHover(ByVal sender As Object, ByVal e
As System.EventArgs) Handles txtFullName.MouseHover
Help.ShowPopup(Me, txtFullName.Text, 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_MouseHover(ByVal sender As Object, ByVal e
As System.EventArgs) Handles txtFullName.MouseHover, txt2.MouseHover,
txt3.MouseHover, txt4.MouseHover
Help.ShowPopup(Me, txtFullName.Text, 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_MouseHover" 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...@deanrichardson.com>
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_MouseHover(ByVal sender As Object, ByVal e
As System.EventArgs) Handles txtFullName.MouseHover
Help.ShowPopup(Me, txtFullName.Text, 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
1457
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...
8
2307
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)...
2
1186
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...
4
1590
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...
4
1691
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
2576
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...
9
1299
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...
1
1338
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...
9
7983
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 ... :-))...
0
7129
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...
0
7333
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7502
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...
0
5637
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,...
1
5057
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...
0
4716
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...
0
3208
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...
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
428
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...

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.