Prevent Same Applcation Runs?

Oct 8, 2009

Let's say that there is a little icon on the windows desktop which is called "HR". The user started the application to input a new employee.After he came back from lunch he tried start the application again even though he did not logout from the application.How do I prevent

View 3 Replies


ADVERTISEMENT

A Timer Just Runs Once?

Feb 13, 2010

I wrote an application that have two timers, one of them (timer_poll) when the ticks event i change the enable to false in order to execute a code. this code writes an information in a COM, and after recieved the information from the COM from a Funtion I change the Enable property for the timer_poll to enable again but it have neve run again.the timer_poll_tick_1 does not start again, i activate a breckpoint, I can confirm that the timer_poll.enable=true because i put a button on the application that on its click event it shows me tha properties of the timer_poll, like this:

MsgBox(
CStr(timer_poll.Interval) + "|" + CStr(timer_poll.Enabled))

here is the code of the timer_poll_tick_1

Private Sub timer_poll_Tick_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles timer_poll.Tick
timer_poll.Enabled =

[code]....

View 1 Replies

App Runs On Computer But Now Others?

Apr 30, 2010

I've been working on this application for a few days now, and have had people beta testing it day by day. well last night I did a pretty big update on it, and release the beta to a few people, all with different architectures and other devices, and now it wont run on any of there computers. It begins to load, and then just closes. No errors, hanging, or overflow. the max it gets at in ram usage is 27k. No windows load either. They only thing that is a reference is the itunes sdk, which hasnt changed since I started making this app. I've checked the form load, and nothing there is causing it to end. I even commented out all the code I added last night, and still nothing.

View 11 Replies

.net Application When Close Still Runs?

Nov 29, 2011

i created an .exe application with vb.net 2010 , my problem is when i run the application and then close it, it still runs in processes . why does this happens ? and how can i fix it?

View 1 Replies

App Runs In IDE But Error From Release Exe

Oct 11, 2010

This is just a test app I'm using as a training tool.It connects to a MS Access 2007 db.It gives me no error when I run it from the IDE but when I run the exe from the in elease it gives me this error,Failed to enable constraints.One or more rows contain values violating non-null, unique, or foreign-key constraints.I've found the relation thats causing this but, the data in the tables seems to be fine.No missing Primary keys, no duplicate primary keys, there no extra foreign keys.

View 2 Replies

App Runs Slow On Other Machines?

May 24, 2009

Basically i have designed an app that runs smoothly on my desktop PC (3GHz processor, 2GB RAM, Windows XP Media Centre (SP3)).

When i put the app on my laptop(1.4GHz processor, 448MB RAM, Windows XP Home Edition (SP2)) it runs really slow and is unusable.

I have tried deploying the app and also just copy the whole folder to my laptop and run the apps *.exe from the bin/debug folder, but it has the same results.

I have tested it on higher spec machines with 2GB RAM and they also replicate the slowness, so i'm at a loss as to why it behaves 100% on my desktop PC, where i have Visual Studio installed but not on any other machine.

My question is if little differences like operating system, RAM, service packs, VS installation, etc, make apps run differently on different machines.

View 4 Replies

Application Only Runs For A Few Hours

Mar 17, 2011

I have 2 applications, 1 that goes out and grabs data every minute and inserts or updates that data depending on a time interval into sql tables, the other 1 goes out at the top of every hour and grabs hourly data. Both of these applications run perfectly fine when they are compiled and published to run on my development PC, both do xml validation and check for duplicate data prior to any sql insert so I know it's not getting SQL exceptions.

When I move them to the Production Server the 1 minute application will work for a few hours and then freeze up and stop working.The hourly application half the time won't work at all.

I've made sure to include a local copy of the references when I compile/build and publish the application. I've made sure the Production Server is up to date with the latest .Net framework.

View 1 Replies

Application Runs Slow

Jul 22, 2009

I have designed an application just like it is an Excel table. By changing each textbox the application runs a huge amount of vb code and it takes time.

