Prevent Program From Loading Twice?
Jan 20, 2010
I have a VB.NET program. In proerties/Application I checked Make a Single Instance Application. But it still allows someone from opening the program while already opened. How can I prevent this?
View 3 Replies
ADVERTISEMENT
Sep 7, 2011
I am using VB.Net and VS 2008 to develop my web app. When I launch the app, pretty much all the pages get loaded (by that I mean the page_load event is triggered). This happens even for pages that I created. When this happens, the app throws some errors (if a particular value has not been loaded from the database) and thus results in javascript errors (yellow icon at the bottom of IE). How can I figure out "what" is causing the pages to load, and how can I prevent the pages from being loaded without code-prompting.
View 1 Replies
Mar 3, 2012
I have a form contains NumericUpDown1, TextBox1, TextBox2, at design time i set NumericUpDown1.Value to 4 and TextBox2.Text to 100, and i have this sub[code]...
View 13 Replies
Mar 23, 2010
I coded this program. It has three forms, when I try to open the [Design] on one of the forms it give me this error: To prevent possible data loss before loading the designer, the following errors must be resolved:
[Code]...
View 12 Replies
Aug 13, 2009
Prevent an empty column in Excel to be loaded into a dataset column?
View 3 Replies
Mar 11, 2010
Assume a .NET class library code that, for example, writes to the Windows registry. Then this code has problem to run over internet, because default Internet policy does not give access to write to the registry.By adding a RequestMinimum statement in the assembly we can specify that the code requires permission to write to write to the registry. This will not alter the fact that the code does not have the permission, but will stop the assembly from loading; the runtime will throw a System.Security.Policy.PolicyException and identify the permission that is required.Do you now any other examples of using evidence, security policy and permissions (the key elements of code-access security) to prevent an assembly from loading on a web server?
View 1 Replies
Jun 14, 2010
Is there a way to turn off all visual updates to a .NET form while I am manipulating it? When my program first loads, for example, I set the tab control to the tab that was last open. The user can see the program switching tabs.
I have looked into SuspendLayout and ResumeLayout, but either I don't understand what they are doing, or I am not using them correctly, because they don't seem to have any effect. Someone told me that there used to be a way to turn off paint events in VB 6. Does this still exist in .NET?
View 3 Replies
Apr 8, 2010
I have a small problem with my application. When the system starts up, the program starts with it, but runs hidden (registry key with paremeter). The program also has a GUI.I want it so that when the user clicks the desktop icon, it does not start a second instance of the executable, but instead reveals the currently running background process. Is that possible?i.e. when the application is started with the "-startup" paremeter, it loads a hidden form2, and closes form1. When the desktop icon is clicked, it loads form1, while form2 remains hidden.
View 4 Replies
Oct 24, 2011
i got 2 program here...exe and B.exe.. B.exe is external program.. how can i run my program just once at same time? all start from .exe.. if .exe running twice, a messagebox appear ".exe already running".. if .exe detect B.exe was running, a messeagebox appear "B.exe already running".. i'm using Visual Basic.NET..
View 2 Replies
Aug 8, 2011
i want to be able to prevent an application from downloading. For example Utorrent. I have seen applications that can do this but never been able to integrate it in my own application. Also i have tried blocking the application's allowed ports in my windows firewall
View 1 Replies
Jul 6, 2010
How can i prevent from closing a program even with the task maneger?
View 39 Replies
Apr 15, 2009
I'm using Visual Basic 2008 Express Edition. When I have my personal program open, I don't want another instance of it to open. I would like it to detect if the program is already open and if it is, it won't open another.
View 4 Replies
Nov 5, 2010
I'm working on a program that requires the user to input an integer. How do I prevent the user from entering a non-numeric value? I tried using the IsNumeric() function but I get an error before I can use it. I get the error at the console.read, before I can call the IsNumeric() function. [code]...
View 5 Replies
Apr 16, 2009
I want to make it so my VB program can be registered to be used with only one computer & possibly be registered online.
(Yes i searched the site but i saw no useful program registering guides that i uderstood and worked with the newest version of Visual Basic .NET)
View 35 Replies
Apr 28, 2011
my program freezes untill the loading has finished.Is this normal? And if it is then how can I prevent my program from not allowing me to go back to the other form untill the loading has completed?I'm using this url as a start up page for my custom browser;so can I prevent my program from freezing or not ?It looks as if my custom browser form keeps demanding focu
View 5 Replies
Mar 22, 2009
How do I prevent the user from resizing my program during run-time? I know how to disable the max and min buttons at the top, but I can still click the edge and drag it to resize my program. I want to be able to disable this feature so my program stays the same size the whole time.
View 2 Replies
Jun 26, 2009
I've been trying to open a program called 'DET 3' which is designed by the Honduran government and helps us pay taxes for the government. I've been getting this error message when I try to open the program "Component 'Mscomctl.ocx' or one of its dependencies not correctly registered: a file is missing or invalid" I need this program to work so I can pay my taxes before July 10th.
View 8 Replies
Nov 17, 2009
I have built and deployed an application in VB2008. If I start the program from the start menu a new session will start and there 'll be multiple sessions of the same programming running. I dont want this behaviour! I want the program to start only when no other session of the same program is running. How can I do that in VB2008?
View 9 Replies
Feb 12, 2010
How i can prevent the operation of more than one copy of the program at the same time.
View 9 Replies
Mar 9, 2011
My program becomes unresponsive when I download Data using WebClient.OpenRead(). What can I do to prevent the program from freezing while downloading the Data?
View 5 Replies
May 25, 2010
How can I prevent my Vb program from showing up on the task manager and in the process tab in task manager?
View 5 Replies
Apr 18, 2012
How can I prevent debuggers from accessing my program?
View 2 Replies
Mar 24, 2012
i created a windows blocker to prevent users access, and only give access to the computer for a certain time if they pay....In the block state taskmgr can not be accessed also no other method can close the blocker. but once the computer is unblocked for use it become vulnerable only to the taskmgr since i have to give access to the taskmgr when the program is not blocking access. Is there anyway to prevent my program from being KILLed in the taskmgr or is there a way to restart the blocker if the user KILLs the program?
View 14 Replies
Nov 18, 2011
I am Matthew and I'm extremely new to coding and any sort of scripting language; yet I am highly interested in programming and want to learn lots about this subject. So to start myself off I am trying to create some applications which I could use in day-to-day life to just basically make life easier.So the first program I am trying to make I am already confused and not sure what the heck I have to do in order to get it functioning, I've looked on lots of videos on you tube for tutorials and they have all done a great job but some videos just don't answer my questions.When I click a button and "Form2.Show()" appears, how can I make it so that when I type text in a list box in form2, it doesn't disappear when I close it? Then once I have known done that, how can I make it so I can choose a random string of text in the list box on form2 to show up on the click of a button on form1? Then a final question is, How do I prevent fields being reset in form1 & form2 on program close? Also, is it ok for me to make a thread asking 1 simple question? or do I have to ask a handful each time to save threads or something?
View 30 Replies
Feb 13, 2012
I have an idea and can code, if someone can get me moving in the right direction. What I have in mind is running a program when it is loaded. No Start buttons or clicking. Just running when it loads. I have looked on the Internet and in books I have purchased, but am unable to ascertain the command or code to run a program when it loads.
View 5 Replies
Apr 4, 2011
Title pretty much says it all. Does anyone know a way to to prevent a computer from entering a low/non-processing mode while the program is running? I don't care about monitor modes, screen-savers, hard-drive spindown, etc (in fact, I'd prefer to leave those alone; I like it that it shuts the monitor off after a time period).Basically, I have an industrial program that needs to continually monitor a PCI card it uses for IO; and this activity alone isn't enough to convince Windows not to go into Sleep mode. We normally just shut the power-save features off, but we had an incident where a technician forgot, a customer's machine went to Sleep after the end of the shift, the pumps stopped recirculating, yadda-yadda big mess.
View 6 Replies
Mar 10, 2011
I want to learn the code to load multiple accounts in to the program in the format "username:password" and have them auto sign in.
View 3 Replies
Feb 24, 2011
So I have a bookmark function setup, and this is another functions that loads the appropriate website icon to the listview option that it goes with.
Public Sub getBookPic()
On Error Resume Next
Form2.ImageList1.Images.Clear()
[code].....
View 21 Replies
Jan 28, 2009
I wanted to know how and if it is possible to make a button that would tell the app to shut down the computer and then load a program from startup like knoppix or something.
View 2 Replies
Apr 11, 2011
im using visual basic 2008 and a made a fully functional webbrowser useing the control. i have a huge list of ad servers and every different one is separated by an enter. i need a way for the program to read the file and block ads from loading.
View 1 Replies