App Closes When Minimized Or FocusChanged?

Nov 30, 2011

I am making an application that manages a MySQL DB on a server. Its working perfect and no errors...The problem is if I have the application opened and I do one of the followings:-Minimize the application-Change focus to another window like MyDocuments Folder, Internet Explorer or whatever I have opened.-It not only happens while in the VB.NET environment.Also to the final compiled executable.-Continue after verifying a variable with a Break Point (F9), just closes the application.-If I make the application form minimize through code it also closes the application (WindowState Minimized)

View 8 Replies


ADVERTISEMENT

VS 2010 When The Client Closes Sockets The Server Closes As Well

Apr 9, 2012

I have a small problem with sockets (I'm new to sockets). Below is the code I'm using. The problem is that when the client closes, the server closes aswell. How do I stop it from doing that?

[Code]...

View 1 Replies

.net - Detecting Keypress While Minimized?

Mar 7, 2011

I want to be able to detect when the user presses F10 or Ctrl+F10 outside of my program, and upon receiving the key press, it will send text to whatever they currently have selected (e.g. a text box). How can this be accomplished in the simplest way?

View 3 Replies

.net - Wait For Application To Be Minimized

Apr 15, 2011

I´ve got a Full Screen app witch launches other app and wait until it has been closed, when it detects that, the first application is launched again full sceen with this source code:

[Code]....

View 1 Replies

Activating A Minimized Form?

Jun 21, 2010

I have small application which shows an alert in every 45 mins....( to take a break from work :) )..... It is a normal windows form with a timer in it and in every 45 mins I am invoking a message box. I am able to make it work but the problem is that when the application is minimized, the message box is not popping up, it stays with in the parent form (minimized). How can I bring it up to the user focus?

View 4 Replies

Close The Program If It's Minimized?

Mar 18, 2012

How can I make something that closes the program if it's minimized?

View 11 Replies

Detecting KeyEvents While Minimized?

Feb 3, 2011

Currently I'm trying to create an Auto-Clicking program using VB via Visual Studio 2008. I bound hotkeys to start and stop the endless clicking loop, but I cannot find a simple way to make the program recognize or detect the hotkeys while the program is minimized.One that does not require over 9000 lines of code?

View 2 Replies

Force Restore A Minimized App?

Jul 27, 2011

So I made a program that is like a taskbar. (taskbar = Menustrip)

on runtime it gets all the apps and add there name and icon to the taskbar and when u click it I want to force it to restore itself so its no longer minimized.

For the click its probally something with CType, and I don't know much about the CType :(

[Code]....

View 4 Replies

Get The Window's Handle Once It Has Been Minimized?

Mar 1, 2012

<DllImport("user32.dll", SetLastError:=True)> _
Private Shared Function SetActiveWindow(ByVal hWnd As IntPtr) As IntPtr
End Function

[Code]......

I'm trying to make use of some functionality from an external app in my program.

My problem is this:

My program manages to start the external app correctly and I can even get the WinHandle correctly if I don't use "ProcessWindowStyle.Minimized" when starting the app.

If I start the app minimized, WinHandle = ProcID.MainWindowHandle returns a 0 and as I understand it, it's

because the app is hidden in the system tray.

How can I start the app minimized and then get the window's handle once it has been minimized?

I've tried various functions like FindWindow and BringWindowToTop but none of them seem to work.

View 5 Replies

How To Run Code While A Program Is Minimized

Apr 16, 2010

Im doing a small project in visual basic which involves lighting up leds through the parallel port and turning them on and of. each led is controlled by a checkbox on my form and they only come on when the checkbox is checked i currently have this code

[Code]...

View 2 Replies

How To Send A Key To A Minimized Window

Feb 26, 2011

But i have a problem so i want to Send one key to a minimized form if u know what i mean like running it in the background its the key "F5" that i want to send. It works if the window is focused but as soon as i start my internet it refreshs the sites there and not where it was ment to b

View 9 Replies

How To Work On Program While Minimized

Jan 13, 2009

I got a program which needs to be used while it is minimized but don't know how to do this. I would control it by keyboard, my keys only work when the form gets focus.

View 1 Replies

