VB - Process Hook - Programme Only Works In My Documents

Jun 6, 2010

Recently i created a programme , making it work only in a certain process.

e.g: my programme only works in My Documents. something like that ?

View 6 Replies


ADVERTISEMENT

Hook For Process Start?

Feb 10, 2010

Is there any way I can install a global hook or something else on the start of external process. WH_CBT hook, as it appears can only intercept events for processes that have windows, but what if I want to intercept the start/stop of a windowless application or a windows service? Is there any way to do it using .NET?Generally, I want my application to receive a notification of some process being launched knowing only an executable name.Presently I simply use a timer to iterate through running processes, but I wonder if there a better way to do it?

View 4 Replies

Starting Multiple Documents In The Same Process

Apr 2, 2009

I am writing an application which needs to allow the user to select and open document files as a new process, edit them, then when they've finished backup the changed files automatically. For example, start a .doc file within Word or a .xls file with Excel What I wanted to do was use process.start to run the application and store the ProcessID returned in an array so that when the process finished, I could check all the files that were using that application for changes.

[Code]...

View 3 Replies

Run As Other User Using Process.start Works On XP, Not On 7?

Oct 6, 2010

I use following code to run process as other user [with admin privileges]

[Code]...

View 3 Replies

VS 2010 - How Does The API Functions Read / Write Process Works

Jul 18, 2010

need to know exactly how does the API functions Read/Whrite Process works. I'm so confused while working. I know that I have to work using something like sectors. But I don't know how. Can someone give me an example. I dont know hoe to do it. for an example, for you to give me. Create a basic programa with a button and a textbox the button searchs what is in the textbox in a process memory. Search the title of a program for example.

View 2 Replies

Hook Excel - The Process Excel.exe Doesn't Finish After Close Excel

Jul 20, 2010

I need to access the current instance of MS Excel. To do that, I wrote the following code:

Imports Excel = Microsoft.Office.Interop.Excel
Imports System.Diagnostics
Private _ExcelApp As Excel.Application

[Code].....

The code runs nice, but it has a problem: After the user close the Excel application (click button X - note: no other instance of Excel exists), if you open the Windows's task manager, its possible to see the process Excel.exe.

If I open and close the Excel application, there is no process Excel.exe, but if I run my code with the Excel application openned, after the user close the Excel application, the process Excel.exe isn't finished.

View 2 Replies

.net - Out Of Process COM Server Works Fine In The Unit Test Harness But Not In The Real Service?

Jun 1, 2011

We have a WCF service hosted in IIS that currently calls a VB6 DLL to do part of its job. This works fine, but we can't deploy the service to a 64-bit target environment without configuring IIS to run it in a 32-bit worker process.I am currently investigating ways around that restriction. Porting the VB6 DLL to .NET is not possible for various reasons, so I created an ActiveX EXE wrapper around the DLL in VB6, so that the service can run in 64-bit and the VB6 parts in 32-bit.

When I tested the service I got this error:

Type: System.UnauthorizedAccessException
Message: Retrieving the COM class factory for component with CLSID {9AE7303B-D159-43F6-B1A5-52D297581820} failed due to the following error: 80070005.

After some Googling I found that this is due to either:

Calling an MS Office component
DCOM permissions not being configured
NTFS file permissions not allowing read/exec access to the IIS worker process identity (ASPNET in my environment)

Of these:

Definitely not applicable Also not applicable; I am not hosting the EXE in DCOM or COM+, just a simple COM out-of-process activation
This looks likely; however, I checked the permissions, and NTFS reports that the Users group (which ASPNET is a member of) does indeed have read/exec access to the file I tried calling the EXE from a unit test fixture, which is executed in my admin-level account rather than the IIS worker process account, and it worked fine, so the error is definitely something to do with permissions. I'm not sure what to do next.

UPDATE:The IIS virtual directory is configured for Anonymous+Windows access; the WCF service uses only Anonymous authentication, the Windows authentication is for the VS debugger. Task Manager reports that the aspnet_wp.exe process is definitely running in the ASPNET account.I explicitly granted Read and Execute access to the ASPNET and IUSR_<machine> accounts on all the COM exes and dlls involved. This made no difference.

I explicitly granted Local Launch and Local Activation access to the ASPNET and IUSR_<machine> accounts on the relevant interfaces in the DCOM configuration. This made no difference either.Keep trying to get this working somehow.Go the whole hog and host the EXE in COM+.Give up. Tell users that the WCF service must be configured to run in a 32-bit app pool on 64-bit Windows.

View 1 Replies

Get The Page Documents Counts For Documents Stored As Tif Files

Feb 2, 2010

