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

ShellFolderView.SelectionChanged event

mcr
Hi

Can anyone tell me how I can use the ShellFolderView.SelectionChanged event
from
C#?

I have an webBrowserClass object. From its document property I get the
ShellFolderView interface. From this interface I get the selectionChanged
event.

What happens is when I doubleclick a folder I get the event but the folder
does not open. It seems like the event just disappears after I get it.

Normally you would have to tell windows that the event was handled or not
handled, but how do I do this from C#.
Hope you understand my question.
Regards
Martin.


Nov 17 '05 #1
2 3559
Does the event handler get passed any parameters or does it have any return
value which you can set to tell the control that the event was properly
handled?

----------------
-Atul, Sky Software http://www.ssware.com
Shell MegaPack For .Net & ActiveX
Windows Explorer GUI Controls
&
Quick-Launch Like Appbars, MSN/Office2003 Style Popups,
System Tray Icons and Shortcuts/Internet Shortcuts
----------------
"mcr" <an********@microsoft.com> wrote in message
news:OX**************@TK2MSFTNGP15.phx.gbl...
Hi

Can anyone tell me how I can use the ShellFolderView.SelectionChanged
event
from
C#?

I have an webBrowserClass object. From its document property I get the
ShellFolderView interface. From this interface I get the selectionChanged
event.

What happens is when I doubleclick a folder I get the event but the folder
does not open. It seems like the event just disappears after I get it.

Normally you would have to tell windows that the event was handled or not
handled, but how do I do this from C#.
Hope you understand my question.
Regards
Martin.

Nov 17 '05 #2
mcr
The event look like this:

private void SelectionChanged()
{
}

and the declaration is:

folderView.SelectionChanged += new
DShellFolderViewEvents_SelectionChangedEventHandle r(SelectionChanged);

the folderView is a ShellFolderView interface.

Martin
"Atul" <atulatsswaredotcom> skrev i en meddelelse
news:eN**************@TK2MSFTNGP15.phx.gbl...
Does the event handler get passed any parameters or does it have any
return value which you can set to tell the control that the event was
properly handled?

----------------
-Atul, Sky Software http://www.ssware.com
Shell MegaPack For .Net & ActiveX
Windows Explorer GUI Controls
&
Quick-Launch Like Appbars, MSN/Office2003 Style Popups,
System Tray Icons and Shortcuts/Internet Shortcuts
----------------
"mcr" <an********@microsoft.com> wrote in message
news:OX**************@TK2MSFTNGP15.phx.gbl...
Hi

Can anyone tell me how I can use the ShellFolderView.SelectionChanged
event
from
C#?

I have an webBrowserClass object. From its document property I get the
ShellFolderView interface. From this interface I get the selectionChanged
event.

What happens is when I doubleclick a folder I get the event but the
folder
does not open. It seems like the event just disappears after I get it.

Normally you would have to tell windows that the event was handled or not
handled, but how do I do this from C#.
Hope you understand my question.
Regards
Martin.


Nov 17 '05 #3

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

Similar topics

0
by: Eli | last post by:
I'm developing a Visual Basic .Net app that interacts with Visio 2002. I have an event handler in VB to handle the Visio "SelectionChanged" event. This event handler is called when the event is...
4
by: Paul E Collins | last post by:
I have a toolbar with Cut, Copy and Paste buttons, which need to be enabled and disabled as appropriate. I am using SetClipboardViewer and WM_DRAWCLIPBOARD to monitor Clipboard changes and...
2
by: Chuck Bowling | last post by:
I have a problem I can't quite figure out. I want to trigger an event when a some text is selected in a RichTextBox. When the selection is finished, I want to mark the selected text and allow...
0
by: Jimmy | last post by:
I am using Calendar control in my ASP.Net application. When the user clicks a command button, I am making it(calendar control) visible. Once the user selects the date, I am making calendar contol...
3
by: Carlos | last post by:
Hi all, I just tried to handle the SelectionChanged event using a calendar control to popoulate a textbox. I got "12:00:00 AM" instead of the date.. i.e. "11/1/2006" my snippet is Protected...
1
by: Daniel Manes | last post by:
Something is causing my DataGridView to raise a SelectionChanged event, but I can't figure out what. It's definitely not a user action, and it's not something I programmed directly. It's...
2
by: Simon Harvey | last post by:
Hi Guys, Can anyone tell me why the DataGridView.SelectionChanged event fires twice when I databind to it. If I do the following, the first row is selected automatically, but the changed...
24
by: =?Utf-8?B?Tkg=?= | last post by:
I have a basic calendar and a SelectionChanged event (asp.net 2.0). How can I handle it when a user chooses the same date again, in this case the SelectionChanged event is not fired because,...
0
by: Brano | last post by:
Hi all, I have two DataGridViews one has some data in it the other one's data changes according to the selected row in the first dgw. User is allowed to add / change data in the second dgw. 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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...

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.