Application Stops Working When Minimized Or Lost Focus?

Aug 5, 2010

I have an application I run on a netbook that is folded up inside a robot.Occasionally, something from the system tray will pop up unexpectedly. This removes the focus from my application I also thought there was a way (in forms properties in the vb6 days) that would allow to "run when minimized"? In short, I want this application to be running and nothing (asides an application error message) else getting in the way.

View 4 Replies


ADVERTISEMENT

Forms :: Restore A Windows Form Which Is Minimized And Has Lost Focus?

Dec 2, 2009

I have created an app which has a timer control which, when activated and meets a certain criteria, launches a second form with an alert for the user to review and action. this works just fine. Except.... when the main app is minimised and has lost focus, instead of launching the second form to a normal windows state it opens and sits in a minimized state itself and just flashes. How can I get the the second form to restore to a normal windows state?I have tried form2.focus and tried the windowsstate=normal etc but I'm still barking up the wrong tree.

View 2 Replies

Know My Application Lost Focus In Program?

May 10, 2012

I am using VB.NET to build my application. And in my application has a lot of Forms. It doesn't use MDI Parent Form, but I use another simple Window Form (I named it frmMain) that I suppose it is my MDI Parent Form. When frmMain load, windowState = Maximized. And when I open a Form (example: I named it frmCustomer) that I suppose it is my child Form, and I set its properties (frmCustomer.TopMost=True) when it load, so it always on the top. But When I change to open another application such as Ms. Word or Mozilla Firefox... the frmCustomer is still on the top. how can I know my frmMain lost focus?

View 1 Replies

Forms :: Changing The Backcolor Of A Control When It Has Focus And Lost Focus?

Feb 16, 2011

Is there a more efficient/easier way changing the backcolor of a control when it has focus and lost focus? Let's say I've got 10 text boxes. Right now I would have 20 different events...10 for Enter event and 10 for Leave event. Of course, entering would change the back color to "green" and leaving would change it back to "white".

[Code]....

View 4 Replies

Lost Focus Event, What Control Is Getting Focus?

Mar 21, 2012

I have a textbox on a form that when it loses focus it updates other text boxes on the form. But before it updates the other textboxes I check the input value in the textbox lostfocus event if it is undesired I return focus to the the textbox and alert the the user with a msgbox. However where my problem is, is that when the cancel button is clicked I don't care what the input in the textbox is because the changes are being canceled but if the value is undesired the it keeps returning focus to the textbox instead of canceling the changes. Is there a way to see what control was clicked on before or in the lost focus event? Can't seem to figure it out tried enter and leave events but no luck!

So for example something like this...

Code:
Private Sub TextBox1_LostFocus(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.LostFocus
If Control that was clicked <> btnCancel then

[Code].....

View 2 Replies

Capturing Audio Stops When Main Window Is Minimized Or Obstructed By Another Window?

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

MdiForm - Set Focus To Window And Make It Minimized

Dec 22, 2008

i have an mdiForm. it has the standard "windows" menu option, thats lets you change the layout of the child windows, it also has the list of currently open windows. is there a way to access that code that generates that list so i can alter so that is window from the list is selected and it has been minimized, it wont just set the focus to that window but open it to the normal state?

View 1 Replies

Lost Focus In Program

Nov 25, 2011

I have a form with 7 textboxes, all describing different attributes of a used car. In the shared leave event of my tb's, I need to code a case statement which determines the particular textbox that lost focus. I then need to perform different tasks which I understand how to do, and I don't think they matter to my question.

I understand how to give focus (txtTextBox.focus()), but how do you tell if something has lost focus?

And furthermore, how would you use that to structure the case statement?

View 2 Replies

Arrow Keys In MDI Focus Is Lost

Nov 28, 2009

I had previously made a simple Pong program which use keyboard to control. The control includes "s" to start the game, "p" to pause, "r" to resume and left, right to move the paddle specifically. This program work with little problem. The first problem I encounter is if I insert even one single button on the form to display instruction, the arrow keys will no longer work. But I get around it by using Menu Strip instead.

Then, I am required to put this program, among others into a MDI program. And this is where the problem happen. If I have this Pong game loaded, and I press "s", "p", or "r" keys, it have no problem, but if I press the "left" or "right" keys, it will not move. I am speculating that maybe the focus is lost when arrow keys is pressed or something similar, but I have absolutely no idea what is happening. I have tried giving focus back to the form if focus is lost, but to no avails. And this is the code for the movement of the paddle. This reside on a form, the movement itself is passed to another class. The MDI parent is on another form. [Code]

View 2 Replies

Lost Focus Method For Textbox?

Oct 5, 2010

How to write Lost focus method for asp.net text method? Please anybody have any idea to write this, share with me?

View 4 Replies

Lost Focus On Combobox In Datagridview

Jun 17, 2010

I have a datagridview with a combobox column. The combobox column is populated from a collection. I begin to add data to the dgv, I select in the first row a value in the combobox and go to the second row. In the second row, when the combobox gets the focus, it appears 'V18', also the selected value before. Why? An on the other, when the combobox in the second row losts the focus, the combobox value is nothing. Why? Here are two images:

[Code]...

View 1 Replies

ShowDialog Causes Flashy And Lost Focus?

Jun 29, 2011

A MDI form which is used to call a child form (frmCust), there is a customer datagridview in the child form whereby user can double click on any customer row to call out the frmCustDetail form to display all customer details.I have got what i want but I encountered two problems shown as below.2) Lose focus - Sometimes when i close the frmCustDetail and get back to the child form. the whole

