Click here to Skip to main content
15,890,609 members
Home / Discussions / C#
   

C#

 
GeneralRe: Reliable compression .net library Pin
leppie11-May-05 6:39
leppie11-May-05 6:39 
GeneralC# and Web Cams Pin
McArco11-May-05 5:48
McArco11-May-05 5:48 
GeneralUrgent Regular expression help Pin
Dot Net11-May-05 5:37
Dot Net11-May-05 5:37 
GeneralRe: Urgent Regular expression help Pin
leppie11-May-05 6:42
leppie11-May-05 6:42 
GeneralRegular expression help Pin
Dot Net11-May-05 5:36
Dot Net11-May-05 5:36 
GeneralRe: Regular expression help Pin
DavidNohejl11-May-05 5:57
DavidNohejl11-May-05 5:57 
Generalcontroling items in a dialog from another dialog Pin
Green Fuze11-May-05 4:21
Green Fuze11-May-05 4:21 
GeneralRe: controling items in a dialog from another dialog Pin
S. Senthil Kumar11-May-05 7:29
S. Senthil Kumar11-May-05 7:29 
A Form is just another class. You can expose a property in the second form. You can store a reference to the second form in main form and then use the property to manipulate tbText. Something like
class SecondForm
{
   private TextBox tbText = new TextBox();
   
   public string TbText
   {
       get { return tbText.Text; }
       set { tbText.Text = value; }
   }
}

class MainForm
{
  SecondForm secondForm;

  public void ShowSecondForm()
  {
     secondForm = new SecondForm();
     secondForm.Show(); // or ShowDialog
  }

  public void SetText(string text)
  {
     secondForm.TbText = text;
  }
}


Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
GeneralFile Types Editor in Setup project (Visual Studio) Pin
WujekSamoZlo11-May-05 4:06
WujekSamoZlo11-May-05 4:06 
GeneralWinform User Controls Pin
skrishnasarma11-May-05 3:35
skrishnasarma11-May-05 3:35 
GeneralGraphics In C# Pin
liormin11-May-05 3:34
liormin11-May-05 3:34 
GeneralRe: Graphics In C# Pin
S. Senthil Kumar11-May-05 4:04
S. Senthil Kumar11-May-05 4:04 
GeneralRe: Graphics In C# Pin
Polis Pilavas11-May-05 4:20
Polis Pilavas11-May-05 4:20 
GeneralRe: Graphics In C# Pin
Snowjim11-May-05 7:02
Snowjim11-May-05 7:02 
GeneralDesign problem Pin
Pedro S Ferreira11-May-05 3:22
Pedro S Ferreira11-May-05 3:22 
GeneralRe: Design problem Pin
S. Senthil Kumar11-May-05 3:59
S. Senthil Kumar11-May-05 3:59 
GeneralMy C# App Protection Pin
Member 271608811-May-05 2:33
Member 271608811-May-05 2:33 
GeneralRe: My C# App Protection Pin
Robert Rohde11-May-05 5:38
Robert Rohde11-May-05 5:38 
GeneralRe: My C# App Protection Pin
Member 271608811-May-05 5:49
Member 271608811-May-05 5:49 
GeneralWhich is the fastest pattern matching algorithm Pin
tommazzo11-May-05 2:09
tommazzo11-May-05 2:09 
GeneralRe: Which is the fastest pattern matching algorithm Pin
leppie11-May-05 6:47
leppie11-May-05 6:47 
GeneralRe: Which is the fastest pattern matching algorithm Pin
tommazzo12-May-05 9:47
tommazzo12-May-05 9:47 
Generalthree final questions Pin
snouto11-May-05 1:50
snouto11-May-05 1:50 
GeneralDecimal precision Pin
Anonymous11-May-05 1:49
Anonymous11-May-05 1:49 
GeneralRe: Decimal precision Pin
S. Senthil Kumar11-May-05 2:15
S. Senthil Kumar11-May-05 2:15 

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.