VS 2005 How To Draw On Another Process Window

Sep 3, 2009

i am trying to write a code who find a window and draw line or string on it but nothing found yet,the process can aslo be a game so did it required to use 'Direct3dx' i try something like this but not woking...

[Code]...

View 2 Replies


ADVERTISEMENT

VS 2005 - Process.Start() Browser Session & Specify Window Properties

Apr 3, 2009

I want to launch a browser session from a Windows App to load a specified file using system.diagnostics.process.start("http://www.abc.com/doc1.doc") but I'd also like to specify that there shouldn't be a toolbar etc. on the browser window. Is this possible?

View 6 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

Draw A Zoom Window Rectangle?

May 20, 2010

I have drawn a diagram of lines on a panel using the g.DrawLine command. I want to be able to zoom in to the diagram and define the zoom area by two cursor picks. I get the coordinates of the picks and draw a rectangle using g.DrawRectangle. This works fine but as I move the cursor around, the rectangle becomes solid black (with all the DrawRectangle commands). In VB6 I used a rectangular shape on top of my diagram but you cannot do this in VB2008. I need something like drawing in XOR mode. Somehow as I move the cursor I need to undraw the old rectangle and draw the new rectangle.

View 11 Replies

Draw XNA Window Inside A Panel?

Mar 22, 2010

I'm developing a 3d Viewer in vb.net and xna.I have now a windows form and an xna render window, but I would like to render it inside a panel in the windows form.I have searched for info, but it's so hard to adapt it into my application.

View 1 Replies

[2005] Using Process.MainWindowTitle,Process.MainWindowHandle On Some Older VB6 Applications

Feb 10, 2009

I have an issue using Process.MainWindowTitle,Process.MainWindowHandle on some older VB6 applications. After Process.Start I use Process.MainWindowTitle to display in a listbox. The MainWindowTitle returned is not the Window Title but in fact the Project name of the VB6 exe.? I also store the MainWindowHandle to use the ShowWindow and SetForeGroundWindow API's. It would appear that the ShowWindow API does not work, but the SetForegroundWindow does. ie: if the VB6 app is minimized, showwindow does not restore, if it is NOT minimized setforewgroundwindow sets it to the foreground. The exact same code does work correctly for any other .net exe or notepad, only on these vb6 programs I am having a problem.

View 9 Replies

VS 2005 Setwindowpos For Top Most Window Making Window Size Zero?

Oct 5, 2011

I have the following function that should make the window always on top of other applications.

