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

GetObject from Process reference?

Hi all

I am trying to trap when a user opens Excel/Word, and
attach to the events of that process.

I can use the Process class to get all processes, but I
can't see a link to an object that can trap events, like
GetObject. GetObject requires a class reference (what if
there are two open?) or a filename (how to get the
filename?)

My alternative is to use the API to enumerate open
process types, but I can't see how this gets me to an
object with events, either.

TIA

Dermot
Nov 20 '05 #1
0 1209

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

Similar topics

5
by: Andrei | last post by:
Hello, I posted yesterday the same problem, but now I want to be more specific about it. My intention is to create a windows service to process some Word documents. If I use CreateObject to...
0
by: AP | last post by:
Hello, I am trying to create an object and then use the getObject() method to set my VB object to a running instance of the object within a window in a windows program that is currently running....
3
by: Otie | last post by:
I found the following under the GetObject help notes and in the example for GetObject: "This example uses the GetObject function to get a reference to a specific Microsoft Excel worksheet...
17
by: ad | last post by:
We can use GetObject to load the instance of COM form file like: Dim CADObject As Object CADObject = GetObject("C:\CAD\SCHEMA.CAD") How can we implement the two statements above in CSharp?
1
by: Franck | last post by:
Hi, It's a bit tricky I'm launching an Excel process with a RunAs like function, in order not to launch it with ASPNET account but another one. I'm not (and I can't be) using...
0
by: AP | last post by:
Hello, I am trying to create an object and then use the getObject() method to set my VB object to a running instance of the object within a window in a windows program that is currently running....
5
by: newscorrespondent | last post by:
This method does not fail if the site is not running! Is there a way to check the proxy for failure? Thanks Tom
6
by: active | last post by:
This works with Strict Off But not with Strict On Sometimes I can figure out what is needed by running it and using QuickWatch to see the type required but GetObject("winmgmts:\\" &...
1
by: Tobias Maier | last post by:
Hi I can't find a sample or sample project for implementing the GetObject support for a c# project with ComVisible=true thank you for your help tobias
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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...

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.