Click here to Skip to main content
15,898,954 members
Home / Discussions / C#
   

C#

 
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

AnswerRe: Changing textBox from Method Pin
Eddy Vluggen21-Feb-19 11:07
professionalEddy Vluggen21-Feb-19 11:07 
AnswerRe: Changing textBox from Method Pin
Mycroft Holmes21-Feb-19 11:11
professionalMycroft Holmes21-Feb-19 11:11 
GeneralRe: Changing textBox from Method Pin
ormonds21-Feb-19 16:48
ormonds21-Feb-19 16:48 
QuestionWHENTO Expect C# 8 to be released with Visual Studio and Default Interface Mathods (aka Multiple Inheritance). Pin
Member 1047477121-Feb-19 4:06
professionalMember 1047477121-Feb-19 4:06 
AnswerRe: WHENTO Expect C# 8 to be released with Visual Studio and Default Interface Mathods (aka Multiple Inheritance). Pin
Eddy Vluggen21-Feb-19 4:16
professionalEddy Vluggen21-Feb-19 4:16 
AnswerRe: WHENTO Expect C# 8 to be released with Visual Studio and Default Interface Mathods (aka Multiple Inheritance). Pin
Dave Kreskowiak21-Feb-19 5:03
mveDave Kreskowiak21-Feb-19 5:03 
AnswerRe: WHENTO Expect C# 8 to be released with Visual Studio and Default Interface Mathods (aka Multiple Inheritance). Pin
OriginalGriff21-Feb-19 5:14
mveOriginalGriff21-Feb-19 5:14 
QuestionEnabling Control from Method Pin
ormonds20-Feb-19 12:22
ormonds20-Feb-19 12:22 
AnswerRe: Enabling Control from Method Pin
Dave Kreskowiak20-Feb-19 14:04
mveDave Kreskowiak20-Feb-19 14:04 
AnswerRe: Enabling Control from Method Pin
OriginalGriff20-Feb-19 20:18
mveOriginalGriff20-Feb-19 20:18 
PraiseRe: Enabling Control from Method Pin
ormonds20-Feb-19 21:14
ormonds20-Feb-19 21:14 
GeneralRe: Enabling Control from Method Pin
OriginalGriff20-Feb-19 21:27
mveOriginalGriff20-Feb-19 21:27 
GeneralRe: Enabling Control from Method Pin
Richard MacCutchan21-Feb-19 1:05
mveRichard MacCutchan21-Feb-19 1:05 
QuestionRetrieve all comments in a worksheet using OpenXML Pin
Gli Invicibili18-Feb-19 18:29
Gli Invicibili18-Feb-19 18:29 
AnswerRe: Retrieve all comments in a worksheet using OpenXML Pin
Richard MacCutchan18-Feb-19 21:32
mveRichard MacCutchan18-Feb-19 21:32 
Question(Kinda SOLVED) Active Directory update (do I really need "Run As Administrator"?!) Pin
Super Lloyd18-Feb-19 13:11
Super Lloyd18-Feb-19 13:11 
QuestionOverridden OnPaint method not called on form Pin
pr1mem0ver17-Feb-19 22:37
pr1mem0ver17-Feb-19 22:37 

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.