I've been asked to get the page counts for documents stored as tif files. What I have now is looping through our third party software to open them and then get the page count. I can't stop the image from flashing and it is very slow. Does anyone know of a way to loop through them quickly and can the page counts (one image can have many documents)?

View 5 Replies

VS 2005 Windows Services - Process Is Listed As A SYSTEM Process Rather Than A Process Under User Name

Jun 4, 2009

I have written a windows service that is meant to launch a notepad when a specific action happens. The problem i have is that even though the service launches notepad, the actual notepad it self is NOT visible. I know that it has been launced because i can see the process in the task manager. By the way the process is listed as a SYSTEM process rather than a process under my user name (i believe that is because my process is a "LocalSystem" one).

View 4 Replies

Add A Folder When Installing Programme

Nov 6, 2009

When I test run my programme (F5) it automatically saves files in a folder that is within the test project.I'd like to create a folder that is created when the programme is first installed (My Documents or in within the programme folder). How do I do this? I also want to give it a specific name instead of a name being given to it automatically. I know how to create a folder and save files in it during the test runs when I press F5 (If directory.exists etc etc etc) but that is during the runtime - how do I make a folder already available that is created during installtion.

View 6 Replies

Develop A Pc Tune Up Programme?

Dec 9, 2011

can we develop a pc tune up programme in visual basic 2010

View 2 Replies

Programme Delete Itself On Program

Sep 14, 2011

Someone said use "createfile" flag etc. but i can't do that:( }

View 19 Replies

Run And Use A Programme As Part Of Application

Feb 3, 2012

I'd like to be able to run and use a programme as part of my application. I have a sound editing application and rather than have several different windows, I'd like to be able to show this editing program in a panel of my own VB application. I'd also like to be able to close it and reopen it.

View 3 Replies

Set Programme To Use The Internet For Like A Messenger?

Oct 4, 2009

how do i set my programe to use the internet for like a messenger?

View 2 Replies

VS 2008 Decapitalize Programme?

Mar 28, 2010

i don't know if i posted this in the right section but ok.ant to make a programme. Its like from capitals to normal letters. its a kind of decapitalization programmeI have a website and some people post their message with capitals. Sometimes those are very long messages and i don't wanna type it all over

View 13 Replies

Create A Safe Type Programme

Mar 3, 2010

im trying to create a safe type programme on visual basic, which has a set combination button which when first clicked opens up a box to allow a password to be entered, once entered the safe is locked until you enter the password and push a button to try the key,

View 1 Replies

Pop-up Automatic Msgbox At Programme Start-up

Apr 18, 2010

#1-how can i make a automatic start-up msgbox?it is just like when we run microsoft Word; which will display a message box (stated: product from microsoft, licensed to and others) #2-how to make new line in msgbox?as i have some information to write on the msgbox and i need to insert each information in new line in msgbox.

View 5 Replies

Vista Animated Pictures On Programme?

Jan 23, 2010

I've just finished the coding for latest programme I'm making for a buses company, now the coding is fine. But the actual design of the forms is quiet tacky and amateur looking.The object here is to try and make my application look as professional as possible, I've noticed that on Vista, whenever you let's say transfer a file or load up something, they always have that really cool graphic right at the top of something moving, or something really cool happening.

I heard that there's a pack somewhere that you can download of vista designs for loading, file transfer etc, but I don't actually know where to find it.Does anybody here know?, or how they work?, or that just animated GIF files, or are they actually coded into the forms?

View 1 Replies

Webbrowser - How To Programme The Right Click Of The Mouse

Jul 12, 2011

I have been doing a webbrowser for a few days and i had come to some problems i can't solve... First: how can i programme the right click of the mouse, like when the user clicks a link the option open in new tab works and it doesn't open IE. Second: I had a favourite system that when the user saves the page the items in a combobox are saved in a txt file. But the problem is that the file saves just this "System.Windows.Forms.ComboBox+ObjectCollection " and not the link of the saved page...

View 4 Replies

Write A Programme For A List Box Having 10 Items?

Dec 6, 2011

how to write a programme for a list box having 10 items in that just by a single click on one of the item it should be written on the button

if a list is containing notepad than by clicking on the button it should open the notepad

View 3 Replies

Link From Button - When Sheet1 Is Selected, It Works, But When Sheet2 Is Selected, Not Works

Jan 5, 2012

I have a spreadsheet with this code:

'insert link
sheet1.Hyperlinks.Add(sheet1.Range("P1"), "http://http://www.vbforums.com", "")
the code of the button (ribbon)

[CODE]...

When I press the button, it connects to the web site. when the sheet1 is selected, it works, but when the sheet2 is selected, not works, why? the path is sheet1,What's wrong?

View 2 Replies

Publish Codes So That Programme Could Run On All Computers Without Having VB Installed In All Of Them?

