Click here to Skip to main content
15,911,306 members
Home / Discussions / C#
   

C#

 
AnswerRe: Force Interface Implementation in Derived Classes? Pin
Gerry Schmitz27-Feb-19 13:51
mveGerry Schmitz27-Feb-19 13:51 
GeneralRe: Force Interface Implementation in Derived Classes? Pin
pr1mem0ver28-Feb-19 1:41
pr1mem0ver28-Feb-19 1:41 
QuestionA problem with Lists / Arrays Pin
Nikol Dimitrova25-Feb-19 9:34
Nikol Dimitrova25-Feb-19 9:34 
AnswerRe: A problem with Lists / Arrays Pin
Richard Deeming25-Feb-19 10:56
mveRichard Deeming25-Feb-19 10:56 
Questionalign columns headers with cells values in a text file that exported from a datagridview in c# Pin
Member 1332584624-Feb-19 7:20
Member 1332584624-Feb-19 7:20 
AnswerRe: align columns headers with cells values in a text file that exported from a datagridview in c# Pin
Gerry Schmitz24-Feb-19 8:46
mveGerry Schmitz24-Feb-19 8:46 
GeneralRe: align columns headers with cells values in a text file that exported from a datagridview in c# Pin
Member 1332584624-Feb-19 13:23
Member 1332584624-Feb-19 13:23 
QuestionTextBox setting caret at end of text Pin
ormonds23-Feb-19 13:21
ormonds23-Feb-19 13:21 
AnswerRe: TextBox setting caret at end of text Pin
Dave Kreskowiak23-Feb-19 13:56
mveDave Kreskowiak23-Feb-19 13:56 
GeneralRe: TextBox setting caret at end of text Pin
ormonds23-Feb-19 14:20
ormonds23-Feb-19 14:20 
GeneralRe: TextBox setting caret at end of text Pin
Mycroft Holmes23-Feb-19 14:59
professionalMycroft Holmes23-Feb-19 14:59 
GeneralRe: TextBox setting caret at end of text Pin
Dave Kreskowiak23-Feb-19 15:16
mveDave Kreskowiak23-Feb-19 15:16 
AnswerRe: TextBox setting caret at end of text Pin
BillWoodruff23-Feb-19 20:31
professionalBillWoodruff23-Feb-19 20:31 
QuestionAPI to call bitcoin price Pin
Member 1416032523-Feb-19 4:25
Member 1416032523-Feb-19 4:25 
AnswerRe: API to call bitcoin price Pin
OriginalGriff23-Feb-19 4:44
mveOriginalGriff23-Feb-19 4:44 
AnswerRe: API to call bitcoin price Pin
Eddy Vluggen23-Feb-19 6:11
professionalEddy Vluggen23-Feb-19 6:11 
QuestionConverting PHP cURL to C# WebClient Pin
Member 1236766823-Feb-19 3:19
Member 1236766823-Feb-19 3:19 
AnswerRe: Converting PHP cURL to C# WebClient Pin
Richard Deeming25-Feb-19 8:31
mveRichard Deeming25-Feb-19 8:31 
QuestionShowing Form at Run Pin
ormonds22-Feb-19 10:47
ormonds22-Feb-19 10:47 
AnswerRe: Showing Form at Run Pin
Dave Kreskowiak22-Feb-19 11:16
mveDave Kreskowiak22-Feb-19 11:16 
GeneralRe: Showing Form at Run Pin
ormonds22-Feb-19 12:27
ormonds22-Feb-19 12:27 
QuestionRDLC Report Data Set Pin
Member 1405713721-Feb-19 13:14
Member 1405713721-Feb-19 13:14 
AnswerRe: RDLC Report Data Set Pin
Gerry Schmitz22-Feb-19 4:37
mveGerry Schmitz22-Feb-19 4:37 
GeneralRe: RDLC Report Data Set Pin
Member 1405713725-Feb-19 7:55
Member 1405713725-Feb-19 7:55 
QuestionChanging textBox from Method Pin
ormonds21-Feb-19 10:11
ormonds21-Feb-19 10:11 
I'm having trouble getting a textBox to accept a string from within a method.
Start with:-
private static Form1 form = null;

 public Form1()
 {
     InitializeComponent();
     form = this;
 }

 private void Form1_Load(object sender, EventArgs e)
 {
     textBox2.Text = "Initialising.....";
     this.Show();
     Refresh();
textBox2 shows up OK. However
form.UpDateText("Checking validity of " + FileName);
and
public void UpDateText(string ThisText)
 {
     using (StreamWriter logfile = new StreamWriter("D:\\TeklaZipping.log", true))
     {
         logfile.WriteLine(ThisText);
         logfile.Close();
     }
     Form1 frm1 = new Form1();
     frm1.textBox1.Text += ThisText + System.Environment.NewLine;
     frm1.Refresh();
 }
runs, and writes to logfile, but doesn't update textBox1.
Any help appreciated.
ormonds

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.