Dear Freinds
I want that when i save combobox value it take starting two characters only from textbox and save it

Recommended Answers

All 2 Replies

Use the Remove function along with the length property.
Example:

TextBox1.Text.Remove(2, TextBox1.Text.Length)
Dim str as string
str=textbox.text
str=str.substring(0,2)
str will hold the value of first two charecters
Be a part of the DaniWeb community

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