Prevent From Collapsing The Application?
Jan 31, 2011
am importing the Excel sheet data into Textbox controls based Key Column(WONumber) from application folder where all Excel files resided.if i typed wrong WONumber(Un available file in Excefilesl folder) and clck on load application getting collpased, i wanted to prevent this and just through a message "WONumber is not presente in the Excelfile folder"
Syntax error (missing operator) in query expression 'Wono='.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more in
[code].....
View 3 Replies
ADVERTISEMENT
Feb 16, 2009
I have got a standard Windows Forms Treeview which contains some nodes.I am using NodeMouseDoubleClick event to get the node and then get the ID of the node and show a form containing data that belongs to the ID.What I am stuck at is when I double click any node, it Collapses or Expands depending on it's previous state. I want to Prevent TreeNode from Collapsing or Expanding when DoubleClicked but allow when user clicks that tiny "+" or "-" button in front of the node.
View 4 Replies
May 17, 2010
how to Collapsing and Expanding in VB NET Code
[Code]...
View 9 Replies
Jul 9, 2009
In Visual Studio C# (2008) ctl-M-L expand all the regions. There's also a setting in Text Editor->C# ->Advanced to not collapse during file open. I see no equivalents in VB.NET.Is there a way to expand all the regions, not just the one which has focus in VB.NET.
View 6 Replies
Mar 17, 2011
We have 2 apps that we display at once for data entry. 1 taking up the left side of the screen, and 1 taking up the right side.
1 of those apps is the data entry application. The other app is for viewing scanned info. But they can't talk to each other directly.
So I'm creating a tool that runs in the background to intercept certain keys.
I want to be able to capture keys such of Ctrl + Home, Ctrl + Page Up, etc from the data entry application, and send it to the scanned image to rotate it or zoom, etc.
I believe I can do most of it, except 1 part.
Right now if I did Ctrl + PageUp, it will send the key press to both apps. How do I prevent a keypress from the originating application?
View 4 Replies
Apr 10, 2012
I have the need to either prevent, or restrict, the termination of a VB.Net application. I have no problem with Admin killing the application, but not a user. I've been unable to come up with a solution for this. Is there maybe even a way to set local policy to prevent termination by non-admin?
View 2 Replies
Nov 23, 2011
I'm creating some software to keep my students on task. I've set it up so that I can control certain aspects of their computer from my computer. Problem is, I'm not sure how to control other applications from my application. I mostly just want to prevent it from being minimized. Some students like to switch screens quickly when I walk by. I would just like to make sure that it is always on top until I specify otherwise. I'm using VB.net, I'm using the 3.5 .net framework for compatibility reasons.
View 1 Replies
Feb 7, 2010
how do I prevent my users for more than one simultaneous login per account. I am using Vb.Net SQL.
View 2 Replies
Sep 17, 2010
I'm still learning Visual Basic and I'm creating a web browser with basic tab and new window support. My problem is that if new windows are created if the original form window is closed, both windows are closed and the program is quitted. This is to be expected but like any browser the program quits based on the last remaining window open. How would I do this in Visual Basic?
View 4 Replies
Aug 26, 2010
Any way to prevent my application from taking screen shot. I am using this method
If Clipboard.ContainsImage = True Then Clipboard.Clear()
If this is correct? And also what about screen capture application they take the screen shot without using clipboard what is logic behind it and if there is any way to resolve it?
View 13 Replies
Jan 12, 2012
I created a server-client application using the asynchronous socket. I found the problem when closing a socket on the server, applications so closed. The procedure that I do to close the socket server is:
Terminate the listening thread. Close the client socket is still connected to the server. Close the server socket.
How to prevent the application is closed, when I close the server socket?
Protected Friend Sub CloseServerSocket(ByVal IPAddress As IPAddress, ByVal socketPort As Integer)
' Terminate the listening thread.
[Code].....
View 1 Replies
Jan 16, 2012
How should I generate an Excel File with this rule?Should not be able to paste an invalid value to a validated cell from other worksheet.
View 1 Replies
Aug 24, 2009
Im going to make my application require a Serial key(No clue how this works). And how do i prevent jumping messages. My friend said that there most used for getting keys and avoiding key asking.
View 5 Replies
Dec 29, 2009
I know something like this exists, I juts don't know the right word to search about it, so basically I have a cosole application and if it runs twice it crashes. I wanna dispay a message: Sorry app alerady running.I can look at processes and see if my exe is there already running but that's much harder.
View 2 Replies
May 26, 2009
I have a GUI with a few button on it and each button start an application. I want to prevent the application to start twice if the user double click on the button. How can I do that?
View 7 Replies
Feb 10, 2011
I have to do one thing : developped a program in VB.netThis program will have two fonctions :The first : -Permit the client to log in the PC.The second :-Count how much time the client use the PC, end send the result to an other PC for proceeding at the payement.By this way, it's necessary to prevent the user to close my application. I can't disable the task manager, because it's very useful for the client when a game crash.I try to hide the process and I succeed, but I don't like this solution, I prefer that the client can see the process but can't close it (and it's very ugly, 'cause we see the process appears 1-2milliseconds in the task manager). So, I want to try an another solution : prevent the user to kill my application like the antivirus do (avira, for example), with a messagebox who said "Access Denied".
View 8 Replies
Aug 16, 2010
Does anybody know how I can prevent others from referencing and using my VB.NET dlls?Because when I create a dll then I can easily reference it to my project and use the code in it. So my main concern is that when I distribute my application others can use these dlls.
View 8 Replies
May 6, 2009
i coded a simple webbrowser and started surfing with it but i realise it doesnt prevent pop up advertisements.. how i prevent it?
View 1 Replies
Apr 19, 2009
Im wondering, whats the code for looking up and preventing a number from being submited into, say a textbox?
View 2 Replies
Jan 3, 2010
Currently I have to retrieve over 2000 records from DB and bind with combobox. and then follow with another 3 retrieving (less than 20 records)My problem is when I call this function, my GUI became freeze.I try to use Application.DoEvents() method but it still didn't work.I read some post and pages, they mention about BackGroundWorker and .Net 2.0.But what i use it MS 2003 with 1.1 so i think i can't access BackGroundWorker.
View 6 Replies
Jan 10, 2009
How can I prevent pop-ups while using WebBrowser1? If possible, I would like the url to open within the WebBrowser - not in a new internet explorer browser window.
View 3 Replies
May 6, 2009
I have an client.exe, through contextmenu in windows explorer i run this client.exe. is working fine. How to prevent , if user clicks same client.exe while its already runs.
View 5 Replies
Nov 25, 2009
I've been contracted to analyze an existing Data Provider and I know the following code is faulty; but in order to point out how bad it is, I need to prove that it's susceptible to SQL injection.
Question What "Key" parameter could break the PrepareString function and allow me to execute a DROP statement?
[Code]...
View 7 Replies
Mar 25, 2009
I have a textbox to which text is continuously appended (every second new status data at the end).I would like to act it as follows:- When the cursor is positioned at the end: Stay at the end, scroll the textbox (text disappearing at the top).- When the cursor is positioned somewhere else (not at the end): Stay exactly there, don't move the cursor, don't scroll, don't change the top line of the textbox.This seems to be surprisingly difficult (tried quite several ways).This is how far i came:
Private Sub addToTextBox(ByVal daStrg As String)
Dim posAtEnd As Boolean, selPos As Long, selLng As Long
If myTextBoxForm.txBox.SelectionStart = myTextBoxForm.txBox.TextLength Then
[code].....
View 5 Replies
Feb 1, 2010
The '&' in the text gets escaped and gets converted to & when creating the xml file using XmlTextWriter but i dont want the conversion to take place how to prevent it?
Is there any other way besides using WriteRaw func of xmltextwriter?
View 3 Replies
Feb 2, 2010
You developing a application named "DemoSoft" which is going to be a shareware or Premium, you use different DLL's in this project and some DLL's are owned by you, they are very useful and valuable, you are selling this software and are charging the customer for what the software does but since this software uses one of your Valuable DLL, actually few functions from it you have to deploy it and cannot additionally charge for the whole dll. since that would be unwize.now i want to ask what can you do so that This DLL in "DemoSoft" cannot be exploited, meaning end user could use my software but if some thief tries to use my supplied DLL in one of his own app he is unable to do it, in simple terms DLL should work only and only with DemoSoft.
View 5 Replies
Dec 29, 2009
How can you detect when the registry is changed? Furthermore, how can you prevent changes to the system registry? I want to create a security tool, but can't seem to find this anywhere.This is in vb.net.I know the registry is stored as files on your computer somewhere, but I have no clue where it is stored, though I could probably use a FileSystemWatcher component to check it.Then, for prevention, would simply duplicating the registry files and rolling back the changes work?
View 1 Replies
Mar 20, 2012
We know a tolower function will turn all A to a How to turn all à to a.The purpose is I am creating ids for databases and id need to be unique. Sometimes the same stores are written as à in one place and as a on other places. This will create duplicate id problem.So I need a function that will turn all à and all of it's variation into a. The same way ě should become e.
Basically I would use utf8_unicode collation on my databases. Letters that count as the same letter under that collation should map to the same character under this function.I need to make sure that all other east asian characers are not affected in anyway.
View 1 Replies
Apr 26, 2011
I want to prevent from resize of form. I set false MaximizeBox and I set FormBorderStyle to FixedSingle. I couldn't change the MaximumSize of form at runtime. If the user double click on the Tiltebar of the form the form resized. I couldn't prevent that
Then I write the following code at size changed event
If FormLoaded Then
Me.MaximizeBox = True
Me.WindowState = FormWindowState.Maximized
Me.StartPosition = FormStartPosition.WindowsDefaultLocation
Me.Size = InitialSize
Me.MaximizeBox = False
End If
View 8 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