Click here to Skip to main content
15,910,118 members
Home / Discussions / C#
   

C#

 
GeneralRe: Transparent Color in Asp .Net C# Pin
Vodstok13-Dec-05 7:30
Vodstok13-Dec-05 7:30 
GeneralRe: Transparent Color in Asp .Net C# Pin
Guffa13-Dec-05 13:08
Guffa13-Dec-05 13:08 
GeneralRe: Transparent Color in Asp .Net C# Pin
Vodstok14-Dec-05 1:48
Vodstok14-Dec-05 1:48 
AnswerRe: Transparent Color in Asp .Net C# Pin
Guffa18-Dec-05 1:26
Guffa18-Dec-05 1:26 
GeneralRe: Transparent Color in Asp .Net C# Pin
Vodstok19-Dec-05 1:56
Vodstok19-Dec-05 1:56 
Questiontextbox control Pin
John L. DeVito13-Dec-05 5:09
professionalJohn L. DeVito13-Dec-05 5:09 
AnswerRe: textbox control Pin
User 665813-Dec-05 5:29
User 665813-Dec-05 5:29 
AnswerRe: textbox control Pin
Curtis Schlak.13-Dec-05 5:34
Curtis Schlak.13-Dec-05 5:34 
Okay, the easy way to fix this is select the TextBox in the form designer and change the value of the Design >> Modifiers property to public.

While that's the easy way, it breaks the encapsulation principle of OOD. May I suggest creating a property in your main form that exposes the value of the TextBox?

For example, in your main form's class declaration, provide the following declaration.
public string MyInterestingTextBoxValue
{
  set
  {
    this.textBox1.Text = value;
  }
}
Then, you can change your method above to
private void vWriteToTextbox()
{
  // Write to textbox on main form
  MainForm.MyInterestingTextBoxValue = "Hello";
}


"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
GeneralRe: textbox control Pin
John L. DeVito13-Dec-05 16:38
professionalJohn L. DeVito13-Dec-05 16:38 
GeneralRe: textbox control Pin
Curtis Schlak.14-Dec-05 4:34
Curtis Schlak.14-Dec-05 4:34 
GeneralRe: textbox control Pin
John L. DeVito15-Dec-05 15:16
professionalJohn L. DeVito15-Dec-05 15:16 
GeneralRe: textbox control Pin
TheGreatAndPowerfulOz15-Dec-05 16:49
TheGreatAndPowerfulOz15-Dec-05 16:49 
QuestionHow to pass array of string or doubles between C# and Managed C++ Pin
devinzhang13-Dec-05 5:04
devinzhang13-Dec-05 5:04 
AnswerRe: How to pass array of string or doubles between C# and Managed C++ Pin
Koushik Biswas13-Dec-05 9:47
Koushik Biswas13-Dec-05 9:47 
GeneralRe: How to pass array of string or doubles between C# and Managed C++ Pin
devinzhang13-Dec-05 14:42
devinzhang13-Dec-05 14:42 
QuestionHow to get message from Queue? Pin
Rashid.Mahmood13-Dec-05 4:32
Rashid.Mahmood13-Dec-05 4:32 
AnswerRe: How to get message from Queue? Pin
Judah Gabriel Himango13-Dec-05 4:39
sponsorJudah Gabriel Himango13-Dec-05 4:39 
Answer[Message Deleted] Pin
Judah Gabriel Himango13-Dec-05 4:39
sponsorJudah Gabriel Himango13-Dec-05 4:39 
GeneralRe: How to get message from Queue? Pin
Rashid.Mahmood13-Dec-05 18:33
Rashid.Mahmood13-Dec-05 18:33 
GeneralWebBrowser and Console Applications Pin
S. Senthil Kumar13-Dec-05 4:32
S. Senthil Kumar13-Dec-05 4:32 
GeneralRe: WebBrowser and Console Applications Pin
Judah Gabriel Himango13-Dec-05 4:43
sponsorJudah Gabriel Himango13-Dec-05 4:43 
GeneralRe: WebBrowser and Console Applications Pin
S. Senthil Kumar15-Dec-05 5:01
S. Senthil Kumar15-Dec-05 5:01 
GeneralRe: WebBrowser and Console Applications Pin
Judah Gabriel Himango15-Dec-05 5:22
sponsorJudah Gabriel Himango15-Dec-05 5:22 
GeneralRe: WebBrowser and Console Applications Pin
Dave Kreskowiak13-Dec-05 6:50
mveDave Kreskowiak13-Dec-05 6:50 
GeneralRe: WebBrowser and Console Applications Pin
S. Senthil Kumar15-Dec-05 5:01
S. Senthil Kumar15-Dec-05 5:01 

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.