Passing A Value To A Minimized Form?

Oct 17, 2009

I have a 2nd form that is minimized to the taskbar, I can click on the tab and the form opens and shows all of the data fine, but

From the main form, I am maximizing the second form and trying to pass a value to a toolstrip textbox on the second form then press a button on the toolstrip from the second form, I can get this to work fine, but where I am having a problem is

The button searches through a treeview, when I step through my code, I can see the value that I am passing, my code does execute, but the treeview is showing no nodes(but they are really there). At the begining of the code, I put a message box to give me a count of the nodes in the treeview, it shows 0, but I can see all 10000+ nodes. What the textbox is on the toolstrip is a search box. When the form is maximized, I can enter whatever and it finds it with no problems, but if I pass a value it doesnt find anything because the treeview is saying there are no nodes when there is.

View 6 Replies

Prevent A Form From Being Minimized?

Sep 12, 2011

I've got this little 'Sticky Notes' type of application and the form I have is a borderless, taskbarless form and for Windows 2000 compatability I'm using VS 2008 and targeting the 2.0 framework. One of the hurdles I have is that in XP, Vista & 7 when you click the Show Desktop button all of my note's windows get minimized and without a taskbar icon, it's not easy to get them back (at least not for a normal user) & I'm looking for a way to either right after the windows minimize I just have them all show again or if I can skip the minimizing message in the wndproc altogether

I've put together a test app that'll show the messages in a listbox for the form, but I'm not sure how to go about skipping sending the message to the form's base class. Here's a snippet, listMessages is the listbox on the form[code]...

View 8 Replies

Take A Screenshot With Program Minimized?

Jan 13, 2012

I wrote some code for a program I am making to take a screenshot when the program is minimized. Thing is something is wrong with the code and I am not sure what it is. Whenever I take a screenshot the program is taking the picture with the application up and not minimized.

So what I need it to do is minimize the application then take the screenshot and then reopen the program after its taken the screenshot. for the noob question but I am brand new to the VB and only been coding it in for less then a day.

[Code]...

View 2 Replies

Tell When External App Is Minimized To Task Bar?

May 5, 2009

How do I tell if an external app is minimized to the task bar? I can minimize and external app and then restore it but I don't know how to tell if it is minimized to task bar or not.

View 1 Replies

Capture Function Keys Even If Minimized

Apr 5, 2012

i need to capture function keys even if form is minimised. how can i do it? i tried many tutorials for key hook etc etc. but none work

View 2 Replies

Forms :: Prevent A Form From Being Minimized?

Sep 12, 2011

I've got this little 'Sticky Notes' type of application and the form I have is a borderless, taskbarless form and for Windows 2000 compatability I'm using VS 2008 and targeting the 2.0 framework. One of the hurdles I have is that in XP, Vista & 7 when you click the Show Desktop button all of my note's windows get minimized and without a taskbar icon, it's not easy to get them back (at least not for a normal user) & I'm looking for a way to either right after the windows minimize I just have them all show again or if I can skip the minimizing message in the wndproc altogether that'd be great.

I've put together a test app that'll show the messages in a listbox for the form, but I'm not sure how to go about skipping sending the message to the form's base class. Here's a snippet, listMessages is the listbox on the form:

Private Const WmSize As Integer = 5
Private Const SizeRestored As Integer = 0
Private Const SizeMinimized As Integer = 1

[code]....

View 14 Replies

Lines Disappear When Form Is Minimized?

Nov 19, 2011

I have made a drawing program. It draws a line when you click in the form, but if the form is minimized or another window is on top of it, the lines disappear partially.

Here is the

Dim FormMiddleX As Integer
Dim FormMiddleY As Integer

[Code]....

View 16 Replies

Moving Panels To The Left When One Is Minimized

Mar 22, 2011

In my current project, I have 4 panels. Each panel has its mini application in it such as a notepad. In each panel I have a status strip with links to minimize and maximize it works like Linux windows. Basically, it makes the height of the panel to 22 which is the height of the status strip to make it look kind of like Linux Style OS. What I've achieved is when I minimize a given window, I move it to another location where it is out of the way. What I want to do is make the x number of panels to the right move left to the spot the minimized panel WAS located.

