473,396 Members | 1,738 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,396 software developers and data experts.

Open file dialog look question

In dot net 2003 on Xp when you go to the file menu and select Open file a
dialog box opens up
on the left hand side there are items such as

history
My Projects
Desktop
Favorites
My Network places
when the mouse hovers over any of the above items, the item changes state
(image) it has raised look with a new image and the background is light
blue. and when you click the item it has suck state with a new image etc.

I am trying to mimic that exact look for my configuration. I am deriving it
from Usercontrol. on top of the user contol i have a panel, in the panel i
have a an image button and a lable. Mostly it works but the problems is
that it sometime works fine but sometimes it just never gets mouse out call
at all . Anyone have a better idea on how i can achieve this.

i use the following code

public void MouseOverHandler()

{

Rectangle r = new Rectangle(panel1.Location, panel1.Size);

Point p = this.PointToClient(Cursor.Position);
if(r.Contains(p) && !isFocused)

{

System.Diagnostics.Debug.WriteLine("mouse over executed");

panel1.BackColor = Color.FromKnownColor(KnownColor.InactiveCaption);

panel1.BorderStyle = BorderStyle.FixedSingle;

NavName.BackColor = Color.FromKnownColor(KnownColor.InactiveCaption);

NavName.ForeColor = Color.Black;

picNormalImage.Visible = false;

picHoverImage.Visible = true;

isFocused = true;

}

}

public void MouseOutHandler()

{

Rectangle r = new Rectangle(panel1.Location, panel1.Size);

Point p = this.PointToClient(Cursor.Position);

if(r.Contains(p) && !IsClicked )

{

return;

}

System.Diagnostics.Debug.WriteLine("mouse not in Rect");

isFocused = false;

panel1.BackColor = Color.FromKnownColor(KnownColor.Highlight);

panel1.BorderStyle = BorderStyle.None;

NavName.BackColor = Color.FromKnownColor(KnownColor.Highlight);

NavName.ForeColor = Color.Cornsilk;

picNormalImage.Visible = true;

picHoverImage.Visible = false;
}
Nov 17 '05 #1
0 1356

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

Similar topics

7
by: Martin | last post by:
Again drawing on the groups experience:- 1. For general file opening and file saving, using VB6, are there any issues with using the FileOpen and FileSave Common Dialog Boxes? 2. Is using the...
55
by: Steve Jorgensen | last post by:
In a recent thread, RKC (correctly, I believe), took issue with my use of multiple parameters in a Property Let procedure to pass dimensional arguments on the basis that, although it works, it's...
2
by: Jonathan Trevor | last post by:
Hi, For the last couple of releases of a product we're developing we've been running to very wierd behavior from IE and our ASP.NET web application which serves up various types of files and I'm...
2
by: nissiml | last post by:
hi, i'm trying to open a asp.net web page that list files from a Windows application like winword and select a file from it . what do i have to do to make it happen, is it simple ? Thanks in...
2
by: OutdoorGuy | last post by:
Greetings, I have a "newbie" question in relation to opening files from C#. I have a Windows form where I allow the user to type in a file extension in a text box (e.g., "xls"). I then take...
5
by: charles | last post by:
I have a question about the file Open dialog box. I would like to be able to make the dialog box bigger by selecting the bottom right-hand corner and dragging/expanding the box. I am told by...
7
by: Peter | last post by:
ASP.NET 2.0 I am trying to open a Word document and Excel document from a dialog web page, what's the best way to do that? I have tried the following: Response.Clear();...
7
by: Peter | last post by:
I have the following code which is executed from a modal web page - it works fine on most, but on some computers the Word loads into memory but never displays. This occurs with IE6 and IE7, but...
5
by: Stefano Tonello | last post by:
Hi all, I need to call windows' "open with" dialog from my C# windows form application. After the user selects application, control must return to me (I have to launch directly the process). I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
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,...
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...
0
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...
0
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
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,...

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.