473,387 Members | 1,476 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

showing and hiding a control on mouse over

i have a custom control derived from usercontrol (called popupwin). I have
another usercontrol (called extensionbutton). In the extension button i
have declared a variable as follows:
private PopupWindow mUserPopWin;

i create a new instance of the popupwin and provide necessary vars.

this.mUserPopWin = new PopupWindow();

this.mUserPopWin.UserName = this.List.Name;

this.mUserPopWin.UserPhone = this.List.Number;

this.mUserPopWin.ImageUrl = this.List.Picture;

this.mUserPopWin.Visible = false;

now what i want to do is to make the popupwin visible when user mouse is
over the button.

private void ExtensionButton_MouseHover(object sender, System.EventArgs e)

{
ExtensionButton b = ((ExtensionButton)sender);

b.DisableTooltip();

Rectangle btnRect = b.RectangleToScreen(new Rectangle(b.Location,b.Size));

mUserPopWin.Location = btnRect.Location;

mUserPopWin.Visible = true;

mUserPopWin.BringToFront();

}

private void ExtensionButton_MouseLeave(object sender, System.EventArgs e)

{

ExtensionButton b = ((ExtensionButton)sender);

b.DisableTooltip();

mUserPopWin.Visible = false;

}

When i debug i see the code being executed but the window never popup
(becomes visible) what am i doing wrong?

thanks

Nov 17 '05 #1
0 1240

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

Similar topics

15
by: Code Monkee | last post by:
How can the toolbar and menubar be hidden in IE? When opening the window via javascript I can specify 'toolbar=no,menubar=no', which works fine. However if the window already exists how can I...
1
by: Amber | last post by:
The DataGrid allows you to make columns visible or invisible on demand - even edit and other special columns. This article will show you how it is done. Some developers have reported problems...
6
by: Selden McCabe | last post by:
I have a form with a bunch of image buttons. When the user moves the mouse over a button, I want to do two things: 1. change the Imagebutton's picture, and 2. make another control visible. I'm...
5
by: Charles Law | last post by:
Sorry for reposting this question, but I did not get a single answer last time, and I'm sure you guys must have some thoughts on the matter. I have a user control which can be dragged and dropped...
8
by: Tom | last post by:
Hi I am having problems working out if the mouse pointer is within the control bounds within the OnMouseMove method: Protected Overrides Sub OnMouseMove(ByVal e As MouseEventArgs) ...
1
by: StyrofoamSUV | last post by:
Hello all. I am interested in hiding a ListView Control underneath a TabControl. The ListView Control will contain say, 5 columns. When the user selects 1 of the tabs, I want to show the ListView...
4
by: Johnny Jensen | last post by:
Hello Group In the old days i'ev created a VB6 appl. that was able to obtain the underlaying control under the mouse pointer. I would very much like to do that in a C# application. I'll use...
9
daoxx
by: daoxx | last post by:
Hi Question#1 Is it possible to show a textbox (linked to a field) when the mouse pointer goes over a checkbox, and hiding it when the pointer goes away, and at the same time allowing the user to...
10
daoxx
by: daoxx | last post by:
Hello I've searched, posted and solved this (Thanks for helping!), but now it came back to bite me in the *ss. I have a Yes/No field that is represented by a check box in my form1. I want to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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...

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.