login about faq

To prove you're not a spammer, email newuser.lgqa@gmail.com with the subject "Account Request" to request an account.

Hey everyone! Im making a program and I need to Have something say Not equal to like != But for some reason its not working. Heres my code so far

         If ComboBox1.Text != "Enter" Or "T" Or "Y" Then
        SendKeys.Send(TextBox1.Text + ComboBox1.Text)

    End If

For Some odd reason != is not working for a Not equal, Thanks For reading and Thanks greatly for answering

asked Jun 14 '11 at 00:50

guthix0009's gravatar image


You can use <> to accomplish the same thing and I believe VB also supports either the NOT or isNot keyword.

answered Jun 14 '11 at 01:05

CajunTechie's gravatar image


Yep <> should do the trick.

answered Aug 14 '11 at 00:02

Jan%20Cauchi's gravatar image

Jan Cauchi

Thanks so much Cajun, IsNot Worked Great, Thanks!

answered Jun 14 '11 at 01:10

guthix0009's gravatar image


you should mark him as correct. Will make him very happy :D

(Aug 13 '11 at 23:51) Pizzscn Pizzscn's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jun 14 '11 at 00:50

Seen: 6,383 times

Last updated: Aug 14 '11 at 00:02