Nov 17, 2008

I've just finished my programme, and would liek to publish it for beneficial use . But when I publish the code, only my own computer (which has Visual Basics Express 2008 Edition installed) could use the published executable file. All the other computers comes up with a warning saying a .NET environment is required.

How could I publish the codes so that the programme could run on all (or most) computers without having VB installed in all of them?

View 3 Replies

Send/receive Messages Via RS232 From Programme?

Jul 14, 2010

how to send/receive messages via RS232 from my programme. I have a USB-serial adaptor

Can anyone recommend any places to look? Is this something that you would expect would be fairly easy to do for someone with a few months of coding practice?

View 2 Replies

Steps To Use In Writing A Human Resource Programme

Apr 4, 2011

I want to write a human resource programme that can accept employee records and compute for their salaries and overtime and also print out the needed salary slips and reports.

View 1 Replies

Use Barcode In A Window Form For A Invoice Programme?

May 10, 2011

how to use barcode in a window form for a invoice programme

View 1 Replies

FindWindow - Increase The Number Of Vendors To 10, The Programme Failed?

May 13, 2011

I am using VB Express 2008, on Windows XP Pro. I have written a programme which tests another programme which compares prices and terms from several vendors. This Bid Tabulation programme, compares prices and terms of up to 10 Bidders and 500 line items in mixed currencies.The testing programme, initially, would not work and I discovered that I needed to introduce a delay in order for it to run the Bid Tabulation programme. So my initial code, using the delay, was:

[code]...

And the button was clicked, and the Bid Tabulation programme started and ran successfully, as long as the number of vendors was 5 and the number of line items was 5. when I tried to increase the number of vendors to 10, the programme failed.I then discovered that at the point of failure, when the particular ParentHWND=0, if I introduced:

[code]...

Does anyone know what I am doing wrong, or whether there is another way to assure that ParentHWND will not equal zero without using a time delay?

View 5 Replies

FindWindowEx - Write A Programme That Will Enter A Lot Of Information Into Another Program?

Jan 15, 2011

I am using MS Windows XP, and Visual Basic Express 2008 and I am trying to write a programme that will enter a lot of information into another programme that I have written for testing purposes. The programme that I am writing to has up to 500 line items, by 10 possible suppliers; as you can imagine testing this every time is too labour intensive.[code].....

This code correctly takes me through the various forms until it reaches the Input General Information Form, which opens with the top TextBox in focus. However the entry, "Escravos Gas to Liquids", is placed in the last TextBox.How do I make it enter in the first TextBox, which is in focus? From that point on how do I cycle through the remaining 10 TexBoxes to make each entry?

View 6 Replies

Get Default Icons For .app .exe .file Etc For A Treeview In A Browser-like Programme

Jan 12, 2012

I have been trying to find code that will enable me to get default icons for a treeview in a computer browser programme. like the WINDOWS browser(Not the internet one but the "Windows Explorer" one) but i can't get icons that are allready there

View 4 Replies

Programme A Carbon Emission Calculator With Proxy Data?

Mar 31, 2012

I am doing a Management Science project at Uni. I have to programme a carbon emission calculator using proxy values and some input variables.

Basically, 4 inputs: seize of ship in container capacity (categorized in 9 classes), distance, Fuel type used (2 types), speed (if known).

How can I match the input variables with the proxy data values? Lets say someone inputs 2300 as container ship seize, the programme needs to know which proxy value to use from all the different seize categories (as it could have been 5300 or 7450). A certain ship seize class has a number of proxies (atributes). For example power installed, design speed, av. container capacity. (Classes are ranges, i.e. from 1000 to 2000 containers = class 1, 2001-3000 = class 2 etc.)

The same principle applies with the other input variables except for distance. Speed only should be considered if it is known, otherwise the programme has to use proxy data as well.

In short, it is a calculator which, depending on some input variables, estimates carbon emissions based on proxy data. The problem I have: How do I let the programme know, if a certain ship category/speed is selected (inputted), which proxies the programme has to use. The rest is just a matter of adding/subtracting/multiplying/dividing the proxies and the input data to calculate the emissions.

View 2 Replies

Write A Programme Where A User Can Type In A 'string' Into A Textbox?

Feb 6, 2012

I am attempting to write a programme where a user can type in a 'string' into a textbox. A data dictionary will contain specific keywords relating to a specific classification, where an algorithm can detect whether any of the keywords occur in the 'string'. Here are the processes that need to occur:

1) A data dictionary, that contains keywords relating to specific classes eg. (IT Issues, Printer, Software, Password).

2) An algorithm needs to compare the words in the Data Dictionary to that of the 'string' to detect any matches.

3) A rule set to determine what classification the 'string' needs to be classed as.

View 8 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved