VS 2008 - Put App In Some Kind Of Wait State For A Certain Key On The Keyboard Before Continuing?

Mar 31, 2010

Can i put my app in some kind of wait state for a certain key on the keyboard before continuing? But that key can be targeted to any window, not just my app. My app would be out of focus and i hit that key on the keyboard and it would act.

View 7 Replies


ADVERTISEMENT

.net - Wait For A Different Form To Close Before Continuing On?

Jan 25, 2010

I have a little log in screen that pops up if a user selects a certain item on my main form. How do I get my code to stop executing til my log in form closes?This is what I am doing so far. Basically i want o execute the code after MyLogin closes.

BMSSplash.MyLogin.Show()
If isLoggedIn Then
BMSSplash.MyBuddy.Show()
Cursor.Current = Cursors.WaitCursor
End If

View 4 Replies

Wait Until Form Is Close Before Continuing?

Apr 5, 2010

I have something like this:

For Each Entry In CheckedListBox1.CheckedItems
SheetName = Entry.ToString()
Form2.Show()
Next

but I don't want to continue the loop until Form2 is closed. I tried something like this:

For Each Entry In CheckedListBox1.CheckedItems
SheetName = Entry.ToString()
Form2.Show()
Do

[code]....

But that just froze everything and used up all my CPU.

View 2 Replies

Wait For Batch File To Close Before Continuing?

Feb 1, 2012

I'm trying to run a batch file via VB and I need to wait for it to complete/exit before progressing. The issue I believe I am having is that when a batch file is executed, it opens cmd.exe and not the batch file.

This is what I am executing with VB
My.Computer.FileSystem.DeleteFile(My.Application.Info.DirectoryPath & "PingCheckmachines.txt")
FileCopy(My.Application.Info.DirectoryPath & "machines.txt", My.Application.Info.DirectoryPath & "PingCheckmachines.txt")
Dim psi As New ProcessStartInfo(My.Application.Info.DirectoryPath & "PingCheckgo.bat")
psi.RedirectStandardError = True
psi.RedirectStandardOutput = True
psi.CreateNoWindow = False .....

The problem I am having is that it will just delete ping.bat before it completes.
How do I go about monitoring the process from the batch file I call. Then once it exits, continue with the script?

View 3 Replies

WebBrowser Control Is In A Wait State : How To Kill The Wait

May 27, 2009

While navigating to a series of sites at one site the WebBrowser control's DocumentCompleted EVENT is tripped and no other recorded Browser events occur after that. When this happens the hour glass cursor indicates the browser is waiting. From this point it take 120 to 250 seconds of wall clock time before the browser resumes. I am looking for a way to force an abnormal termination without destroying the control. I have tried "Stop", "nav to about:blank" repeatedly without success. How can I force an abnormal termination when the Cntrl is in a wait state?

Consider the following: The last known Browser event to be tripped is a Document Complete event; nothing else occurs after this. When this transpires the Cntrl is waiting.

1:50:657: ============================= ENTER WebBrowser1_DocumentCompleted EVENT ========================================
31:50:657: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^THE NEW WEBBROWSER STATEMENT

[code]....

View 7 Replies

VS 2010 Tell Web Browser To Wait For New Page/specific Url To Load Before Continuing?

Feb 17, 2012

