How To Detect If User Enter Repeating Sentences

Jan 26, 2010

The user can enter text into the system but I want to detect if the previous string entered is the same as the next string entered. if it is an error message or something will appear.

View 4 Replies


ADVERTISEMENT

Repeating Two Popup Input Boxes Until User Press Cancel?

Dec 2, 2010

Is there a way to repeat two popup input boxes (in succession) until the user presses cancel?
Dim hours As Integer
Dim letterGrade As String
Do
hours = InputBox("Total credit hours", "Total credit hours", )
letterGrade = InputBox("Letter Grade", "Letter Grade", )
Loop
The input boxes continue to repeat but when I hit cancel nothing happens... I'm sure I'm missing something to tell it when I cancel to go back to the MainForm I just don't know what it is.....

View 7 Replies

Asp.net - Detect What Domain User Group A Windows User Is In?

Sep 10, 2009

I know that using Dim currUser As String = Request.ServerVariables("LOGON_USER") retunrs the DomainUsername, but I want to know what Group that user is in say in Active Directory.

View 2 Replies

Detect If Press Enter In The Textbox Change Event And Not In Textbox Keypress?

Dec 13, 2011

how can I detect if press Enter in the Textbox Change event and not in Textbox Keypress?

View 3 Replies

How To Have User Enter In 3 Different Integers

Feb 9, 2011

How do you ask the user to enter in 3 different integers?

View 17 Replies

User Must Enter A Number Between 1 And 100?

Sep 26, 2009

How do I make it that the user must enter a number between 1 and 100? And If they dont they get an OK messagebox stating that they must do.I imagine it'll be something like this:

If TextBox1.Text = "" Then
MessageBox.Show("You must enter a value between 1 and 100", "Name Entry Error", _
MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
End If

But Im not sure whats suppose to go inbetween the speech marks.

View 4 Replies

.net - Detect What OS The User Is Running?

Jul 22, 2010

I am using VB .Net 2.0. I know I can detect the OS using

System.Environment.OSVersion

Can anyone tell me if there's a list somewhere where I can find what that generates for different OS versions.

Specifically I am trying to detect if a user is running Windows 7 64-bit.

View 4 Replies

C# - Detect If User Is In A Group?

May 22, 2009

How do I detect if an arbitrary user is an administrator on a machine? I have the user's domain and username but not password. The user is NOT the currently logged in user,so I can't just use WindowsIdentity.GetCurrent.

View 3 Replies

Detect If The User Is Currently Online?

Dec 22, 2011

I have an application that when it starts, it checks the internet to see if a new version is available. My problem is this: If there is no net connection, the program 'pauses' as it tries to check for the new version.

Is there a function that I can use to detect if the user is currently online, with a working connection?

View 9 Replies

Detect If User Presses F Key?

Feb 17, 2011

I'm trying to work out how to detect if the user has pressed an f key I have this so far:

Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress
Label1.Text = e.KeyChar
End Sub

This detects when the user presses a character key and outputs it via Label1.text, but it doesnt work on all keys?

View 6 Replies

Detect User Country From IP?

Mar 24, 2009

Dim hostname As IPHostEntry = Dns.GetHostEntry(TextBoxIP.Text)
Dim ip As IPAddress() = hostname.AddressList
TextBoxIP.Text = ip(0).ToString()

I have a windows form with the code above to get the ip address of the user. what would be the easiest way to get the country location of the user? based on the IP in the textbox. The solution doesnt need to be 100% accurate but good enough to work most of the time. the simpler the better.is there are any work arounds or built in fuctions for pulling a users country or language, this would be better than creating or managing a giant database.

View 3 Replies

Allow A User To Enter Html Comments?

Nov 12, 2011

Using MVC, EF 4.2. I am working on an application that has a comment section. Right now if a user enters a comment that contains HTML e.g.<b>text</b>and hits submit i get the message "A ptentially dangerous Request.Form value was detected..."How do i handle html on the way into the db? Should I just strip the html? Or encode it? I tried server.htmlencode the text but i still had the same error message.

View 4 Replies

Allow User To Enter Only Numbers In A Textbox?

Aug 5, 2010

How can I prevent the user to enter characters but only numbers and '.' in a textbox in vb.net 2005?

View 4 Replies

Allows The User To Enter The Island Choise ?

Jan 15, 2012

My textbook mentions nothing of it except for the example where me is in the code.'This event handler allows the user to enter the island choise 'and then calls subprocedures to place the island activites in the list.

Dim intIslandChoise As Integer
intIslandChoise = Me.cboIsland.SelectedIndex
lstTours.Items.Clear()[code].....

View 2 Replies

In Percentage, Should Expect The User To Enter 4 For 4%?

May 24, 2010

If we format a value for percent "{0:#%}" then it will become 400%, and this also applies to all the 3rd party controls I've tried. I've used custom format as a workaround for this but perhaps you guys could enlighten me on this one. If a user inputted 4 for example then did the user intended 4% or 400%? If it were me that I would expect the 4 to be 4% rather than 400%.

View 11 Replies

User Only Enter Text Value In Texbox

Jun 5, 2009

i want the user only enter text value in texbox. I use this code to do but it gives me a error.

[Code]...

View 10 Replies

User To Enter Up To Five Passwords At One Time?

Oct 26, 2011

I need to write a program allowing the user to enter up to five passwords at one time. I have the textboxes set the way I need. When the user presses the button, the code should check every password they ve entered, and flag any passwords that are invalid. A valid password includes the following:

At least 6 and not more than 15 characters
At least one uppercase alpha character
At least one lowercase alpha character
At least one numeric character

I'm a little confused about how to check each character of the entered passwords for these conditions.Because it must include alpha characters, I believe I have to do something with ASC and CHAR variables. This is my first post and I need to have this done within a few hours, haha. Help would be awesome.

View 3 Replies

Detect If User Has Admin Privileges?

Jan 31, 2010

I found that snippet, edited it a little bit and now im trying to use it...the problem that ocurres, is that its never going into the first IF... so already there seems to be an error.Im working on XP SP3 with admin privileges..

Private Shared Function GetCurrentPrivileges() As Privileges
If My.User.IsAuthenticated() Then
If My.User.IsInRole(ApplicationServices.BuiltInRole.Administrator) Then

[code]......

View 7 Replies

Detect If User Requested Shutdown

Feb 5, 2010

is there a way to detect if the user is shuting down?

View 1 Replies

Detect User Choice During Run Time?

Sep 10, 2010

No doubt a simple question, but I'm a beginner (I learnt GW BritingASIC in 3 months long ago - but after 6 months grappling with vb 2008 I am still bewidered).

I have written a program that asks the user at run time to choose 1 of 40 buttons. These are themselves defined at run time. Whichever button is chosen the same algoritm will run (using different data). Question: To save writing the same Button_Click routine 40 times, what code should I write - and where in the program - to detect which of the 40 the user has chosen?

View 2 Replies

Detect User Log On From A Windows Service

Jan 28, 2011

Is there for my .Net application to detect if a user has logged on? It is a Windows Service, so it will be running before logon.What I want to do is display a "popup" when a user logs on to tell them the status of the application

View 2 Replies

Detect Whenever User Clicks The Mouse?

Jun 8, 2009

I need to detect whenever user clicks the mouse, no matter what form is selected at the given time.

I know that detected keypresses globally can be done through a Keyboard hook so I assume that i am going to need some sort of Mouse Hook.

View 3 Replies

How To Detect If User Browsing Certain Webpage

Mar 12, 2007

How would I go about having my program monitor all open (or at least the current active) Internet Explorer windows and their current URLs? Basically, I want my program (running in system tray) to monitor the web page that is being viewed in an Internet Explorer window (NOT an integrated web browser control), and if it detects the loading of a specific URL address, execute whatever code.

View 6 Replies

VS 2008 Detect User Idle?

Mar 30, 2010

Adding How would you detect if the user is using the computer? I want a program to detect if the user is using the computer (i.e. mouse and keyboard movements), and if the user doesn't type or move the mouse for a specific amount of time, it executes a command. Normally I would do this with the Application.Idle, but I want it to be detected throughout the system. Any starters?

View 22 Replies

Add A New Row At The End Of An Array Every-time User Enter The Data?

Nov 16, 2009

I dont know how many times user want to enter data .i want to add a new row at the end of arrray everytime user enter the data.

Dim vNames(-1) As String
For vIndex = 0 To vNames.Length - 1
vNames(vIndex) = InputBox("Enter a Name")

[code]....

View 1 Replies

Allow The User To Add Rows And Enter Data Into The Grid?

Mar 17, 2010

I have a DatagridView control. I have 4 columns. What I want to do is allow the user to add rows and enter data into the grid and then click a button and save the data in the Gridview to a table. I can't find any information on how to do this

View 4 Replies

Check If The User Enter Alphabet In Textbox?

Sep 25, 2010

how to check if the user enter alphabet in textbox the only allow in that textbox is number

i think i will use ascii there like in vb 6.. but i dont know how to done in VB 2008..?

View 5 Replies

Create A Program Which Will Allow The User Enter Ten Numbers?

Nov 5, 2009

5. Create a program which will allow the user enter ten numbers. The program is to count how many numbers were above 50?

View 1 Replies

Determine What Characters The User Can Enter Into The Control?

Mar 2, 2010

In reading various answers regarding "masked TextBox Control, am I to assume that the masked textBox control uses a mask to determine what characters the user can enter into the control?

View 1 Replies

Maskedtextbox On The New Form Won't Allow The User To Enter Any Text?

Jun 22, 2010

When I use this code to open a new form, My maskedtextbox on the new form can't allow the user user t enter any text. This has slowed me down a bit.

Dim F2 As New FrmStudentRegistration()
F2.TopLevel = False
Controls.Add(F2)
F2.Show()

View 1 Replies







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