View 3 Replies

Mouse Wheel Does Not Work Once It Lost Focus?

Mar 24, 2012

i have use one mdi form and with in i have call form1. in mdi there is menu and text box.when i run program the mouse wheel work in form1. but when i click on text box after it only mouse wheel not work on form1.

View 12 Replies

Multiple Textboxes Calculate On Lost Focus?

Jun 9, 2011

I am trying to get my little program to do some calculations.So far i got 15 textboxes, named TxtPP(followed by product type),so i got TxtPPproduct1, TxtPPproduct2 etc..At the bottom of the form i got a disabled textbox which shows the total of all the above textboxes.Now i don't want to use a button to click when doing the calculations.I want this to be done every time a value is added to one of the textboxes(so on lost focus).

View 4 Replies

VS 2008 Color Row Listview When Lost Focus

Jul 16, 2009

Is it possible to color the row after it lost focus?

View 7 Replies

Create A Fading Form On Focus Lost &got Event?

Jan 3, 2012

I am doing project in vb.net.When i click on button open I opened form with no control box(minimize,maximize etc).set borderStyle to FixedToolWindow.I want to change the opacity of form on got focus & lost focus event..I also used activated & deactivated event but doesnt working[code]...

View 2 Replies

Detect Button Click Before Lost Focus Event?

Jan 30, 2010

My application has a form which contains several Textboxes where user is required to fill up data. Once data is filled up user can click on "Save" button to save the data. I have added lost focus events to all textboxes so as to validate user input. When I click on cancel button, i want to detect cancel button click, but textbox lost focus is fired first so I get error message for textbox before my code moves to cancel button click handler. Is there any way to detect button click before lost focus event?

View 4 Replies

IDE :: Add Data From DataGridView To Database When The Current Row Lost Its Focus?

Oct 3, 2009

I have a small doubt: (VB.Net 2005, MS-Access 2007)Is it possible to add the current row from DGV to DB as soon as the row lost its focus..i.e. whenever i add a new row in DataGridView it should automatically get inserted into the database without pressing any buttons... Bcoz i need to add more new rows dynamically & hence i find little difficult in clicking the ADD button again and again to insert each and every Record.

View 1 Replies

Visual Studio 2005 - ComboBox's Selected Value Changed On Lost Focus In .NET?

Oct 12, 2009

I have a datagridview(dgv) with a DataGridViewComboBoxColumn(colLocation)

colLocation.AutoComplete = False
colLocation.HeaderText = "Stored to"
colLocation.DataSource = DB.getLocation()

[code]....

I added the colLocation to dgv."descirption" contains Unicode characters. I can see the comboBox correctly and choose the item.The problem is when the comboBox lost the focus, the value is changed to first item of the comboBox.

Updated:I found out that the ComboBox doesn't change the data when the DisplayMember is in English characters. It changes only when the DisplayMember is in Unicode chracter.

View 3 Replies

Gif Stops Working?

Jul 28, 2009

I have an animated gif in a picturebox that's loaded from the start.The problem is, whenever any application goes on top of the app the gif stops moving.Example : the app is open (gif is animating), I open notepad, I open the app (gif has stoppd animating)How do I keep it animated, even when the app is not visible?

View 2 Replies

C# - ReSharper Stops Working?

Aug 13, 2010

Running solution with VB.NET & C#, ASP.NET, VS 2008 with ReSharper 5 Most of the time, ReSharper is working (redundant code grayed out, squiggles, etc.)Sometimes, on the same code where it was working, nothing is highlighted to show ReSharper is enabled.I haven't done anything except modify code and debug.

View 1 Replies

