473,386 Members | 2,042 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

TextBox's base.Text is not working

Hello,

I try to inherit a class from TextBox. Everything works fine with the only
exception of call to base.Text = "new string". I call this property from
some other's property body, but after it returns, the textbox contains the
same text as before...

What is the problem?

many thanks Ondra.

Jul 21 '05 #1
3 1630
.... and it also DO NOT call TextChanged event I have registered a delegate
for in the derived class's constructor.

O.

"Ondrej Sevecek" <ondra_at_sevecek_dt_com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Hello,

I try to inherit a class from TextBox. Everything works fine with the only
exception of call to base.Text = "new string". I call this property from
some other's property body, but after it returns, the textbox contains the
same text as before...

What is the problem?

many thanks Ondra.

Jul 21 '05 #2
Ondrej,

Why not me.text (in VBNet) or this.Text in C#?

Cor
Jul 21 '05 #3
Can you post some sample code?

"Ondrej Sevecek" wrote:
Hello,

I try to inherit a class from TextBox. Everything works fine with the only
exception of call to base.Text = "new string". I call this property from
some other's property body, but after it returns, the textbox contains the
same text as before...

What is the problem?

many thanks Ondra.

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Tom McLaughlin | last post by:
I have been working on projects in vb5 and I am now trying to get started with .net as you can see I am not doing very well. I have a program that has two forms. On form1 I have a TextBox1. From...
11
by: Keith | last post by:
I apologize for those of you who think I'm posting on the same topic. It is not that I don't appreciate all of your comments - and I'm definitely reading them all - but I think I have a differing...
2
by: Mamatha | last post by:
Hi I want to add an icon to the textbox's text. I don't know how to display icon in textbox in VB.NET. If any one knows please let me know. Thanks in advance. Mamatha
3
by: Ondrej Sevecek | last post by:
Hello, I try to inherit a class from TextBox. Everything works fine with the only exception of call to base.Text = "new string". I call this property from some other's property body, but after...
8
by: Filipe Marcelino | last post by:
Hi, I'm trying to create a textbox inheriting from the standard textbox. I would like to: 1. repaint the textbox border; 2. define a color for that border; Till now I made this:
4
by: giddy | last post by:
hi when i run this class i made here , this is what it looks like without text - http://gidsfiles.googlepages.com/LinedTextBox_1.jpg WITH TEXT (heres the issue) -...
14
by: > Adrian | last post by:
Is there a way of stopping text from highlighting in textbox? Many thanks, Adrian.
4
by: Brandon McCombs | last post by:
Does anyone know of an easy way to set the position of the cursor in a TextBox? If I set text in the box that is longer than the length of the TextBox the position of the cursor is at the very end...
6
by: Brandon McCombs | last post by:
Hello, I have a Form that contains some configuration information. One of the settings is for SSL. There is a checkbox that I want to check to make 2 textboxes un-editable so that a user can...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.