Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > Working with Created Property of Text Box
 

Working with Created Property of Text Box

Hi,

I have placed a TextBox on a windows form and set its Visible Property to False

When I run my application and access the Created Property of TextBox , its value is Flase, untill text box is made Visible.

Can anyone tell me how to set Created Property to True programatically?

Thanks

faraaz_malak_c92eb4  Tuesday, February 19, 2008 4:17 PM

The Created Property of textbox is read only. So you cannot change it.

jsj_Samson  Wednesday, February 20, 2008 3:43 AM

The Created Property of textbox is read only. So you cannot change it.

jsj_Samson  Wednesday, February 20, 2008 3:43 AM

Can you please define what Created property actually is?

In MSDN documentation, it is just given that Created property returns TRUE if Control has been created and returns FALSE if it has not been created.

Can u please explian what Created property actually is and how does it function?

Can this property be changed programatically using Visual Basic?

Thanks

faraaz_malak_c92eb4  Wednesday, February 20, 2008 6:01 AM

The Created Property is just a flag to indicate whether the control is created or not. If ithe control was created, its value is True, otherwise False.

It also cannot be changed in VB. It's a read only property.

Samson

jsj_Samson  Wednesday, February 20, 2008 10:55 AM

The problem I am facing is given below, so can you please provide a soultion to this-

The problem is that I have a TextBox, which is bound to a field in the dataset and the TextBox is placed on TabPage 2.

When I run the application for the first time, TextBox control does not pull the data automatically from the dataset. Text Property of the TextBox control is an Empty string, when I access the Text property from TabPage1

But when I switch to TabPage2 for the first time, after that TextBox control starts pulling data from DataSet normally as it should be doing, even if I am on Tab Page 1

So, basically, Untill I switch to TabPage2, for the first time after starting the application,TextBox control on TabPage2 does not start reading the data automatically from the DataSet.

Can anyone explain why?

Kindly request to provide code snippets in Visual Basic.

Thanks

faraaz_malak_c92eb4  Wednesday, February 20, 2008 12:21 PM
Why not accessing the data source directly on the TabPage1?
Zhi-Xin Ye  Monday, February 25, 2008 9:20 AM

You can use google to search for other answers

Custom Search

More Threads

• Client found response content type of 'text/html-charset-ISO-8859-1' but expected 'text/Xml
• Urgent !!!! please ;)
• Extensive Debug environment in new Terrarium?
• Whidbey!
• Problems after installing source code
• How to get text from ListView Control using SendMessage API
• Any ETA?
• Wrong versions in About TaskVision
• Timer with copy 'job'
• MissingMethodException at Login