[Code]...

View 4 Replies

Perform Click In A Minimized Form?

Feb 27, 2012

I was wondering if it is possible to perform a "mouse"-click without being in the form, like I got this program clicking on certain locations and I would like to use the computer to other stuff in the same time but the mouse keeps going to the location on the screen. I need way to perform a click without using the mouse cursor.

View 6 Replies

Resizing Form When Panels Are Minimized

Mar 21, 2011

I am in the process of creating an all-in-one application for my own purposes. This application has panels with different "Mini-apps" inside of each. Timer, Notepad, Calculator, etc... The top of the application is a drop down menu and each of the drop downs has "Minimize" and "Maximize" for the appropriate application. When the minimize function for a "mini-app" is clicked, then that application is not visible. When maximize is clicked, the the application reappears.What I am attempting to accomplish is that when, for example, the two lower panels are minimized then the form resizes to only show the top two application.Basically, its like rows. If the two bottom are not visible, then the application should resize to fit nicer. An example of this type of application would be Windows Calculator (found in Windows 7 systems and probably other OS).[code]

View 2 Replies

Showing Another Application Minimized To Tray?

Jul 24, 2010

I've been trying to open/show an application which is minimized to tray but without success.Sorry if this has already been discussed; kindly redirect me then.I've tried P/Invoke methods such as ShowWindow and SetForegroundWindow but these hasn't worked.

View 12 Replies

VB Sending Keystrokes To A Minimized Window/app?

Apr 26, 2012

im a complet noob in vb . i have been trying to figure out how to send keystrokes back to my own application , while minimized/ Or focused on an other window.i think i need to use PostMessageA . i read about it on forums. But its like chinese for me.my goal is to run these little programs by the 100's on 1 pc. and they just press a key in their own application , over and over.i was thinking something like this

Private Declare Function PostMessage Lib "user32.dll" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Private Const WM_CHAR As Long = &H102
PostMessage("notepad", WM_CHAR, "T", 1)

View 1 Replies

VS 2008 E.KeyCode While Form Is Minimized

Aug 12, 2011

I want to use e.KeyCode while form is minimized, I'm working on a screenshot-taker if you know what I mean. So Form1 is minimized > User presses F9 (Let's say the key is F9) > An event happens.

View 4 Replies

VS 2008 How To Show Minimized Application

May 25, 2009

I'm making a program that should have a function that detects all minimized programs and can put them back on top..

View 2 Replies

Controlling The Minimized Size Of A MDI Child Form

Nov 21, 2009

Is there a way to control the size of a minimized MDI form. When I minimize a child form, it apprears at the bottom with the form buttons (minimize, restore and maximize) and just about 2 or 3 characters of the Title Text. I would like to have more of the title text showing so the user can figure out what window he wants to restore if he has a couple of them minimized. If not that, is there a way to have a "tooltip" popup when I move the mouse over the minimized form.

View 2 Replies

Forms :: ListView.TopItem And Minimized Window?

Jun 15, 2011

I have an issue in a project trying to auto-scroll down a ListView (used as Details with columns) when adding a new ListViewItem when the window is minimized. I guess we have to use TopItem property to set force the listview to scroll down.I get two exceptions when the form is minimized: "Object reference not set to an instance of an object." "Index (zero based) must be greater than or equal to zero and less than the size of the argument list."

I'm just using standard .Net components (Events/Delegate) with standard way to use them.

I made a small test code to isolate the issue:

[Code]...

View 6 Replies

Get Input Joystick Data Into Minimized Form

Sep 18, 2009

I have made a small program that reads the input of a joystick/GamePad and passes it on to a serial port. It works great I can see all the buttons pressed ect ( in a textbox). But When I minimize the form and press some buttons they are no longer passed on to the serial port and not shown into the textbox?

View 2 Replies

Get My Program To Run In The Background - Don't Want To Have The Minimized Screen On The Task Bar

Aug 12, 2010

I would like to get my program to run in the background. The EXE file I have created, I want it to run in the background and yet do not want to show the user that the program is running. Like I don't want to have the minimized screen on the task bar. Can I do it in my VB.net program.

View 10 Replies







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