473,396 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Help vb6 is not equal to

20
i am doing a very small project to get used to using vb6 but, i am stuck i wont a dialog box to appear when the text is not equal to what i wont it to be . I hope it will make more sense after my basic code

If TextBox1.Text = "password" Then form2.show()
If TextBox1.Text = Nothing Then Dialog1.Show()

i wont to add in a line of command so that if textbox1.text doesn't equal "password" dialog2 will show

thanks for your time / help

i think its pretty sure its simple just can't find the code :(
Mar 29 '08 #1
4 3260
i am doing a very small project to get used to using vb6 but, i am stuck i wont a dialog box to appear when the text is not equal to what i wont it to be . I hope it will make more sense after my basic code

If TextBox1.Text = "password" Then form2.show()
If TextBox1.Text = Nothing Then Dialog1.Show()

i wont to add in a line of command so that if textbox1.text doesn't equal "password" dialog2 will show

thanks for your time / help

i think its pretty sure its simple just can't find the code :(
Try this:
If TextBox1.Text <> "password" Then
...
End If
Mar 30 '08 #2
lotus18
866 512MB
i am doing a very small project to get used to using vb6 but, i am stuck i wont a dialog box to appear when the text is not equal to what i wont it to be . I hope it will make more sense after my basic code

If TextBox1.Text = "password" Then form2.show()
If TextBox1.Text = Nothing Then Dialog1.Show()

i wont to add in a line of command so that if textbox1.text doesn't equal "password" dialog2 will show

thanks for your time / help

i think its pretty sure its simple just can't find the code :(
Expand|Select|Wrap|Line Numbers
  1.  If TextBox1.Text = "password" Then 
  2.    form2.show()
  3. Else 
  4.    Dialog1.Show()
  5. End If
Rey Sean
Mar 30 '08 #3
ooroboo
20
Expand|Select|Wrap|Line Numbers
  1.  If TextBox1.Text = "password" Then 
  2.    form2.show()
  3. Else 
  4.    Dialog1.Show()
  5. End If
Rey Sean
thanks this worked well thanks ..............................................
Mar 30 '08 #4
lotus18
866 512MB
thanks this worked well thanks ..............................................
Glad we could help : )

Rey Sean
Mar 30 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: jase_dukerider | last post by:
Hi I have an assignment to hand in shortly for which I am after some guidance. The task is to read a WAV file, request a fade in /out time for the track from the user and the do the fade by...
16
by: t_pantel | last post by:
I 've got the following structure: typedef struct GROUPED { short val ; short code; short group; short forecast_cd; short double_ind; short min;
2
by: Martin Ho | last post by:
Hi Everyone, I have this code of Mersenne twister, which produces the random numbers, one of the fastest codes as far as I know to produce random numbers. Anyways, it's writen in c# and I need to...
7
by: Sheldon | last post by:
Hi, I have the following loop that I think can be written to run faster in Numeric. I am currently using Numeric. range_va = main.xsize= 600 main.ysize= 600 #msgva is an (600x600) Numeric...
6
by: Burt | last post by:
I need to create a collection of classes (or structures) can be accessed by a string key, eg MyColl("ShortName5").Name for class with key ShortName5. But it also has to be sorted by a second...
2
by: rookiejavadude | last post by:
I'm have most of my java script done but can not figure out how to add a few buttons. I need to add a delete and add buttong to my existing java program. Not sure were to add it on how. Can anyone...
2
by: deezle | last post by:
Hello, I am trying to get my calculator GUI to +,-,* and /. I have got all of them to work except my division. I was wondering if someone could helpme figure out the problem. Any input would help...
0
by: sonuindia88 | last post by:
I am preparing c for entrance examinations..I am reading Ritchie and Deitel and practising questions from Yashwant Kanetkar...Here are some of the confusions i am having..your help is required.... ...
0
by: sonuindia88 | last post by:
Some common confusions .I am reading Ritchie and Deitel and practising questions from Yashwant Kanetkar...Here are some of the confusions i am having..your help is required.... Q1) ...
1
by: spynx | last post by:
import javax.swing.JOptionPane; import java.io.*; import java.util.Arrays; public class election5 { public static void main( String args ) {
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.