Private Declare Function SetWindowPos Lib "user32" _
(ByVal handle As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, _
ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long

[Code]....

The problem is that it reduces the window size so that you can only see the title bar and min/max/close buttons. Also, even that does not stay on top of other windows.

I have used this function before on a windows 7 machine (instead of xp which this one is on) and it worked fine.

View 4 Replies

Getting A Window's Process Name?

Oct 23, 2009

How would I get a window's process name? For example, if im using firefox, and im on VBForums, I want my program to look for a window with a name of "VBForums - Visual Basic and VB .NET Discussions and More!" and then get its process name.

View 4 Replies

End The Process When Close The Window?

Nov 30, 2010

i am using a server that remain working when i close the window ,how to stop the process

View 5 Replies

End The Process When Close Window?

Nov 17, 2009

i am using a server that remain working when i close the window how to stop the process

View 4 Replies

Hiding A Process Window In VB?

Mar 27, 2009

I have been working on a program to hide windows for an active process. I found some examples on the internet explaining how to do this. The problem, however, is that after I hide the windows I cannot get them back. The process still shows up in task manager but i cannot restore the window..

Imports System.Runtime.InteropServices
Imports System.Diagnostics
Public Class Form1

[code].....

View 1 Replies

Process And Find A Window?

Jun 17, 2010

what I am trying to do its to automate a user interraction by code.First I have a button named "start" once pushed I navigate with webbrowser to download a file. What I try to do it is to find the window "File download" by his title name, I allready made a seperate thread to loop into to list of process until it found the window "File download"

Where I need help, it is with the process list. I try that code below but I don't see the process "File download" in the list.and once I found it I would like to use sendMessage() api to simulate the click of save.I would like to find another window after to catch the window "save as" and click save and if the window that ask for overwriting appear I would like to find it too and click yes.

Why I use webbrowser instead of httpwebrequest it is because the web site required to login, i try using cookie, etc. No success so I decided to use webbrowser, I navigate first into the login page, I login manually and once it is done I can click the button to start downloading. I want to make an automatic download loop, I have lot of files to download on that site, sometimes .doc and other times it is .pdf

I didn't found a way yet how to force webbrowser to ask for downloading .pdf instead of opening it in acrobat, if someone can help me for that point too

[Code]...

View 4 Replies

Resize Min Window In Outside Process?

Apr 19, 2012

How to resize minwindow in outside process

View 4 Replies

Run Process & Hide Window?

Apr 14, 2009

I have the below code in a function. It is meant to start a process hidden and return the ProcessID. The problem is when RunProcess.Start happens the window is not hidden.

[Code]...

View 2 Replies

SendKeys To Certain Process Or Window

Jul 6, 2009

I am making a key presser for a game and I have it to just spam the keys, but I want it to send the keys to a certain process or window. Here is what I have:

Private Sub Timer8_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer8.Tick
SendKeys.Send(1)
SendKeys.Send(2)
SendKeys.Send(3)
SendKeys.Send(4)
SendKeys.Send(5)
SendKeys.Send(6)
SendKeys.Send(7)
'#7 in box'

That's an example of 1 timer. Is there any way to make it just send the keys to a process I am kinda new to this.
Process.GetProcessesByName("SRO_Client")

View 2 Replies

Showing A Window From A Process?

May 20, 2011

I have 2 desktop programms..I will call them P1 and P2.So, P1 launches P2 as a process. However, at some point I want to be able to show a window in P2. My problem was that this window, when called, was showing correctly placed, in the middle of the screen, but in the back of P1.So, in order to show it as the top most window, above all others applications running on my computer, I used the windows API:

Const HWND_TOPMOST = -1

Const HWND_NOTOPMOST = -2

Const SWP_NOSIZE = &H1[code]...

Now the window shows on top of all other, but it is placed in the top left corner of the screen, resized to much small dimentions, that I cannot even see the controls on it.

View 1 Replies

VS 2008 - Get The Process Name Of The Window?

Oct 31, 2009

For Each MyProc As Process In Process.GetProcesses If MyProc.MainWindowTitle <> "" Then ListBox1.Items.Add(MyProc.MainWindowTitle) Next How can I get the Process name of the Window?

View 3 Replies

VS 2005 Draw On Desktop With GDI

Jun 10, 2010

I've find a way to Draw line, string, shape, and so directly on the Desktop, but shape are also draw over any windows that appear over the Desktop. I wish a could only draw over the WallPaper, and not over the Windows over it.

Private Declare Function GetDesktopWindow Lib "user32" () As IntPtr
Private Declare Function GetWindowDC Lib "user32" (ByVal hwnd As IntPtr) As IntPtr
Private Declare Function ReleaseDC Lib "user32" (ByVal hwnd As IntPtr, ByVal hdc As Integer) As Integer

[Code]....

View 8 Replies

Get Window Title Of A Process Using Program?

Jun 28, 2010

I am looking to go from the process name to the windows title.[code]...

View 1 Replies

Get/Set Properties Of Another Process Main Window?

Mar 18, 2012

I have 3 questions: How to get the process which the main window is active How to change the WindowState of that process main window How to resize the process main window[URl]..

View 9 Replies

Hide A Window Knowing His Process ID?

Jan 10, 2006

How can I hide a window knowing his process ID?

I am writing a program which opens another application with the "shell" command (so it's easy for me to get the procID). Once it is running I want to hide or show it when needed by pressing a button in my program...

View 3 Replies

Manipulate A Window(process) That Have Not Created?

Oct 29, 2010

I have this application that I haven't created and I don't have the source for. But it's really handy in handling and recording the time I've used on different projects. But it has this annoying pop-up that comes up that contains a window and some debug text I believe. It wasn't done by a professional, it was just a hobby project. Everything is working even though this window appear. So I was wondering if it's possible to "hijack" a window and minimizing or closing it somehow?

View 1 Replies

Process Has The Active Foreground Window?

Jan 6, 2010

The user32.dll provides functions to get the process id from a process executable name, and I can also obtain the active or foreground window that the user is working.Can I determine what windows the targeted process has opened? Otherwise, can I find out what details about the process that opened the foreground/active window?

My code needs to run only when another specific process is running and the user is actively using that window, while that window is the top-most window on the desktop.

View 1 Replies

Resize A Window Knowing The Process ID?

Dec 17, 2008

I have an application that while running (it doesn't have to have focus, it can be minimized or another window can have focus) can listen and respond to global hot keys pressed. For instance I have the key combo Ctrl+Shift+0. When this hot key is pressed my app can recognize this and then I can do something.

This "something" that I want to do is:

1. Know what window is currently active and has focus when the hot key was pressed. And...

2. Change the size of said window

I can currently identify what window has focus by the following (the code block is inside the function that fires when the hot key is pressed):

Code:

Private Declare Function GetForegroundWindow Lib "user32.dll" () As IntPtr
Private Declare Function GetWindowThreadProcessId Lib "user32.dll" (ByValhwnd As IntPtr, ByRef lpdwProcessID As Integer) As Integer

[Code]....

I can get the handle to the active window and the process that owns that window.

Having this information, how can I get access to the window itself? Furthermore, get access to it's properties so I can change the size of this thing? I'm not sure If this is the right information to be gathering for what I'm trying to accomplish but it seems that I'm close.

View 1 Replies

Subclassing Window In Other Process (winXP)

Sep 28, 2004

i used an old VB6 algorithm to subclass a window and made a few changes at the 'hook method' to make it work in .NET.

Private Declare Function SetWindowLong Lib "user32.dll" Alias "SetWindowLongA" (ByVal hWnd As Integer, ByVal nIndex As Integer, ByVal dwNewLong As delWindowProc) As Integer

[Code].....

View 2 Replies

Window Title To Process Name / ProcessID

Sep 18, 2009

I have this code, which will get all windows thats open, like explorer.exe do. It will write all the titles to listbox1, like this example.I will then try to do many things, like close, minimize, maximize, and restore like this:[code]but how do I do this with the selected index in my listbox. My code must somehow get the processname, or processID from the Window-name.

View 2 Replies

Store PDF File Into Sql Server 2005 And Display In A Picture Box On VB 2005 Window Form?

Mar 13, 2009

I am using memorystream to get and store images into sqlserver 2005 table image field. This process is working and I am able to display image in picture box. I need to be able to store PDF files into the same field and be able to display in a picture box.

View 2 Replies

Window Service Does Not Start All Process On Window Start?

Aug 1, 2011

We create a window service that will launch multiple process of an application with different configuration. And application further communicate with sql server. It works fine when we start service manually from service manager. It launch all the process ( try with launching 3 process ). But when we test it by restart the machine and service launch automatically then it launch only one process third one. I check the event log in event viewer. I see the following message by MSSQL$MSSQLEXPRESS service

Login failed for user 'dduser'. Reason: Failed to open the explicitly specified database. [CLIENT: <local machine>]

one thing we also tried by delaying ( with thread sleep ) the code execution of service. Then by starting machine again , it launch 2 process , first one still not launch.

View 3 Replies

VS 2005 How To Draw Circle And Cylinder

Aug 16, 2011

i want to draw picture of circle and cylinder in my programme, i am using visual studio 2005 programme anyone able the give me guide.

View 3 Replies

Activate Frontmost Window Of Parent Process?

Feb 10, 2010

I haven't programmed in Visual Basic before. I downloaded the 2008 Visual Basic and I'm trying to write something that activates the frontmost window of the parent process. I realize that there's a few steps... find the parent process, get its first window (z-axis wise), then raise that window even though it currently isn't the active program.

I've found some example code on the net, but none of it compiles, even code I found at Microsoft. I'm guessing that it's all an older syntax that's no longer supported. [code]...

View 2 Replies







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