SelectedText wont work?
If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
9 posts
Page 1 of 1
Hello,
yep me again :lol:
seems we have a custom Textbox and i and use the Inherits Control
and added a New Windows.Forms.TextBox as control
but seems i can't use the SelectedText
when i use the bottom code
i don't get any SelectedText??
i do:
http://msdn.microsoft.com/en-us/library ... -snippet-1
thanks
yep me again :lol:
seems we have a custom Textbox and i and use the Inherits Control
and added a New Windows.Forms.TextBox as control
but seems i can't use the SelectedText
when i use the bottom code
i don't get any SelectedText??
i do:
Code: Select all
TextBox1.SelectedText += "some text"
'but some text don't come :(
Code: Select all
'sourcePublic Overridable Property SelectedText As String
http://msdn.microsoft.com/en-us/library ... -snippet-1
thanks
visit us on:
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
no one :( thats sad
visit us on:
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
no event #Usman55 because msdn don't speak of a event to add under it
i thought to use it like a normal function like the real textbox does
so when you do:
what are we doing wrong and how can we make it work
thanks
i thought to use it like a normal function like the real textbox does
so when you do:
Code: Select all
i do get this part with the event we showed upstairs but we don't get any text to show :(textbox1.selectedtext = ""
what are we doing wrong and how can we make it work
thanks
visit us on:
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
I don't have Windows installed atm so I can't confirm anything.
Try the same code with a regular textbox and button. If it works then the problem is probably with the way you're using the code.
Good luck!
Try the same code with a regular textbox and button. If it works then the problem is probably with the way you're using the code.
Good luck!
still no solution? :(
so sad
o well....
so sad
o well....
visit us on:
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
It may help if you post your code/files for us to look at and see what's going on.
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
Try this (C# sorry)
Code: Select all
using System;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
class MyTextBox : Control
{
private TextBox TB = new TextBox() { Dock = DockStyle.Fill, HideSelection = false };
public MyTextBox()
{
this.Controls.Add(TB);
}
public string SelectedText
{
get { return TB.SelectedText; }
set { TB.SelectedText = value; }
}
}
}
You can find me on Facebook or on Skype mihai_92b
thanks #XTechVB
you rock loove;
you rock loove;
visit us on:
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
http://www.softpedia.com/get/System/Lau ... -Run.shtml
Check it out ! http://www.softpedia.com/publisher/I-A- ... 90017.html
Check it out ! http://www.softpedia.com/get/Desktop-En ... lock.shtml
9 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023