DLL Stops Working After SA Account Disabled

Nov 4, 2009

I've written approx 4 projects that utilize a central DLL for database access. The DLL was written in VB.NET using the .NET 3.1 framework. All the code works great. Recently, I went through all the code and updated the connection strings to use a new username and password since they were using the SA account on SQL Server 2005. After recompiling and uploading the DLL to the web server, I disabled the SA account. All of a sudden, the DLL stopped working. It just stopped. I know that the code is ok because I copied it into a aspx file and it worked. I had to re-enable the SA account in order to get things back to normal, but I really would like to eventually disable it.

View 1 Replies

Process Checking Not Working When Program Is Minimized To Tray

Sep 21, 2010

I wrote code for checking whether a particular process (Outlook.exe, in my case) is running or not. It is working fine when the Outlook window is open or minimized. But, when the Outlook is minimized to tray (which on the right side of taskbar), my code is not identifying the process.Could anyone please suggest me a way to get the process of Outlook (or any other program) that is minimized to tray?

View 2 Replies

C# - Accordion Stops Working With Update Panel?

Nov 21, 2011

i have a accordion control(using jQuery) on the page. When I insert accordion into an updatepanel, set a button outside the updatepanel as its trigger and click on the button the accordion stops working. If I remove the updatepanel, it starts working.

<script src="Scripts/ddaccordion.js" type="text/javascript"></script>
<script type="text/javascript">

[code]....

View 1 Replies

Forms :: Listview Itemactivate Stops Working?

Dec 23, 2009

I have two forms frmA, frmB. I have a listview on frmA with a couple items with tags. In the listviews Itemactivate event I get the FocusedItem's tag and open frmB. Everything works fine until I close frmB and come back to frmA. The original item is still selected but the Itemactivate no longer opens frmB. I can step right into the frmB.Show line on frmA, it's just that frmB nevers shows.

Private Sub ListView1_ItemActivate(...) Handles ListView1.ItemActivate
Select Case ListView1.FocusedItem.Tag
Case "showfrmB"

[code]....

I've tried adding Hides, Activates, etc. with no luck.

View 4 Replies

IE8 Back Button Stops Working On ASP.NET Page?

Jul 29, 2010

If you do a search for "ie8 back button disabled" you'll see a number of blogs with people having difficulties with the Internet Explorer version 8 back button becoming disabled. This now happened to one of my ASP .Net pages. The page uses a user control, aspx page, and a master page. It uses no redirects and seems to be happening when I click the back button and then the forward button (after the forward button is clicked, it does not fire the Load event and the back button becomes disabled).

View 2 Replies

VS 2008 : Button Works Once Then Stops Working?

Aug 17, 2009

I am having issues with my program. It should update every time i click the button, but it runs through perfectly on the first click, after the first click it does nothing.This is a UDP Program, where the client sends a packet with a sequence number and payload which are separate items in the packet. The server receives the packet, reads the sequence number, and then sends back the next sequence number the client should send.The client then receives that from the server with the same payload.. And then should change its sequence number to the one it recieved, and send that to the server..The client works up to where the client updates to the sequence number it receives from the server.. But both show no effect on any clicks after.

Heres my Client
Option Strict Off
Option Strict Off
Imports System.Net.Sockets

[code]....

View 21 Replies

VS 2008 Service Suddenly Stops Working?

Aug 16, 2010

I'm having trouble getting my archive service working. The service counts files in a directory and sends a email. Pretty simple. However, it randomly stops working. I debugged the service and found nothing wrong. I also have it writing to the eventlog so that I can use it to determine where it fails It progresses through each function normally. I thought my program was failing at on point, because it was only posting "Email Notification Service is Running". However, I realized it wasn't posting to the eventlog source so I've been playing around with different ways to post the message to the eventlog. Am I missing something from my code below? I'm really scratching my head with this one.

[Code]...

View 5 Replies

Service With Timer SMTP Email Stops Not Working?

Jul 21, 2010

I'm having complications with imlementing a service that uses a timer to send emails. In my code, it stops in GetDocuments() after TisValid() validates the directory path. I tried using a addhandler and threading but neither worked.

View 3 Replies

VS 2008 System Wide Hotkey Stops Working?

Oct 11, 2010

Has anyone used a system wide hotkey and notice it no longer works? But the program is still running fine. When I run my program and it starts the hotkey, sometimes it will work fine all day, other times within 15 minutes I press the keys and the program does not react to it. I am using the keys Control-F2. Here is my

Public Sub SetHotkey()
Try
Select Case ComboBox2.SelectedIndex

[code]....

View 1 Replies







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