I'm finally ditching VB6 as my PC interface RAD tool as I can't really get it to work on the new Windows platforms..
Now I can handle C# but I have a little trouble understanding "Delegates"... I know these are needed to interact between classes.... I also know that in C++ we used DDX to exchange data between modules..
I have run through every tutorial... I get things working BUT!!! I need a good understanding...
Senario:----
I have a text string arriving on the COM port.... "Hello world!".
I want to place this in the textbox on my form...
In VB6 I did this..
TextBox1.Text = MsComm1.Input
In C# ( and newer basics ) I receive a permissions error...
I need to set up a delegate ( friend function) to allow me access to the textbox outside its scope!!!
Can anyone explain ( in English ) the functionality of a delegate??? I need to understand this so I don't need to scour the internet for example code...
Now I can handle C# but I have a little trouble understanding "Delegates"... I know these are needed to interact between classes.... I also know that in C++ we used DDX to exchange data between modules..
I have run through every tutorial... I get things working BUT!!! I need a good understanding...
Senario:----
I have a text string arriving on the COM port.... "Hello world!".
I want to place this in the textbox on my form...
In VB6 I did this..
TextBox1.Text = MsComm1.Input
In C# ( and newer basics ) I receive a permissions error...
I need to set up a delegate ( friend function) to allow me access to the textbox outside its scope!!!
Can anyone explain ( in English ) the functionality of a delegate??? I need to understand this so I don't need to scour the internet for example code...