E.g. you want to enter a three digits number it takes from two to four and sometimes more seconds for ech digit to enter. That`s really embarrassing.

View 11 Replies

Code - Runs Too Slow ?

Jun 5, 2011

I've got a vb.net 2005 form that calls a stored proc to load a combobox with eligible sales reps. There are approximately 40k sales reps available...I know that's a lot, but that's what I'm dealing with. I'm trying to figure out why it's taking this form 15 seconds to load.

Here's my code:

Want to load this in the most efficient way possible given the HUGE amount of data that my client is wanting to see.

Can you help me? :confused:

View 1 Replies

Create App That Runs On Startup?

Apr 20, 2011

I want to create an application that once installed (this will be distributed software, so there is no point running code that injects stuff into the registry and creates the the auto startup stuff after the install) , runs on start up on windows for all users, and creates a system tray icon. The following is Visual Basic code that creates a registry key entry, is this the way to go?[code]...

View 4 Replies

Detecting When A New Process Runs?

Aug 10, 2011

How can i detect when a new process starts (Any process)?

View 13 Replies

Different Results On Subsequent Runs

Jan 6, 2012

I have made a program that minimizes a function of several variables. My question is why I keep getting diffrent results on subsequent runs? The inputs of all runs are same.

View 3 Replies

End A Process If It Runs More Then Like 10seconds?

Jan 31, 2009

i wanted to know how i can end a process if it runs more then like 10seconds. I am coding a tool that runs a Perl Script but if the Perl Script doesent work then it just hangs at 1 point so it doesent go further what i wanted to do is tell the Program to end the Process after 10 Seconds.

Dim proc As New Process
For Each names As String In lb_1.Items
With proc.StartInfo

[code]....

View 6 Replies

Have A Timer That Runs Ever Minute?

Nov 23, 2011

I have a timer that runs ever minute, but the timer waits the full minute to run the code in the timer. Can I have the timer run the code when it first starts, then update every minute?

View 3 Replies

Loop Only Runs With Msgbox?

Jun 13, 2012

I have what might just be the most retarded problem ever...the thing is, I have this loop, and it runs just fine(except for the boringness it is to run it) if I use Msgbox("whatever") after some of its lines. But it won't run otherwise...I guess it has to do with the time my local server takes to awnser, but I tried System.Threading.Thread.Sleep() up to 10000 and nothing worked...even tough it did on msgbox's which I went trough faster than those.I am building a very basic local program to test my website for vulnerabilities,a s you can probably figure by the code.Also, how can I clean Webbrowser1 cookie's?

Code:

Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim FILE_NAME As String = "C:\Users\Myname\Desktop\list.txt"
Dim TextLine As String

[code]....

View 1 Replies

Make A App That Runs At Startup?

Apr 18, 2010

i tried to make a app that runs at startup. So i tried with regestry (regedit) but you guys know vista...so it craches. Another thing i tried to do was: to copyfile, Application.Executablepath, (Too) c:..autostart.exe.Works! it succsesfully copied itself but when i open the copied program i just got errors..why canīt i copy "myself"?

View 17 Replies

New() Runs Twice Inside A UserControl?

Apr 6, 2010

I am putting together a simple multiple column listbox. I call it Gridbox.The intent is to make a lightweight grid control mainly for displaying lists with columns. Minimal cell access i supported.

I wrote it with an IntegralWidth as well as an IntegralHeight.Of course I cannot support the Integral Width if there isn't at least one column in the Columns collection when the control is initialized.

To this end I call a Column Add() method in the UserControl New() Event.
So that one Column will be present when the control is placed on a form.

For some reason the New() UserControl Event is firing twice. So I end up with two columns not one.

I was under the impression that New() only fired once when the control was intialized. Where would

I put the code that creates the desired column if not there?

View 11 Replies

No Code Runs After ExecuteReader()?

Aug 3, 2011

I am using Microsoft visual basic 2010. I am using the following code to connect to a local access database. After the line myReader = cmd.ExecuteReader () no code runs. I am not receiving an error message.

Dim connectionString
As String =
"Provider=Microsoft.ACE.OLEDB.12.0;data source=C:UsersmikeDocumentsFCE_Database.mdb"

[code]....

I have used this method to connect to the same database multiple times in the same program without a problem I've also tried using OleDb with the same result.

View 20 Replies

Program Runs In Background?

Jun 9, 2010

I got a problem here. How can I let the program run in background when I click the minimize button on the right up corner?While it is running in background, I also wish there will be a small icon shown in the system tray.

View 3 Replies

When Runs The Constructor Of A Webservice

Dec 17, 2009

I have a webservice that connects to a sql express 2005 database. I use tableadapters to fill my dataset in the constructor of my webservice.My question is, when is this happening? Only when the webservice is started, or everytime a new user connects?

View 1 Replies

Added 2 Textboxes On Form And Runs It

Jun 2, 2011

I added 2 textboxes on the form and runs it...I pressed the enter after I type in simple text.. it will not goto next textbox but tab can do.

View 7 Replies

Application That Runs Queries From An Oracle Db?

Dec 27, 2010

I have a problem related, not only to VB.net, but also Oracle.I have a simple application that runs queries from an Oracle db (Oracle 9i) and creates reports from it. I am using the official oracle.dataAccess component.I need a very simple report that returns a list of usernames. Something like "SELECT userName FROM users".(userName field is a VARCHAR2).Problem with this query:The top 50 rows are OK.All the remaining are strange characters.

[Code]...

View 4 Replies

ASP.NET Page_Load Runs Twice Due To Bitmap.Save

Jun 6, 2011

I have created an VB.NET page to record views for ads and will call page from img src.

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Dim insert_number As Integer = 0
Dim ad_id As Integer = 0

[Code].....

View 2 Replies

Copy Or Move .exe File When It Runs?

Apr 10, 2009

Copy or move .exe file when it runs

View 2 Replies

Data Is Discarded When Program Runs

Apr 21, 2010

1. When the program is running and if i save the data , it gets saved in the db. But when i close the program and again run it the data gets discarded

2. Say first i have saved the info about person 'A', and then When i Save then info of Person 'B', instead of the the details of B the details of A is getting duplicated[code]...

View 2 Replies

Get A Timer That Runs A Process Every 31.25 Milliseconds?

Mar 3, 2011

I'm in need of a timer that runs a process every 31.25 milliseconds. Thus, after 768 "ticks" have gone exactly 24 seconds.The control "Timer" that exists in Visual Studio does not accept decimal values.So I had to round the value of the range to 31 or 32. But this raises a problem since the end of the 768 ticks there is a difference of half a second or more. And I need to run the 768 ticks in exactly 24 seconds.I've been researching, and I read some things about the "High-Resolution Timer. " But I did not understand exactly how to use it, and how to set your interval to 31.25 mils, and do that every period of this interval to run the code.

View 1 Replies

Hide Taskbar When My Application Runs?

Apr 21, 2009

I want to hide the taskbar when my application runs, so i can get a full screen view of the application form. I have a code but it doesnt seem to work. It's for my project. I put the declarations in the global declarations part. Declare Functions also i put separately. The rest of the code i put in a button click.[code]...

View 4 Replies

How To Change Program So That It Runs Off Of All Drives

Apr 18, 2010

For some reason, I can only run my program at college where I created it. It runs off of E:/ (usb port) so when I take it home, it won't run as at home, my E:/ is a CD Drive. How can I change my program so that it runs off of all drives?

View 4 Replies

IDE :: Stand Alone EXE That Runs On Any Operating System

Feb 2, 2010

I did Build a program and copied only the EXE file to USB drive. Tried to run it on different computers. XP computers had no problem running it. The ME and Win98 could not run the program since the MSCOREE.DLL was missing. I need to install something on those computers to enable them but there are security issues and patches. Is there anyway to make my program standalone?

View 5 Replies

Label.TextChanged Runs On Startup?

Oct 23, 2011

I have a program that has a series of labels. By using Step Into I've determined that the code below activates when a label changes, however, the program is running on the label text that's pre-applied (in the label text form properties thing). I'd like the program to actually wait for a label to change due to input from the user.

Private Sub LblQ19_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LblQ19.Click _
, LblQ2.TextChanged, LblQ9.TextChanged, LblQ10.TextChanged _
, LblQ11.TextChanged, LblQ12.TextChanged, LblQ13.TextChanged, LblQ14.TextChanged, LblQ15.TextChanged, LblQ16.TextChanged, LblQ18.TextChanged

[code]....

This is a snippet of a larger program of course. fncSumQ Double.TryParses all of the Label.Texts, then loops through them summing += style. If I remove the text from LblQ18 then it moves to another. I'd like some place holders so that the user can see what's coming and if some information is missing.The only thing I can come up with at this point is to have a placeholder that would hide if the real label's value changed. Sounds convoluted.

View 6 Replies







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