How To Prevent User From Resizing Program During Run-time
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
ADVERTISEMENT
Mar 15, 2012
I have developed an application in VB.NET. It has 20 forms. All 20 can be opened from a menu strip control. The user should be able to open only one form at a time. How might
View 3 Replies
Jul 1, 2010
I have a program that allows a user to select a program to run at a certain time for a specific amount of time all choosen by the user. Everything works with the exception of if my program has launched the other program, my program become non-responsive. Meaning I am not able to look at that window again. Not that one really needs too, because when time is up my program closes the program it opened, then closes itself. I just want to be able to see my program when the other program is running. how to do this and perhaps drop me some links, that would be wonderful. This is what I have coded, but like I stated there are no code errors.
[Code]...
View 5 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
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
Jul 18, 2009
My typical application has a couple of textboxes, checkbuttons, radiobuttons, and so. I always want to load the settings the user used the last time when the program starts, and also want to save the settings as the users clicks "Save settings" or closes the application. When the user attempts to save the settings, I'll have to check each of the controls for input errors (sometimes they have to have a max length, other times only caps, other times other things, there isn't a rule for them all, everytime it'll be different), and only if everything OK i'll let him save the options. If there is something wrong, no option is saved and my error-control provider will pop up a description of the input type info that should be put in that control.
I've been designing this from scratch for all my projects, but it's being a pain to do it. So I'd thought maybe now was the time to do some library to help me. I thought initially that maybe it'd be a good idea to have all the controls on my form that are going to be part of this save/load process to have an attribute associated with them, something like this [Code]
View 2 Replies
Jun 29, 2012
I have following code to resize the form at run-time but it does not work. Form size remains same. What could be the possible reason?
frmErrMsg.btnNo_Err.Visible = True
frmErrMsg.btnOK_Err.Text = "Yes"
frmErrMsg.Height = 800
[Code].....
View 2 Replies
Aug 21, 2011
I want to work on a project I have in mind and this envolves saving data which would need to be updated every time the user exits the program. I suppose I need to know how to save a file to a blank text document, and how to get the application to read the information when it is called for. I believe I need to set delimiters or such, the helpfile is useful, but limited and some information is not listed at all.
View 7 Replies
Feb 25, 2010
i want the user to login, and the first thing is, having the text document for that(if theres a safer way to do it, let me know) then it goes to the weekly sales page, but theres also the goals for the sales, which rarely change, but if they do i would like them to be able to change them, then next page is the list of the workers, and if they need to i would like them to be able to add workers. so my question is: is there anyway that maybe i could save both the goals, and the workers in the text document, and when they need to change it/add workers it will save it in the text document and the next time they sign in the changes will be permanent? also is there a way to delete the user once they have been created, other than going into the txt document and deleting it.
View 2 Replies
Feb 18, 2012
I am creating a program for which will calculate the time taken for a user to make a number keystrokes. I want to start the timer running from the beginning of the first key stroke and end on the final keystroke. Each keystroke has been linked to a label which will change colour according to whether the key has been pressed. When the keystrokes have been finished I want to save this timespan in a field in a database. To test that the timer is running I have made a messagebox which will show the time taken however it is constantly showing zero and the label for the final keystroke is remaining in the keydown colour.
Public Class Form1
Dim dteStart, dteFinish As Date
Dim span As TimeSpan
[code]....
View 19 Replies
Feb 1, 2010
I've got a VB.Net form application that dynamically loads user controls based on which navigation link the user clicks on. I'd like to make it easier to use at Design time by putting a link of some sort to open the User Control at design time. The link would go onto the form in the space where the User Control will be going. This just saves a little time from having to browse through the files to open the correct file.
View 2 Replies
May 12, 2009
I'm currently in VB class at my highschool and we just got chapter 6.1 to read on this online textbook that we follow. Anyway, we are doing loops now and the problem reads "Write a program to request positive numbers one at a time from the user in an input dialog box. The user should be instructed to enter -1 after all the positive numbers have been supplied. At that time, the program should display the sum of the numbers." So far I know this much
[Code]...
Now I know this isn't right But I can't find out how I'd pull out the numbers the user entered to get the sum of them and not include -1 because as it stands, when I hit ENTER with -1 the label just shows -1.
View 22 Replies
Nov 22, 2010
I am trying to make a blackjack program and I need to execute a different piece of code each time a button is pressed by the user.
View 5 Replies
Sep 6, 2009
I have an ASP.NET application with a SQL Server back end. I am storing all my dates in UTC format and doing the appropriate conversions to the local time zone of the browser viewing it. One of the pages asks for a start date and end date (no times).
I am taking the start date and setting the time to 00:00:00 hours (midnight) and I'm taking the End time and adding a time of 23:59:59, so that the date range covers the whole day. Now what I'm trying to do is do a SQL query to do a search for records in this date range. The problem is, the data in SQL is in UTC time and the user is typing their dates and times in their local date and times. My quickest solution was to convert the date and time to UTC, then search the records. However, by doing this, I am to believe ASP.NET converts the given time and date to UTC based on the server time zone. How can I convert a date and time to UTC time based on the time zone of the user?
View 5 Replies
Jul 28, 2009
I have a windows form that has custom alpha blended controls and a Graphical User Interface. One of my users has a larger system display enabled (125%) and the application expands by 25%. Is it possible to stop this happening and have the application stay at the normal size that I developed it at?
View 3 Replies
May 28, 2011
I have a TreeView object on my form, with check boxes. By the way, I'm working with vb.NET. I want it to perform a few different things with the aftercheck event:
If you check a node, check all its children
If you uncheck a node, uncheck the parent node
If you uncheck a node, uncheck all its children
The problem is when you uncheck a node, it unchecks its parent node, which triggers the event again and unchecks all its children.
Would there be a way to prevent the event from triggering a second time? Or will I have to give up on one of those two points?
Here's the code, if it helps any:
If e.Node.Level > 0 Then
If e.Node.Checked = False Then
If e.Node.Parent.Checked = True Then
[code]....
While I'm at it, is there a way to check if a folder is accessible? I've toyed with FileAttributes, but can't seem to find out how to make it work...
View 2 Replies
Sep 26, 2011
How can i do this ... by the propper way i mean so that the grippers don't even display - like they do with an auto-sized label, or a non-multiline textbox.
View 4 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
Jul 15, 2011
I have written a program in VB 2010 that dumps documentation info into an Excel file. Basically, the Excel file is a log file that keeps track of revisions for design drawings at an engineering firm.
There are approximately 20 people that have access to this program. However, I've run into issues where multiple users may be using the program and trying to send info to the Excel file at the same time. The Excel file is set to read only. My program opens the file with write access, and dumps the info into the appropriate cells, then closes the file. If one person is in the process of using the program, it causes an error with another persons system if they try to use it at the same time.
In some cases, it causes my program to crash, and it leaves the Excel file open on someones system.
Typically, my program would only have the Excel file open for a couple seconds. So, the issues mentioned above are rare, but they do happen.
I'm looking for ideas to prevent this issue from occuring.
View 7 Replies
Nov 12, 2011
I'm writing a program on CD Collection. My problem is write a code that prevents a user to enter a CD collection name that is already stored in the filename.txt.
The rest of my program is okay, but the only problem is something do with btnAdd control.
Here's my whole program:
Option Explicit On
Option Strict On
Option Infer Off
[Code].....
View 14 Replies
Jul 13, 2009
i have a form that needs to be maximized in vb.net. i dont want the user to be able to change its size or move it around.
View 5 Replies
Oct 29, 2011
I am writing an application that needs to be running all the time and I don't want the user to be able to close it. I don't want to hide the process from Task Manager. All I need is that when the user tries to terminate the process, he has to enter a password.
View 9 Replies
Jan 7, 2009
I have the following settings:
ControlBox : False
WindowState: Maximized
Because I want the user to have a full screen application that they cannot close without using my Exit menu. The problem is, they can simply grab the title bar of the form and drag it, exposing the desktop!
View 3 Replies
Apr 29, 2010
I have a Textbox in which the user types in a name for a folder to be created. However, Windows does not allow the followin chars:
[Code]...
View 12 Replies
May 27, 2009
i want prevent user order column.i have a datagridview , it has allowuserordercolumns properties and it is set to false. But i didnt see so. i still order column.how can i prevent user ordering column.
View 6 Replies
Sep 20, 2010
can FileSystemWatcher prevent the user to delete a file ?
View 3 Replies
Jun 9, 2011
How can I prevent a single user from logging in to my asp.net website from more than one computer at the same time?I have tried using the application server side state managenment but it is not work properly.
View 1 Replies
Sep 11, 2011
what is code that prevent user to given number less than 8 in the text box. If the user give less then 8 number then message box box will appear which show Minimum Number is 8. Here is my code
Private Sub btnregister_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnregister.Click
If TELEPHONETextBox.Text.Trim.Length = 0 Then
MsgBox("Please Enter Phone Number", MsgBoxStyle.Question)
Me.TELEPHONETextBox.Focus()
[code].....
View 2 Replies
May 5, 2010
Preferably without turning the "Enabled" property to false, because I still need to output text from it.
I made a custom control in which there is a textbox but I want it used only as an output control, for showing text and stuff. Problem is that as soon as my form opens up the focus is turned to the textbox and I cannot catch my keyboard events on the form anymore(since the other controls are pictureboxes). I need a way to make this box "unclickable" or any way in which it is impossible to attribute the focus.[url]...
View 4 Replies
Feb 10, 2012
How do I prevent users from a inserting a duplicate value using SQL Query
datatype is VarChar(50)
e.g. the name field has already been defined as "Josh", I don't want it to be able to add another "Josh"
View 1 Replies