Welcome to Dream.In.Code
Become a VB Expert!

Join 149,478 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,527 people online right now. Registration is fast and FREE... Join Now!




how to use hidden variable with textbox

 
Reply to this topicStart new topic

how to use hidden variable with textbox, Str string should be visible when user enter some value in textbox

jatinder_44
8 May, 2007 - 04:30 AM
Post #1

New D.I.C Head
*

Joined: 2 May, 2007
Posts: 2


My Contributions
biggrin.gif tongue.gif icon_up.gif mad.gif crazy.gif pirate.gif wink2.gif ph34r.gif rolleyes.gif wub.gif cool.gif
pls give some help on this topic
I am using &h with the first textbox like autonumber we use for increment the employee no in any company in which they use E001,E002...
I am want to use &h in the palce of E0 ,boz i m sending this value with textbox to the serial port my code is working but when i click on send button &h appears on the text box that which i dont want to show the user that we are using this kind of implementation in his front hand .How can i avoid this,can any body help me out .
pls rply ur answer will apprieciated .
thank u.
My code as follows :
Public Sub Function1()
str = Text1.Text
'str = str + 1
If str > 1 And str <= 9 Then
str = "&h6" & str
Else
If str > 9 And str <= 99 Then
str = "&h" & str
Else
If str > 99 And str <= 999 Then
str = "&" & str
End If
End If
End If
End Sub
calling this function in Command1
call function1
text1.text=str
But when user enter any value in the text box and then click's then &h appear in the text box .This appearance of &h in the text box Should be hidden ,that it should not visible to the user when user clicks Command1.
Thank u pls reply .if soome confusion then pls asked.

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 03:58PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month