I want to convert this VB 6 code
If Len(Text1.text) <> 0 Then Text1.text = Left(Text1.text, Len(Text1.text) - 1)
To visual basic.net 2010 pro
This code is used for making textbox delete only one number when you click on button .

Recommended Answers

All 3 Replies

Why do you need to convert it? Simple VB6 code like this should work in VB.net. If you have already tried, what errors are you getting?

This code doesn't work in VB 6 and l want one which work in VB.net

I have already found the code

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.