VS 2008 Application Exits Automatically?
Dec 15, 2010
I have developed a vb.net application which gets a folder as input with n number of .txt.When there are say 5 .txt files the application executes and produces the excel output.When there a n numpber of .txt files say 30, the application takes a long time and exits without producing the output.
View 29 Replies
ADVERTISEMENT
Nov 1, 2009
I've made an application in Visual Basics, But I Want A msgbox to appear when the form is closed would this work?
Private Sub Form1_OnExit(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.OnExit
MsgBox("Have You Saved, If Not Your Work WILL Be Discarded!", MsgBoxStyle.Critical, "Have You Saved?")
End Sub
View 1 Replies
Jul 23, 2009
I need to preserve a collection even after application exits. In ASP if i use application object this can be acheived. But in windows application what could i do to preserve collections?
View 4 Replies
Apr 30, 2012
Windows Forms VB Application.. I added a splashScreen to my application. And it was flashing only for a second then going away so I added a sleep timer to my Form Load event... The problem is now the splashScreen stays open even After Application exits, instead of simply closing at the end of the sleeptimer.. The Part of the Form Load event that is causing this is as follows:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Me.Load
Threading.Thread.Sleep(5000)
[Code].....
View 3 Replies
May 14, 2010
I have just converting my VB6 project to VB.NET 2008. I have set up start with Model. It start with Main() sub, in Main sub I have declare as below:
Dim frm as new Formpwd
frm.show()
In formpwd I have UserId, PWD as test box and Two command buttons. The system executes form_load code and then PWD and UserId_Gotfoucus handler and then closes the system. Why is not waiting to accept UserId and PWD?
View 6 Replies
Sep 20, 2009
I had originally saved the project I was working on to my desktop, but now I have moved the folder to another location on my hard drive (didn't want it on my desktop anymore).
But since I've moved it I get the message:
The working directory does not exist: 'C:old folder locationResources'.
Is there a simple way to update my project to the new folder location?
View 1 Replies
Jul 17, 2009
i want that when i start a particular vb.net application, the caps lock should be automatically turned on.... how can this b done ?
View 1 Replies
Dec 6, 2010
I copied a project I wrote on my XP machine to my other computer with Windows 7 64-bit. When I run it through VS2008 it exits immediately. It does not run a single line of code. The exit code is 0. I need to post what else it says. But I did find a posting about this saying the path to the temp files may be wrong for it but he did not know how to change this. If I create a new peoject and put a command button on it, the program runs. So I was wondering if it is something like the temp files or something else. The machine runs a compiled .exe of the program from the XP machone when installed on the Windows 7 machine. So I do not think it is the program not being compatible.
View 5 Replies
Mar 12, 2010
I am developing an application that automatically checks player numbers in the Irish Lottery.
The code below checks each players 3 numbers against the six drawn numbers and reports on matching numbers and winnings. Each players information is stored in a specialised.string.collection in my.settings as shown below
Susan,3,18,26,2
Colin,4,16,28,1
The following checks the numbers but only the first item in the collection is being displayed in the multiine textbox.
Me.txtDrawInformation.Text = "Player results for " & drdate & vbCrLf & vbCrLf
Dim player As New ArrayList
For Each item In My.Settings.Wednesday
[CODE]..................
View 8 Replies
Sep 27, 2010
Is it possible that my application, when exit, uninstalls itself automatically, without any user intervention and involvement?
View 7 Replies
Jun 9, 2011
I want my system to run when the computer boots.
View 1 Replies
Jul 1, 2011
I have written an application. It works fine on some resolutions but most of the controls are over lapped when it is run on some other computers.Is there any way of setting the application automatically when it is run on different computers?
View 1 Replies
Feb 15, 2012
Any simple way of automatically updating a newer version of my application from a network share. Everything I have read pertains to an update from a web site. This is possibly a simple thing to do but as I have 6-8 users using the application I have to email them all stating there is a new version on the share and for them to copy and overwrite the existing application executable in the program filesapp directory. If this could be done on launching the program within the splash screen that would be fantastic.
View 3 Replies
Apr 30, 2009
I would like to provide an effective way for my VB.NET application to get registered automatically in a company with many computers. So the Enterprise Licence would kick in, but how to manage this?I was thinking each computer would connect to an intranet server where he would get the permission to register...C64
View 2 Replies
Aug 5, 2010
I want to allow my user to add urls to a database, much as a user might add file names. I have a form with a label, a textbox, and a browse button. I would like the browse button to load the user's default browser and then have the final url appear in the textbox when the browser closes. I have not been able to do that, but I have come close. I have not found a way to capture the url from an arbitray browser, so I instead load ie.exe and then capture the url with an OnQuit handler. That works (even verified by the debugger) but I am unable to get the url to appear in the textbox without actually clicking in the textbox once ie closes. I would like a suggestion as to how to avoid making my user click in the textbox and, if possible, to load the user's default browser and still capture the url. Here is my code for the Browse button (IE is defined at the class level as Dim WithEvents IE As SHDocVw.InternetExplorer):
theURL = ""
IE = New SHDocVw.InternetExplorer
AddHandler IE.OnQuit, AddressOf HandleIEQuit
[code].....
View 3 Replies
Sep 7, 2009
How can i automatically start a vb.net application on windows startup or load?
View 13 Replies
Jun 19, 2010
I'm trying to build a small application that will automatically visit a few websites. The list of the websites I want to be stored inside a txt file like:
website1.com
website2.com
website3.com
and when I press the "Start" button, my application will open the websites from the txt file, one by one with a delay of 10 or more seconds before loading the next website, in a webbrowser control.
View 6 Replies
Apr 16, 2009
I am trying to build a self-updating .NET application that will run in an environment with limited user accounts. No admin rights here. The application must run on Vista and XP, and probably Win 7 when it comes out.An X-copy deployment would be fine. I would prefer NOT to use click-once.So far I have tried a system where the application checks a manifest and downloads updated binaries, which worked great in development, but not so much when the app was installed.Vista refuses to to let me copy files to Program Files. After that, I tried downloading an updated .msi, which works except that the MSI has a UAC prompt -- no go if the user does not have an account with local admin privileges.
running the program in AppData and using the x-copy method might work, but I have not seen anyone say that they have tried it and it did work. Will that work for an account without admin rights? Can anyone vouch for this method before I start writing more code?
View 1 Replies
Mar 22, 2009
I use VB 2005 Express @ home for developing stuff. I am wondering if anyone knows how to run a script automatically after building my application. When I click build I want it to compile my InnoSetup installer and also zip up my executable + readme.txt file into AppName-version.zip. Right now I manually do it, and it's not that big of a deal, but if I am just wondering if it's possible. I think I can do it with full VS, so I will check it at work, but I am wondering if I can write a plugin or something if VB2k5X doesn't have an option do it already built in.
View 5 Replies
Nov 9, 2011
how to work with distributed application in vb.net that automatically stored data into server? How to configure to ensure the consistency of data being stored.
View 6 Replies
May 11, 2010
I have a normal windows forms application. A button launches a command line application.I need to insert an argument automatically without the keyboard. Then hide the command line application. I've been trying to figure out how to do this but with little success.I need to build a function that does this but I've never built a function before.Here is what I have but it tells me it may result in a null exception.(Because I'm not doing something quite right.)[code]
View 8 Replies
Apr 11, 2011
how I can make my Application to automatically create preset folders with files when installing the application? The files should be under user/documents/MyApplication/Newpresetfolder
View 5 Replies
Jul 22, 2009
I developed a chat application with an attendant chat server. Everything is working fine. The issue now is the fact that whenever the chat server goes down (for instance, the server system shuts down as a result of power failure or some other problem), by the time the server system come back on, the chat server would have to be restarted manually.
I believe (and I know) it is more appropriate for the chat server application to restart itself when the computer comes back on (and of course regardless of who is logged in and of course, even before anyone logs in). I have a batch file that executes the chat server. My attempt was to create a windows service that start automatically and runs this batch file using a Network Service account on the server system. Although, I'm having a hard time with this (temporarily), I would love to ask if there are any alternatives to using a windows service.
View 3 Replies
Sep 22, 2009
I am using VB.net and Sql server 2005.
I have GridView in Application where I have my CPUserID. There can be thousands records in GridView with different CPUserIDs.
Now I have a button "Allocate Token". But before allocating the token I want to check in my Token Table that if that CPUserID has already exists in table it should not allow user to allocate token and will return some message for that user.
For Each curRow As GridViewRow In GridView1.Rows
Dim cpuserid As Label = CType(curRow.Cells(1).FindControl("lblCPUserID"), Label)
Next
[Code].....
View 2 Replies
Jan 2, 2012
I have been using the 'findby' method for sometime, but now it suddenly is failing me on a new data source I have added to the project. I have the data source bound to a form and I am trying to find values based upon a primary key. This evades me, I am able to look up rows using 'findby' with other tables, but not this one.
Dim AnsiX12Row As ansisupplementDataSet.ANSIX12Row = Me.AnsisupplementDataSet.ANSIX12.FindBySegmentElement(CurColName)
If AnsiX12Row IsNot Nothing Then
[Code].....
I have checked and re-checked, the CurColName is for a value in the table, but cant seem to find it... I always have AnsiX12Row = nothingBradford W Brown
View 2 Replies
Mar 16, 2012
I created a game in visual basic. When the user answers correctly, a message box will appear and ask if they would like to play again. How would I get the program to exit when they push "No" . . .
Public Class Form1
Dim temp As String
Private Sub RadioButton7_CheckedChanged(ByVal sender As System.Object, ByVal e As
[Code]....
View 2 Replies
Jun 13, 2011
Im working on a silverlight application where a user can create, edit, delete objects. The changes they make are placed in a queue which is processed every 4 minutes. When it is processed, the updates are sent over an async web method call to be saved in a sql database, one at a time. When the first update finishes, the next starts.Im having a problem when a user makes a change and then exits the browser app before the 4 minute timer has expired.Currently the changes are getting lost.Ive built on what the guy working on this before me has done, and explored the Dispose and Finalize methods, trying to start the update process when the factory is being shut down, but that isnt working due to the async nature of the web service calls. I get errors saying needed objects have already been disposed of.
View 1 Replies
Nov 23, 2011
I'm running a bunch of automated tasks in a thread I'm creating via the Thread class. So I'm not using a BackgroundWorker.
During parts of the automation, the thread may exit. This is normal. But when the thread completes, I need to finish up some additional tasks. I can anticipate all of the conditions in which the thread closes, but I'd rather not to do the final tasks at each point, as this will create a lot of redundant code.
So instead, I wanted to write an event that is triggered when the thread exits. I looked through the Thread class, but all I could find was the ThreadState property, which has a Stopped property. But, when I try to add a handler to that property, it doesn't allow me.
View 11 Replies
Jun 11, 2012
For some reason, the next code found on MSDN crashes or exits after 30 cycles or, in other words, after processing 30th Property, exits without explanation. As I said, I found it in MSDN
[Code]...
View 9 Replies
Jul 9, 2010
I need to ASP.net Page that links automatically to files(pdf) stored in a folder in the same root of the web application..so the script will read the contents of the page , if the file is available in the folder it should create a link to it automatically and if not it stays static text.
View 1 Replies