473,608 Members | 2,592 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Adding events or changeing properties of a window useing its handel

If I have the handel of a application window.. like the handel for the
system tray "Shell_Tray Wnd" how would i be able to interface to that handel?
so i could add events or properties? Thanks!

Nov 20 '05 #1
2 997
It may be possible if the interface to the object is known to convert the
handle to an object interface using the system.reflecti on namespace

"Brian Henry" <[REMOVE-ME]br******@adelph ia.net> wrote in message
news:OM******** ******@TK2MSFTN GP09.phx.gbl...
If I have the handel of a application window.. like the handel for the
system tray "Shell_Tray Wnd" how would i be able to interface to that handel? so i could add events or properties? Thanks!

Nov 20 '05 #2
* "Brian Henry" <[REMOVE-ME]br******@adelph ia.net> scripsit:
If I have the handel of a application window.. like the handel for the
system tray "Shell_Tray Wnd" how would i be able to interface to that handel?
so i could add events or properties? Thanks!


What exactly do you want to do? You can use various platform functions
(like 'SendMessage', ...) to manipulate the window. You can use a hook
to get messages sent to the window.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3

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

Similar topics

11
1800
by: dave | last post by:
I have been using vb.net /asp.net for 2 years. I am slowing switching over to c# and have 2 questions. 1.) Within vb.net I can go into asp.net project properties and I can enter the imports once for the project. Can I do this with a c# asp.net project? (or am i forced to put using on each and every asp.net page?) 2.) Within vs.net with a vb.net project, while editing the code behind file, i have 2 drop downs along the top
1
1475
by: tolisss | last post by:
Hi does ne1 know how could i make the events window appear using keyb like we have F4 for the properties window i need a shortcut for the events also can ne1 help me on this please *-----------------------* Posted at: www.GroupSrv.com *-----------------------*
20
12876
by: David | last post by:
I have a one-line script to add an onunload event handler to the body of the document. The script is as follows: document.getElementsByTagName("BODY").onunload=function s() {alert("s")} Now obviously, I put the alert("s") part in for debugging purposes, just to make sure the error wasn't in any code I was going to be running. This line works just fine in IE6 but in Firefox it doesn't. However, if I replace that line with the...
4
5906
by: Curious George | last post by:
I have a frameset with multiple aspx pages whithin it. I lauch the page and notice that it triggers many session_start events. In fact I knotice multiple events for the same page. I am also using windows authentication. On a few pages I get guest and then the user who is loged into the computer. I am writing user information to my session and do not want it writen 8 times.
3
2356
by: Edgardo Rossetto | last post by:
Is it possible? How can I do it? I read the documentation about the events and delegates, but its somehow unclear, specially since it doesn't involve any data, I only want to add the key events to the label control. Sorry if this is dumb, I'm kind of newbie.
9
2260
by: Greg Muncien | last post by:
In VB.Net, when you double click a control you see all available events of that control in a combo box. Click on one, and the interface code is right there waiting for you to type implementation. Why does this not occur in C#? I have to write the function header myself? Why does it seem C# goes out of its way to be less productive than VB.Net? Has this been fixed in 2005?
3
1712
by: Brian Henry | last post by:
does anyone know the user32.dll function or how i can do this? I want to set the caption of a window based on the handel i specify... i already have the functions to get the handel of the window returned as an integer... but i want to change the caption, ive been looking through the user32.dll function list, but not sure which one does it. any help would be nice, thanks!
4
2123
by: Jeff User | last post by:
Hi I tryed to solve this problem over in the framework.asp group, but still am having trouble. Hope someone here can help. using .net 1.1, VS 2003 and C# I have an asp.DataGrid control with a Delete button on the end of each row. I am unable to gain access to the event when the button is clicked. I don't fully understand how the click gets connected to the C# code,
0
1271
by: David Veeneman | last post by:
I've run across something that I would like to confirm. Does the VS 2005 Properties window have a couple of bugs displaying events that use generics or nullables? I ran some tests, and I found that the Properties window won't display: 1. Events that use the System.EventHandler<TEventArgs> delegate, if the event args are generic (such as MyEventArgs<T>). The first event below will appear in the Properties window; the second will not: ...
0
8057
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
7998
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
8491
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8470
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
8142
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
8329
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6010
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4022
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2472
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.