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

guthix0009
136161721


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

CajunTechie
31114

Yep <> should do the trick.

answered Aug 14 '11 at 00:02

Jan%20Cauchi's gravatar image

Jan Cauchi
(suspended)

Thanks so much Cajun, IsNot Worked Great, Thanks!

answered Jun 14 '11 at 01:10

guthix0009's gravatar image

guthix0009
136161721

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

By RSS:

Answers

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


Tags:

×131
×44
×42
×3

Asked: Jun 14 '11 at 00:50

Seen: 5,698 times

Last updated: Aug 14 '11 at 00:02