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
I have this code and it is not working correctly. Note: The code must check the if the data is valid every time the user enters a new datai have 2 columns in my table
Code: Private Sub Table_CellValidated(ByVal sender As Object, ByVal e As Telerik.WinControls.UI.CellValidatedEventArgs) Handles Table.CellValidated
I've got this problem. I have no clue how to prevent a duplicate from being entered in a combo box in VB2008. The information that is to be compared to is in a text file. What I have now works, but I have left out the prevent duplicate part.
i want to prevent user from adding same data on my database... (using access as database)
let say i have 5 fields on my database... ID, Name, address, contact, email... binded to textboxes... idTextbox, nameTextbox, addressTextbox, contactTextbox, emailTextbox.
if the user add a data.... and clicks the save button (saveButton) a messagebox will show a message saying that the data he/she entered already exist..
the messagebox will only show if the user entered a data with the same Name.
i'm working on a voting system but im having problems in adding records... i have two a primary key, the idnumber and the address. the address is where I base if that certain address already voted. but the problem is everytime i try to add a record with the same address (ex. Block 1 lot 4), the data is duplicated which is not output i want. the program should detect that there is already an existing address.
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.
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!
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.
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.
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()
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.
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]...
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
Private Sub lv_main_ItemCheck(ByVal sender As Object, ByVal e As System.Windows.Forms.ItemCheckEventArgs) Handles lv_main.ItemCheck e.NewValue = e.CurrentValue
i want to prevent users from entering numbers and other characters such as (_,"*&^$#).... into my textbox-u know what i mean! I want my textbox to accept only alphabets. I have written a function that is able to check the numbers but i don't know how to check whether the text contains those special characters. Here is my code for the numbers. i'm sure, just as i'm able to check the numbers. i'll be able to check for those characters.
Public Function ValidateText(ByVal GetString As String) As Boolean Dim Count As Integer = GetString.Length Dim i As Integer
I am using a database (access) were i am not using a primary key field. I would like to prevent the user from entering records , if certain fields allready exsists.
I would like to check for 3 of the fields. When these 3 fields has been filled previously with the same data as the new data, i want to return a message.
I am looking at the fields txtWeeknumber.text & txtTopic.text & txtSubOutCome.text
I am trying use barcode for input but prevent user to modify the barcode they scan, user are not allow to input the barcode number by keyboard. i am using vs 2010 vb.net
I have read through some of the other posts and I think what I want to do is slightly different. I have a combo box in VB ExpEd2010 that I want to allow the user to only select from the drop down list. However, I want to be able to set the value in the combo box to something that is not in the list. So the drop down list will have values 1, 2, 3 but I want to be able to write to the same combo box a value of 2.4, 1.2, etc.
Is there a way to prevent a user from entering data into a ComboBox, rather then selecting, or can anyone suggest a routine to catch and prevent entries so the user can be made aware the they are not acceptable?
my settings work, they work great to be exact. But theres a problem, if the user renames the executable to something else, all the settings are lost. Are there anyways to prevent the settings from being lost after the user renames the executable? I'm using My.Settings?
I am trying to prevent the User from proceeding if a specific text box is empty. All of the following lines of code SEEM TO work:
If txtTitle.text = "" Then..... If txtTitle.Text = Nothing Then..... If txtTitle.text = Nothing Then..... (followed by a message box advising of the need for input)
The problem is, if the User enters a space (either accidentally or intentionally) all three of the above recognize the space as a valid entry.
I have created a series of custom user controls for a wizard interface that I am making. Each user control represents one step in the wizard and really shouldn't be used outside of the wizard. The thing that is bugging me is that each wizard step user control shows up in the toolbox of components to insert into a form.
Is it possible to hide a user control from the toolbox? Better yet is it possible to hide a user control from other classes not in the same namespace of an assembly? Is this a good approach or should I think of a different approach?
what is code i should use if i want to prevent user not to leave empty word in text box after user click save button.Oh ya, i am using visual studio 2005, databse sql 2005 .Here is my code
Private Sub btnregister_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnregister.Click If MsgBox(" Are You Confirm", MsgBoxStyle.YesNo) = vbYes Then
i want to create an exe in vb.net by packaging few perl files along with it. when i am packaging those files i am able to hide those files by making the hide option true. but if the 'show hidden files' is selected those files will be visible. I want to lock/prevent the user from opening the perl file/code. want to know if there is any way to do it.
I have a VB.NET 2010 Forms Application which includes a form with a textbox, and two buttons which I call from the main form using .ShowDialog
I've messed with something such that I can no longer prevent the dialog from closing when the user clicks the Ok button but has entered invalid information.
Here is the handler for the OK button's click event:
Private Sub cmdOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdOK.Click If SomethingIsWrongWithWhatTheUserEntered Then