Password Char (*)  in Input box?
Password Char (*)  in Input box?
Password Char (*)  in Input box?
Password Char (*)  in Input box?
Password Char (*)  in Input box?
Password Char (*)  in Input box? Password Char (*)  in Input box? Password Char (*)  in Input box? Password Char (*)  in Input box? Password Char (*)  in Input box? Password Char (*)  in Input box? Password Char (*)  in Input box? Password Char (*)  in Input box?
Password Char (*)  in Input box? Password Char (*)  in Input box?
Password Char (*)  in Input box?
Go Back  Xtreme Visual Basic Talk > > > Password Char (*) in Input box?


Reply
 
Thread Tools Display Modes
  #1  
Old 02-26-2007, 06:32 AM
pablo escobar pablo escobar is offline
Freshman
 
Join Date: Oct 2006
Posts: 46
Default Password Char (*) in Input box?


Hi I was wondering if anybody could help me out a little please, on a form I have a menu and whenever something get selected from the menu, an input box appears where users have to input a password. But I don’t want users to be able to see what characters they have inputted. For example with a text box on the properties you can change the passwordchar to *, but how would I go about doing this in a input box? as the input box is used by coding.

For example the coding I have used with the menu is as follows:

Dim Password As String
Password = InputBox("Enter Your Password.")
If Password = "Password" Then
frm2.ShowDialog()
Me.Hide()
Else
MsgBox("Invalid Password.")
Me.Show()
End If

Any suggestions please?
Reply With Quote
  #2  
Old 02-26-2007, 06:38 AM
dannyb dannyb is offline
Junior Contributor
 
Join Date: Jul 2006
Location: Gatineau, Quebec
Posts: 273
Default

Isnt InputBox for VB6?
MsgBox is now MessageBox.Show
__________________
One must learn from the weak to beat the best
Reply With Quote
  #3  
Old 02-26-2007, 06:12 PM
torpkevuk's Avatar
torpkevuk torpkevuk is offline
Contributor
 
Join Date: Oct 2003
Location: Nebraska, USA
Posts: 640
Default

as far as im aware, you can use inputbox in .net however im not sure if you're meant to or if its a hold over like len() rather than .text.length

that said.. I dont think you can use a password char in an inputbox.. you should be able to make an inputbox easily enough though.. then you can add whatever functionality you'd like
Reply With Quote
  #4  
Old 03-14-2007, 12:11 PM
whlabus whlabus is offline
Freshman
 
Join Date: Mar 2007
Posts: 29
Default

Why can't you use a regular textbox?
Reply With Quote
  #5  
Old 03-14-2007, 12:19 PM
jo0lsPassword Char (*)  in Input box? jo0ls is offline
Senior Contributor

Forum Leader
* Expert *
 
Join Date: Feb 2005
Location: London
Posts: 1,050
Default

This thread is a bit old...

An inputBox is a dialog box, unlike a textbox it does not need a form.

The best option here is to use another form, put on a textbox, set the passwordchar property. Then show the form with ShowDialog.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Password Char (*)  in Input box?
Password Char (*)  in Input box?
Password Char (*)  in Input box? Password Char (*)  in Input box?
Password Char (*)  in Input box?
Password Char (*)  in Input box?
Password Char (*)  in Input box? Password Char (*)  in Input box? Password Char (*)  in Input box? Password Char (*)  in Input box? Password Char (*)  in Input box? Password Char (*)  in Input box? Password Char (*)  in Input box?
Password Char (*)  in Input box?
Password Char (*)  in Input box?
 
Password Char (*)  in Input box?
Password Char (*)  in Input box?
 
-->