can somebody help me with this??

i need to insert some text into a textbox, but it needs to go where i want it just not the very end every time.

here is what i got so far


Code:
textbox1.text = textbox1.text & combobox1.text

Recommended Answers

All 3 Replies

try:

TextBox1.Text = TextBox1.Text.Substring(0, TextBox1.SelectionStart) & ComboBox1.Text & TextBox1.Text.Substring(TextBox1.SelectionStart)

thank you sooo much, it worked, everyone elses codes were too complicated or just plain didnt work. and again thank you.

hi...m sourav..i need passcode for vb.net ....version 2005..plz help me soon.

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.