I have surfed the net for two days but I haven't yet found an answer.
I have a BindingList<T> derived class.
I can bind it to a datagridview without any problem (after two weeks!!!)
My "T" class has a group of public method and I have seen that the column name related to each single method is...
Thanks Jason,
I know how the delegate functions.
My question is quite different.
I would like to understand the difference between
m.d = new myDel(FunctionUsed);
and
m.d = FunctionUsed;
assignment, in particular when the same function is assigned to multiple istance of a class.
Davide
Hi to all,
I have a question about the delegate
Example
public void delegate myDel();
public class myClass
{
...
public myDel d;
}
public class Container
{
List<myClass> lst = new List<myClass>();
void AddFiveValues()
{
for (int i = 0; i < 5; i++)
{
myClass...
Dear Jason,
I am trying this code in order to understand your suggestion
namespace TestBinding
{
interface IBindingService
{
IEnumerable<Person> GetData();
}
public class BindingClass : IBindingService
{
private List<Person> group = new List<Person>()...
Dear Jason,
I am trying this code in order to understand your suggestion
namespace TestBinding
{
interface IBindingService
{
IEnumerable<Person> GetData();
}
public class BindingClass : IBindingService
{
private List<Person> group = new List<Person>()...
Hi
I am trying to manage an external dll.
I would like to create an assembly (later exported in a dll) that encapsulates the management of such dll so that it is "easily" usable (I hope!)
I have two different problems so I will split them into different post:
second problem: data binding
I...
Hi
I am trying to manage an external dll.
I would like to create an assembly (later exported in a dll) that encapsulates the management of such dll so that it is "easily" usable (I hope!)
I have a two different problems so I will split them into different post:
first problem: thread safe
my...
Hi,
If I right click on (for example) a folder I can see a lot of commands available (Property, Delete, Rename...).
Some particular programs can use this context menu to add their functionalities fast available for the user.
For example SVN, GnuGPG, 7Zip, Winzip, Rar...
I need to create a...
Here is a possible solution I have found:
private void dgvCB_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
switch(e.ColumnIndex)
{
case 0: // column of up button
if (e.RowIndex > 0)
{
dgv.Rows.InsertCopy(e.RowIndex, e.RowIndex...
Hi to all.
I would like to switch two rows in a datagridview without clearing the datagrid.
It is easy to make such a code:
dgv.Clear();
for (int x = 0; x < n; x++)
{
dgv.Rows.Add(...); // in another order
}
but I don't want the dgv.Clear() line of code.
The most beautiful thing should be...
Hi to all,
I am writing my first control.
My problem is with the property Size of the base UserControl class: I don't want the user to change the size of the control.
I have added in my class the following code:
private new Size Size
{
set
{
base.Size = value;
}
}
In...
I've just found a very strange behaviour about the datasource property of the listbox.
Here is the code:
public partial class SpeedSelection: Form
{
public SpeedSelection(int[] Speed)
{
InitializeComponent();
listSpeedTx.DataSource = Speed;
listSpeedRx.DataSource =...
Hi,
I have described a class with a lot of members with a lot of situation that can change the value of a particular variable member. I would like to intercept every time this variable changes its value in order to perform other things due to the new value.
Is it possible to handle the changing...
Hi to all,
I am using c# since last week so I'am not so expert.
I have this problem: I have created a delegate function to handle the result of the data received and managed it with the method .InvokeRequire and .Invoke().
I show the code
delegate void SetCallBackRxMsg();
private void...
This seems to be a good idea, and it seems to work too.
Now, we never go to the 'if' section but always to the 'else' section because this routine is executed when the file is already created with bytes written on it.
The question is:
why in this piece of software everything seems good and in...
Hi,
I'm trying to use files access and I have a question.
If I haven't the file I can create it end direclty add some chars.
Then I try to open it, append other chars and close it
And again in a while(1) cycle.
Here is my question:
The first time I open the file in order to append chars I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.