Changing State Of External Window

Nov 2, 2010

I am trying to make a window manager and I am wanting to know how to change states (SW_HIDE, SW_SHOW) of an external window such as a firefox browser or explorer window.

View 1 Replies


ADVERTISEMENT

Make A Window Not Associated With The Application Minimize Or Maximize Its Window State In Vb?

Dec 12, 2011

If you have ever noticed in the Task Manager, when you right-click on the running task, you have many options which include 'Minimize' and 'Maximize'. Is there anyway to do achieve this in vb?

View 1 Replies

Forms :: Changing State Of Label Depending Upon Two Checkboxs?

Aug 7, 2010

I have added two checkbox controls chkBox1 and chkBox2. What I want to do is that when both the chkbox are same meaning checked or unchecked the label should be On and if both are not same label should be Off.

[Code]....

View 17 Replies

Check If Window State Is Maximized?

Mar 18, 2012

How to check weather the window is currently maximized or restored. I want to do something like if window state maximized then border none and if window state regular, then form border style sizable. This is what I wrote

[code]...

View 1 Replies

Save Window State To Config?

Apr 20, 2009

Is there any way to save a form window state including all of the controls etc that it has on it in their current state? I'm having to write long functions for each control just to save and reload from a config file, so I'm spending more time on user saved settings than on my actual project.

View 3 Replies

Expect Some Dialog Window To Appear In A Non-modal State?

Apr 19, 2009

If I type this code (VB.net 2003):

Dim myDialog As frmTestDialog
myDialog = New frmTestDialog
myDialog.Show()

you'd expect some dialog window to appear in a non-modal state. For some reason, this isn't the case with a program I am working on. Most of the dialogs use ShowDialog() to open them, and one uses Show(). The second I try to show another non-modal dialog, the dialog appears in a modal state. Another strange thing is, before I show the dialog, there is code to shift the dialog location to centre it on the main form - this isn't executed either: the dialog appears at 0,0.

My usual trend is to blame myself for errors (usually the case), then I blame the software; I have checked every single line of code (including the generated code), and it all checks out - the dialog should be non-modal. But ... it's not. I've come across other errors in VB.net 2003; is this another instance?


I'll try creating a new dialog and displaying this non-modal, and see what happens. If it works, I can just transplant the code but this shouldn't be happening, just like if I go to a shop, ask for a cola, I expect a cola not a Chinese panda; more annoying, I return the panda, ask for a cola, and they give me the panda back do loop until I give up The system does using threading, but none of that code connects to the display dialog routines all dialogs are opened with more-or-less the above code (a few have simple validation routines).

View 5 Replies

IDE :: Window State Resizes When Loading Form?

Jun 15, 2010

When loading the form then my windows state is maximized (properties--windows state--maximized). After loading the form then if I press taskbar menu top(maximise button is disabled and minimize button is disabled on form) then size of form is changing. I have used screen.width,and height to restore when form resizes but still for the first time of form loading it moves and set to the boundaries. Atleast once also it should not move. How to stop changing the windows state from moving when we click task bar. Again in form properties -- application -- I have checked -- make single instance application. When if again any other path same form is opened. Then also it resizes to other state.

View 2 Replies

Setting MDIChildren Window State To Maximize?

Jan 3, 2010

I want to maximize my mdi child automatically by setting WindowState to Maximize. But it looks like this.. why is this happening? but if I restore it and maximize it again its body now occupies the mdiparent space. To aim is not enough. You must hit.

View 2 Replies

Window State - Form1 Always Stay Maximized

Apr 20, 2009

I'm having a lot of trouble with the windows in my application to size correctly. As a sample, I have a container form (mdi parent), with in which is Form1 (with a datagrid) and a form that is only called when a cell in the datagrid is double clicked. I want Form1 to always be maximized so I set the properties as follows:

Windowstate = Maximized
FormBorderStyle = None
AutoSize = False
MaximizeBox = False
MinimizeBox = False

So when I maximize the parent window, Form1 maximizes and shrinks correctly... but when I double click on the gridview and the popup form comes up, several things happen:
1. Form1 (in the background) goes back to normal size (not maximized)
2. If I click on Form1 (when the Popup form is on the screen) the form disappears into the background...
What I need to happen is for Form1 to always stay maximized, no matter what happens on the screen, and when the pop up form is on the screen, I should not be able to click on any form in the background, and it should never disappear into the background itself.

