C Textbox Kenarlk Rengi

C Textbox Kenarlk Rengi Rating: 4,6/5 5511 votes
  1. C Textbox Kenarlk Rengi 1
  1. This C# page uses Console.BackgroundColor and Console.ForegroundColor. It shows the ResetColor method.
  2. Aug 03, 2006  An ActiveX Script Host with custom COM objects. This allows a script to call C functions in your app. In the previous chapter, we learned how to run a script from our application. But in order for that script to be able to call C functions in our application, and ultimately, exchange data with our.

I've 4 textboxes and 1 button.When the button is pressed, it pings the 4 ip addresses, then changes the textboxes color according to ping status.

Rpp kelas 4 tema 5 pahlawanku revisi 2017. A: Since you allready need to have some basic knowledge about C, in addition to a C compiler, it should not be that hard for you to compile the.dll file yourself, if you know how to use the kcext external. So you have to make it yourself. Q: kfunc does not work with Visual C.

What I want to do is, when button is pressed all textboxes backcolor changes to white before the pings start.

I wrote the following code, but it didn't work.

My Codes:

What I'm doing wrong?My best regards..

sealz
4,6005 gold badges33 silver badges66 bronze badges
bakarbakar
3906 gold badges19 silver badges32 bronze badges

2 Answers

This code does not make much sense. You are spawning two threads just to change the color of controls that are owned by a different thread? This is wrong for many reasons:

  1. Why would you need to change the color in parallel?
  2. You cannot do it like this anyway, because only the UI thread can update controls, unless you use Control.Invoke or Control.BeginInvoke to forward updates from other threads, but I don't see the point in your case.

I suggest you simply do this:

C textbox kenarlk rengi dTudorTudor
53.8k11 gold badges77 silver badges124 bronze badges

If I understand correctly you are using a WinForm and the texboxes do change accordingly when you ping?

C Textbox Kenarlk Rengi 1

To have them set to white before you ping calling this code at the beginning of the method should work. You shouldn't have to seperatly thread it. Are you threading for any specific reason?

Not sure what else could be causing it, maybe make a method then call it anywhere you need them to change back to white?

and at the start of your other button click just call.

C Textbox Kenarlk Rengisealzsealz
4,6005 gold badges33 silver badges66 bronze badges

Not the answer you're looking for? Browse other questions tagged c#winformsmultithreadingtextbox or ask your own question.