Click here to Skip to main content
15,915,093 members
Home / Discussions / C#
   

C#

 
GeneralRe: How do I ensure that my thread is ready before my main thread continues ? Pin
Nicholas Butler2-Dec-09 23:20
sitebuilderNicholas Butler2-Dec-09 23:20 
GeneralRe: How do I ensure that my thread is ready before my main thread continues ? Pin
Alan N3-Dec-09 0:41
Alan N3-Dec-09 0:41 
GeneralRe: How do I ensure that my thread is ready before my main thread continues ? Pin
David Skelly3-Dec-09 4:46
David Skelly3-Dec-09 4:46 
GeneralRe: How do I ensure that my thread is ready before my main thread continues ? Pin
abiemann4-Dec-09 19:51
abiemann4-Dec-09 19:51 
QuestionAccessing ListView edit box Pin
shoelace2-Dec-09 9:48
shoelace2-Dec-09 9:48 
Questionaccess to textbox of user control Pin
farokhian2-Dec-09 9:45
farokhian2-Dec-09 9:45 
AnswerRe: access to textbox of user control Pin
Blue_Boy2-Dec-09 9:52
Blue_Boy2-Dec-09 9:52 
GeneralRe: access to textbox of user control Pin
farokhian2-Dec-09 10:27
farokhian2-Dec-09 10:27 
Laugh | :laugh:
I want to fill my textboxes that these textboxes are in a one user control;
in my user control i have a tablelayout and in this tablelayout i put my textboxes ;
when i trace it ,ctr can find the tablelayout in usercontrol but i don't know how can i access to textboxes that exist in tablelayout?

this is my code:

foreach (Control ctr in mycomponent.Controls)
{
if (ctr is TextBox) // This is correct statement for checking if Object is specific type
{
TextBox tb = ctr as TextBox; // This line cast Object to TextBox
tb.Text = "salam"; //dataSet1.DataTable1[nCount].Text1;
nCount++;
}
}
GeneralRe: access to textbox of user control Pin
Saksida Bojan2-Dec-09 10:34
Saksida Bojan2-Dec-09 10:34 
GeneralRe: access to textbox of user control Pin
farokhian2-Dec-09 10:57
farokhian2-Dec-09 10:57 
GeneralRe: access to textbox of user control Pin
Saksida Bojan2-Dec-09 12:02
Saksida Bojan2-Dec-09 12:02 
Question[Message Deleted] Pin
hande542-Dec-09 8:52
hande542-Dec-09 8:52 
AnswerRe: String to datetime Pin
Blue_Boy2-Dec-09 9:05
Blue_Boy2-Dec-09 9:05 
Questiondatatable Pin
farokhian2-Dec-09 6:56
farokhian2-Dec-09 6:56 
AnswerRe: datatable Pin
Blue_Boy2-Dec-09 7:02
Blue_Boy2-Dec-09 7:02 
GeneralRe: datatable Pin
farokhian2-Dec-09 7:21
farokhian2-Dec-09 7:21 
GeneralRe: datatable Pin
Blue_Boy2-Dec-09 7:27
Blue_Boy2-Dec-09 7:27 
AnswerRe: datatable [modified] Pin
Saksida Bojan2-Dec-09 7:09
Saksida Bojan2-Dec-09 7:09 
GeneralRe: datatable Pin
farokhian2-Dec-09 7:24
farokhian2-Dec-09 7:24 
GeneralRe: datatable Pin
Saksida Bojan2-Dec-09 7:38
Saksida Bojan2-Dec-09 7:38 
GeneralRe: datatable Pin
farokhian2-Dec-09 7:52
farokhian2-Dec-09 7:52 
GeneralRe: datatable Pin
Blue_Boy2-Dec-09 7:57
Blue_Boy2-Dec-09 7:57 
GeneralRe: datatable Pin
farokhian2-Dec-09 8:16
farokhian2-Dec-09 8:16 
GeneralRe: datatable Pin
Saksida Bojan2-Dec-09 8:24
Saksida Bojan2-Dec-09 8:24 
GeneralRe: datatable Pin
farokhian2-Dec-09 8:46
farokhian2-Dec-09 8:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.