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
ADVERTISEMENT
Apr 14, 2009
how to retrieve microsoft access filenames from a particular folder on my computer? Within my project the user can create a database, and i want to be able to display all of these databases in a combo box?
View 8 Replies
Jan 23, 2012
I have application with 2 forms (Form1, Form2), when i click in a button in form1, form2 open.when form2 opened & I switch to other window and try to switch back to my application (By clicking in its icon in taskbar), it switch to form1.I need when form2 open & click in taskbar, it switch to form2 & also when form2 open I can't edit or type anything in form1.Exactly the same as the below scenario in windows:when I open any new window from "Windows Properties" (Right click my computer), and switch back to windows properties, it will switch to the new window not to the main Windows properties window
View 2 Replies
Apr 10, 2011
I am working on a game launcher, and I need to display a "Splash screen" until the main game has started. For this, I need to know whether or not the Process has a Main window that is fully loaded and displayed.Now I noticed the main window handle is 0 when there is none, so I tried to use that:[code]But the handle never becomes nonzero. I tried to use the title but to no avail.I do not want to go into "Thread.wait()" since then the splash would remain even if the game is already launched.
View 4 Replies
Apr 4, 2011
I'm trying to get a process (wmplayer) started with a maximised main window. I've tried:
Dim VidPROC As System.Diagnostics.Process
Dim startInfo As New ProcessStartInfo("wmplayer", "C:MyVideo.mpg")
startInfo.WindowStyle = ProcessWindowStyle.Maximized
VidPROC = Process.Start(startInfo)
but the process starts with a standard, small empty mplayer window, NOT maximised. (If I change .Maximised to .Hidden it starts hidden, but seems to ignore it when set to .Maximised).
View 1 Replies
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
Feb 21, 2011
I have a program that starts another program after setting the regkeys basically the program continually syncs the calandar of outlook and another application.I set the regkeys than launch the c:sync.exe app. I have tried a simple process.start and launching the process as a thread and they both do the same thing: The other process starts and works as it should but my main program goes "White screen" or "not responding" until the process.start has exited.
I want the process.start to run in the background so if users click in my main app it responds and truly that they can access the context menu of my main app from the taskbar while the process.start is running.
View 5 Replies
Feb 9, 2012
I have a VB.NET application that uses Managed DirectSound to capture audio.Everything works just fine until (a) the application is minimized or (b) the application is completey obstructed (covered) by another window.
The thing is that the CaptureBufferDescription structure does not include a GlobalFocus property so I don't know what to do to let my application continue capturing when the main window is hidden.
Here's the basic initialization code I'm using:
' Create a buffer description object
bufCapDesc = New CaptureBufferDescription()
With bufCapDesc
[code]....
View 8 Replies
Oct 12, 2010
I have create a project with one main form window and also i have to use a number of other forms as well. now i want to open these other forms inside the main window and not outside. I'm using Visual Studio .NET 2010 as developing environment.
View 1 Replies
Apr 26, 2012
[code]I want to make the Properties Window to update the properties for X and Y at each MouseMove, so they become immediately visible for the user.
View 2 Replies
Aug 19, 2009
Is there a way to expose a UserControl's properties to the Properties Window in the Designer?
View 3 Replies
Jun 25, 2011
Why use simple properties instead of fields in C#?
If I have a class, does it matter if I use a Variable instead of a Property? I mean, unless I need something to run during the get/set time period, does it really matter?
View 1 Replies
Jun 10, 2011
I have a main form, a separate plugin interface dll and another separate dll. Now this is my problem:I'd like to access the properties of the controls of the main form for manipulation in the other dll.
Example:
MainForm
Plugins.dll
Data.dll
Main form have label control I define properties in the interface Plugins.dll from Data.dll I load Plugins to read the label control from the mainform.The question is how can I do that?
View 2 Replies
May 12, 2012
I'm having trouble with collections and how it works, what I have so far is classes and I have attempted to do collection but it is not working properly. I am trying to have the collection hold the classPerson,classCustomer, and classPreferredCustomer properties, and then display it to list and labels in the Main form. [Code]
View 7 Replies
Aug 15, 2010
I have a simple WPF vb.net application and wish to set the visibility property of some buttons on the main window to True when user successfully logs on
I have a MainWindow window with a frame hosting any number of pages and use the navigation service to load into this frame eg. Me.BodyFrame.Navigate(New System.Uri("Logon.xaml", UriKind.Relative)) One Page (logon) enables user to logon.
vb.net code:
Dim txtLocalLogonID = txtLogonID.Text
Dim pwdLocalPassword = pwdPassword.Password
Dim LocalLogon As New gblLogon()
[Code]....
How do I reload the main window? I realise the code is primitive but I just want to get it working first.
View 1 Replies
May 3, 2011
I have a vb application(1) which is made to launch another software(2) with specified parameters, but i wanna keep my application opened as long as the 2nd one is opened too, and I also want to close the second one automatically if mine has been force closed by the user in windows taskmanager, on the desktop, or in any way.
So I need something which detects if windows is closing the program and kill the second application auto.
I would like to avoid the task manager block, because that isn't necessary for this i guess.
View 7 Replies
Apr 16, 2012
I have a VB.NET project (main.exe) and include an additional .exe application as internal resource. Now I do not want to run the extra .exe as a separate process but want to attach it to the process of main.exe so I have just 1 process overall and not 2.
View 1 Replies
Apr 14, 2010
due to problems with OpenFileDialog and ClipBoard I have inserted a main subroutine in my WinForms app like this:
[Code]...
View 6 Replies
Sep 6, 2011
I created a modal dialog as a WPF window that changes some settings in the main window application. How can I refer to a member of the main window?
View 2 Replies
Nov 9, 2009
i need to know how too make a dialog stay attached to the side off another window.
View 6 Replies
Feb 18, 2010
What I need to do is Set my new form to be the top most form of only my application while still having click access to the main form. Right now I have tried the property Topmost = True but the thing about that I really do not like is it puts the form above every single windows form. I only want the form to be the topmost of my application. The showdialog also will not work because I no longer have access to my main form with click events.
View 4 Replies
Feb 10, 2012
I have two applications. For performing certain functions, i run a second exe, via a process, and wait till it is complete (exited) to continue with my main application. I run through many repetitive functions on different files.Everything runs fine however, when i am doing a run and it is on the x loop number, the main application seems to halt the secondary process exe. I can only assume this is what is happening as, if i close/stop (not pause) my main application in VB, the second exe continues from where it was halted until it completes.
View 4 Replies
Apr 7, 2010
Trying to replicate the docking controls in Visual Studio 2008. My application replays the RADAR environment for the FAA and I want the ability for dual monitor users to drag the control panels to the other monotor to leave the main canvas clear. This functionality is similar to the way the different panels in VS can be dragged outside of the main window.
View 1 Replies
Nov 17, 2009
I would like to simulate the letter f to the main foreground window ,
View 1 Replies
Jan 6, 2011
Hwnd = WindowFromPoint(Cursor.Position) I can get the Hwnd of every control of an external window is under the cursor. Question: I need only and always the MAIN WINDOW hwnd, everywhere should be the cursor. what API I need?
View 3 Replies
Nov 26, 2009
So I know how to get a form inside a form.. I've got
Dim ch As New Settings
ch.TopLevel = False
ch.Visible = True
Me.Controls.Add(ch)
in my form_load.. The trouble is the window appears under all the controls on my main form.
1. How can I make it appear above the controls?
2. How can I make the form center in my main form?
View 1 Replies
Feb 23, 2011
I have an MDI form as the app start object.I don't think is related, but in the Form closing event, I check for some condition, and if it's true, I ask for confirmation before closing:
Private Sub FormBackground_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
If (e.CloseReason = CloseReason.UserClosing) Then[code].....
So long, everything works fine in my development machine, which runs windows XP.However, when deploying the application in a windows 7 machine, the message box works correctly, showing itself whenever it should, but after the form is closed the application keeps running in the background. This happens whether the form closes directly or asks the user first.I have fixed it putting an End instruction in the FormBackground.FormClosed event, but it doesn't feel good.
View 4 Replies
Jul 26, 2010
the code i have that interacts with e.graphics is
'clear area
e.Graphics.FillRectangle(Brushes.Black, 0, 0, 600, 800)
'draw sand
[code]....
here are the variable areas of my two classes, along with their new functions; assume that the get lines do what you think they do.
Public Class Sand
Private x As Integer
Private y As Integer
[code]....
View 1 Replies
Feb 15, 2012
I am having a difficulty in this login form that I have made. The same as the premade template login in VB 2008 which I am using right now.Here's what happens when I run the program Log in form open > Log in successful > Main window appears *The login form still does not disappear.
I tried hiding it via me.hide() Log in form open > log in successful > Main window appears > log in form disappear.*Now the problem is that I cant close the whole application because the login form is still there only hidden. Again I tried putting in the "EXIT" button the code me.close() login.close()Log in form open > log in successful > Main window appears > log in form disappears > Exit application *Now everything seems to be ok now and then I found another problem.Instead of clicking the exit button I tried clicking the X button on the main window. There I found out that it only closes the main window. Therefore not closing the whole application because the login form is still hidden.
View 2 Replies
Aug 17, 2011
i made an application in VB2010 where the application should be always on top above one specific window. Anyway i set the property of the main form to "topmost = true". The application is also writing some data to excel which is not a problem but the excel workbook is behind the main form which is on top. Is there any way to put the excel window on top above the main form?
View 1 Replies