making verified accounts for my marketing and now I am hooked into improving as it is turning into a very good program I am just stuck with one thing which I can see being a very simple solution but I have search forum after forum and tonnes of Google searches all worded different to solve my my.It really is simple at present I use different buttons to automate different parts/pages of the account creation I am now setting it up so I click say for example a "go" button and it fills in the first page (and heres where I'm stuck waits for a specific url or even just a new url to load before continuing with the next bit of code

View 15 Replies

VS 2008 Checking Thread Completion Before Continuing?

Apr 22, 2012

I'm having trouble checking the completion of multiple threads before executing more code.As an example, I started two threads:

**************************
Dim Thread1 As New System.Threading.Thread(AddressOf wordpress_checker_thread)
Thread1.Start()

[code].....

View 3 Replies

VS 2008 Make A Program Stop Or Pause For A Period Of Time Before Continuing The Code Without A Timer?

Jun 13, 2009

Out of curiosity, is there a way i can make a program stop or pause for a period of time (which i would choose) before continuing the code WITHOUT a timer.I think I've seen this done before, but I'm not positive.Also note that I'm talking about a forms application (not a console app if that would be any different.)

View 3 Replies

VS 2008 What Kind Of Component Is This

Nov 30, 2010

what kind of components is this? specifically the tab control that acts like a chrome browser wherein you can add Tab and remove it at the same time, in addition adding new tab displayed the Main menu for whatever tasks the user wants...

Here is the screenshot of the tab control.[code...]

View 4 Replies

VS 2008 Add Some Kind Of File To A Folder In Documents?

Jun 26, 2009

I have a context menu strip, and I need a way to add some kind of file to a folder in my documents. My program will get all the files in that folder then allow the user to pick one of the files. When a file is picked, the file changes the context menu strip completely. I can't figure out how to do this. I figured it could be done with a class library but I guess not. Any help would be great. And some extra info. I need to be able to externally code the file so that when a button in the context menu strip is pressed it does whatever the files tells it to do. How can these things be done?

View 2 Replies

[2008] Attached Some Kind Of Flash Animation Menu & Navigation Buttons?

Mar 14, 2009

Is it possible to attched some kind of Flash animation Menu & Navigation buttons in VB.NET? or only in website can do that? cause i want to create some flash animation buttons and datagridview or something components.....

View 4 Replies

VS 2008 Make Some Kind Of Loop Inside A Timer To Make Them Change?

Dec 14, 2010

Basically I have 10 .png images.They contain a walk cycle I need to make some kind of loop inside a timer to make them change.

View 2 Replies

Add Item To ListView While Continuing Other Code?

Jan 22, 2011

I have coded a low-level mouse hook. Each time the user clicks (let's say) the left mouse button, a custom event gets fired which is then handled by a form in my application. On the form is a ListView control with the following columns: Time - Application - Button.

I want that ListView to contain the last 1000 mouseclicks made, so each time the CustomMouseClickEvent gets fired, I check for the itemcount of the ListView, I add an item to the ListView and I resize all three columns. Problem is however that this extremely delays the processing of the mouseclick messages.

I'm wondering if it's possible to raise the CustomMouseClickEvent and then handle it in my application while at the same time the mouseclick message is passed on to the next hook to get processed by the systen?

View 2 Replies

Sub Not Continuing After Another Sub With Msgbox.yesno Is Called

Jun 18, 2012

I've been having a problem lately where if I call a sub with a msgbox.styleyesno, it won't go back to the original sub that called it. This is my code:

[Code]...

View 2 Replies

VS 2010 - Getting The Combobox Data Before Continuing

Nov 9, 2010

I have a button on a form and 3 comboboxes, each populated with a list. The outcome I'm attempting to programme is, descriptively; Button Click

[Code]...

View 3 Replies

Continuing Project AV Can Detect Viruses By Its Filenames?

Sep 10, 2010

continuing my project my AV can detect viruses by its filenames.. or fileextensions.. and its a incorrect form of detecting a virus..how will my program detect viruses by its behavior?.. least the common viruses like worms and trojans..

View 1 Replies

IDE Continuing Working On Project Under Renamed Directory

Nov 19, 2011

when you start a new projekt, vs2010 makes a new folder for the projekt. when i reach a certain point in my projekt i want to save that version of the projekt.

what i do is make a new folder and copy that projekt to it. projektfolder2 . when i start the projekt in the new folder the sln doesnt work anymore. the vbproj works then. and vs 2010 makes a new sln file one directory down of the old one between the other
projekt files.

View 12 Replies

VS 2008 : Navigate To Url And Wait?

Oct 17, 2011

How do you navigate to a url in a webbrowser and wait for a specific time period like say 30 sec before inputting data into fields in a form? I know how to use WebBrowser1.DocumentCompleted but I don't want to use wait for the complete website to download. There are websites that don't completely download so I don't want to hang up the program.I tried using Sleep(30000) but that halts the program, it doesn't load the browser for a specific time period.

View 5 Replies

VS 2010 Waiting For A Screen Re-draw To Finish Before Continuing?

Oct 16, 2011

I'm writing a simple program that takes a screenshot of tab1 of the GUI, then takes a screenshot of tab2, then tab3, etc. I've got the screenshot code down pat, but the problem with my current code is that it's taking the screenshot of each tab before the screen has a chance to fully redraw, so the resulting images are screwed up.Is there a way to get the program to wait for each tab (and all the controls in it) to be fully visible before each screenshot is taken?I'd like to avoid using a timer for this, as the screen redraw speed will vary depending on the user's computer, and the contents of each tab, etc.[code]

View 2 Replies

Waiting For A Shelled Process To Finish Before Continuing With Application?

Mar 7, 2011

I'm currently making a Computer Cleaner, my program launch's rundll32.exe's to clean IE's history.

Like to clear the add-on settings I would put:

Shell("RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351")

But I need to wait for it to wait before letting it to go on to the next thing like clear cookies, which would be: Shell("RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2")

View 3 Replies

VS 2008 : Wait Cursor In A Listview?

Mar 17, 2010

I was thinking how can i add a wait cursor to my listview box.I want the wait cursor to only appear at the top left side of listvie box.

View 11 Replies

VS 2008 Wait Certain Number Of Days?

Oct 14, 2009

Ok, say I have an application that has a setting called start. and when a button is pressed on the form, it puts a day in there or something, then the button becomes disabled. then when the application is opened 2 days (48 hours) later, the button becomes enabled for use again. How could I do this?

View 4 Replies

VS 2008 Wait Until Image Converted

Feb 9, 2010

I'm trying to set a desktop picture after It downloads and converts. but for larger pictures it takes longer and doesnt set the desktop picture, is there anyway of waiting till its converted.[code]

View 1 Replies

[2008] Wait For Stored Procedure?

Mar 27, 2009

Im executing a stored procedure which saves some data to the database. once this is done im then trying to refresh a datagrid which has all of the records in.

The problem im having is the datagrid doesn't show the newly added record but if I wait a second or so and then refresh it does.

[Code]...

The "RefreshLog bit works but only If I manually do it after a second or so

View 1 Replies

VS 2008 - Wait For Webpage To Finish Loading

Mar 4, 2010

I'm trying to login to a website wait for the page to finish loading then navigate to a page in this website.
Here is what I came up so far
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WebBrowser1.Document.GetElementById("nickname").SetAttribute("value", "user")H
[Code] ......
How to use the documentcompleted?

View 13 Replies

VS 2008 : Make The Application Wait For Hotkey?

Nov 13, 2009

I want to make a program that's constantly running on the background and when I hit a specific combination of keys (example ctrl + alt + A) on any application it does *stuff*.

View 10 Replies

VS 2008 Launching Batch Script And Wait

Dec 14, 2009

I am trying to knock out a tiny program very very quickly as I need it for tomorrow and doing so prob made a mistake but can't see it myself.I need to run multiple batch scripts (one at a time) but wait for them to finish before continuing (would be better if the command window was shown during execution)[code]

View 5 Replies

VS 2008 Wait For A Cmd Line Program To Finish?

May 18, 2009

I've made a gui for a cmd line program and I need to wait for the cmd line program to finish running before continuing.nd I have some code that starts the cmd line program and then calls a subroutine when it's finished running. But this method won't work since now I'm trying to run the cmd line program in a loop.Edit:Is there a way to just have the runtsmod subroutine (shown below) wait until the cmd line program is finished, instead of relying upon a subroutine starting when the cmd lineprogram finishes. This would simplify things greatly being able to call the sub tha starts the cmd line program and having it finish when the cmd line program is done.

Sub runtsmod()
'If the tsmod program exists in the directory the GUI is run from it is ran
Dim tsmod As String = Application.StartupPath & " smod_GUI.exe"

[code].....

View 3 Replies

VS 2008 Wait For File To Finish Downloading

Apr 4, 2010

I'm downloading a file asynchronously so that it doesn't stall the UI. I'm using a very basic WebClient and calling .DownloadFileAsync.The file I'm downloading is required for additional tasks after it has been downloaded. The issue that I'm running into is that, since the file is being downloaded on another thread, execution on the main thread continues while the file hasn't finished downloading.Is there any way to pause execution while the file is being downloaded? Or is there a better method?

View 3 Replies

VS 2008 Wait Till Webpage Is Loadin

Dec 24, 2010

There are serveral way but i know only one

1. WebBrowser1_DocumentComplete

[Code]....

View 1 Replies







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