View 3 Replies

Restoring A Window's Previous Location / State, It Draws Twice?

Jul 7, 2009

recommend the cleanest way to save / restore a winform's location and state? For some time now I've been using a method similiar to what I posted below (based on the CodeProject: [URL]..The problem with this method is that when the form loads, it is drawn in an initial location, then moved / maximized afterwards. The effect creates somewhat of an eye sore watching the window draw, then quickly update... but in Vista it is a lot more obvious.

What I would like to do is restore a form to it's previously saved location / state invisible to the user, then show it once it's where it needs to be. Or, just know of the ideal way this is supposed to be done - specifically in Vista.

[Code]...

View 4 Replies

Button In Toolstrip Checked / Unchecked Depending On Window State

Jun 3, 2011

I have a Main form, called Main.vb, that is a Parent Form. I have another form called Notes.vb. Inside Main.vb I have a toolstrip with a button on it called Notes. I'm wanting to change the checked status of the Button to either True when the Notes.vb window is open inside the parent or to false when it is close. Is this possible?

View 6 Replies

Splash Screen Not Seen When StartUp Form Window State Set To Maximized?

Apr 29, 2011

I have my start up form in maximized window state, but this cause the splash screen appear behind the startup form, which cause it cannot be seen.Even i have set the time longer to display the splash screen.It still do now work. I have tried below code in the start up form but it is not working...

Private Sub Main_Shown(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Shown
Me.WindowState = FormWindowState.Maximized
End Sub

View 2 Replies

External Application Window Position?

Aug 5, 2010

how can I make start my external application "DXSETUP.exe" at center screen position using this code?

Private Sub Panel3_MouseClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Panel3.MouseClick
Try
Me.Hide()
Threading.Thread.Sleep(2000)

[code]....

View 3 Replies

VS 2008 : Open External .exe In Same Window?

Jun 28, 2009

1. Open external .exe in same window as application

2. Embedd a .exe in a VB application.

The .exe was not made in VB.

View 1 Replies

Createwindowex To Create A Button On An External Window

May 3, 2009

I'm using createwindowex to create a button on an external window. I can use Spy++ to see all of the messages the button is sending to the parent window. The problem I'm having is catching these messages from the parent window.I've been trying a lot of different methods, and just when I think one is working, something still isn't quite right. Right now, I am using a hook dll made with c#, and it seems to be working somewhat. It seems like it is a lot more than should be needed for what I'm doing.I originally thought I could just use wndproc to catch all of the messages, but I found that it doesn't catch external windows messages(unless i'm doing something wrong).Is there anyone that can point me in the right direction to create a button on an external window, then catch the messages when it is clicked.

View 2 Replies

Get External Window Size Position Focus?

May 5, 2009

I need to program an application which acts like a passwordfiller.

Describtion: When i open up internet explorer a popup comes up requesting my username and password and i need a way to set my application near the popup and fill it in.

Here is what i need:

- Get Window hwnd (using find window api) *Ok
- Get Window state *Ok
- Get window Position *Help
- Get Window Length and Width *Help
- Focus on the window *Help
- Sendkeys *Ok

View 6 Replies

Programmatically Maximize An External Application's Window?

Sep 4, 2009

I have an application right now that starts a process, then opens a file associated with that process (system.diagnostics.process.start("WM.exe")), however, the way they save, there is a window within a window. It's like in photoshop cs3 when you have many windows within the big window of the application. Right now I use an api call to findwindow which is the application itself, but within that I need to find the subwindow, of which I know the apptitle, and then I need to set its windowstate to maximized. Does anyone know how this can be done? I think there's a way to hook a handle, but how does one also maximize?

View 1 Replies

VS 2008 Allow Window Resizing, External Process?

Jun 6, 2010

how can i allow resizing of window that doesnt allow resizing,.

View 2 Replies

VS 2008 Change External Window Position

Jun 24, 2009

as title says.... ive been searching it for a long time and i couldnt find it

View 1 Replies

VS 2010 Hiding Window Of External Process?

Jan 7, 2012

So i want to start an application with my vb.net app and it should start as a hidden process, meaning no window and nothing in the task bar, only in the task manager ofcourse.

This is what i do

Dim fov As New Process
If CheckBox2.Checked = True Then
RichTextBox1.Text = RichTextBox1.Text & vbCrLf & "* - Launching"
fov.StartInfo.FileName = ("test.exe")

[Code]...

This does not work.. I have also tried the "fov.StartInfo.CreateNoWindow = True" command which does not work either. I can live with a solution that would start the window minimized instead of totally hidden.

View 9 Replies

[vb2008] Enumerate Controls On External Window?

Dec 29, 2010

if I use Spy++ and pass it Finder over the controls of every desktop window I can see the Handle of each of these controls.

what Api / procedure is used to make this job?

View 3 Replies

Make The Form 'full Screen' (border Style Done And Maximized Window State)?

Dec 17, 2011

I am using VB Express Edition 2010, and I want a button, when clicked, to make the form 'full screen' (border style done and maximised window state) and once clicked again, to return the form to maximised but with a fixed single border style. Here is my

[Code]...

View 4 Replies

Api Call - Moving And Resize External Window From Application

Jun 5, 2009

I had been looking for a way to move and resize an external window from my application and I came across this method: [Code] now this does not work, after looking around I many threads about how api calls in .net are different.

View 6 Replies

Hooking External Program's Window Title Change?

Nov 30, 2009

Im making an application that is keeping an eye on an external application that does not have an API. I'm interested in getting notified when the external application changes its main window title. My idea is to somehow register a hook that will notify my application.

View 2 Replies

Press Button Of An External Not Foreground / Minimized Window?

Dec 28, 2010

Known the external window size, it Hwnd and the x/y coordinates of the button to press, I am trying this code, like seen on the web[code]\...

View 4 Replies

Retrieve HTML Of External Javascript Popup Window?

Aug 13, 2011

I was offered this interesting scenario by a visitor of my site and have been trying a few approaches, but not seeming to get it quite right. I have a Form with a WebBrowser control (or an AxWebBrowser if that works too) and on the page loaded in the browser, is a link that uses javascript to open a new popup window.This popup window I am unable to take "ownership" of and it launches in a new instance of the user's default browser (IE for this scenario). I need to then interact with that javascript popup window which now is not part of my application. If I needed to set a value of an input box on that form, how would I accomplish that if I can't "interact" with the form?

View 1 Replies

Send Username And Password To External Popup Window

Jun 2, 2010

I have an interesting issue, I'm trying to automate a data retrieval process.Currently the user goes out to a secure web site and inputs his/her username and password and then selects the ok button, they then proceed to the location where the data is located at and do a copy and paste. I have thought about using the SendKey method from VBA but everything I see says it's not reliable.I believe I have the section after the sending of the login/password completed. For the life of me I can't figure out how to automatically input the username and password and then select the "OK" button. Before anyone asks, no can't view the source code so I can't get the ID field, there is no way for me to view the source code at all I have tried multiple different options all with no luck.

View 3 Replies

Vb Calling Vbs Script Need To Stop External Cmd Window Showing?

Feb 21, 2012

How can i stop it from showing external cmd window.this is my code

HTML
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim mac As New Process

[code]....

it calls a vbs script i wrote which was converted to 1.exe file.when i press the button it calls it and send keysin external window i don't want this external cmd window to show was trying to get this command to work with fail?

.UseShellExecute = False

View 1 Replies

VS 2008 Find External Window, Object Text?

Aug 5, 2011

i have an external form, and it has a label, which his name is: Static62 how do i read the label into my vb.net program?

View 10 Replies

Open An External Browser Window And Refresh It Inside Application?

Feb 27, 2012

We have an existing VB.net application. Upon an event, we need to open a browser window. I'm able to open the browser window like this:

System.Diagnostics.Process.Start("http://s3web01/suggestions?item=" + strItem + "&co=" + strOrder)

Upon another event, we need to refresh the browser window with different parameters for strItem and strOrder.

If I call the same code above, it opens a new tab in the browser window. Is there any way to refresh the same browser window that was previously opened?

View 1 Replies







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