Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. tzzdvd

    Datagridview column name

    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...
  2. tzzdvd

    delegate question

    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
  3. tzzdvd

    delegate question

    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...
  4. tzzdvd

    Dll second problem: data binding

    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>()...
  5. tzzdvd

    Dll first problem: thread safe

    Sorry I post this thread in the wrong position but anyway the last question maybe the key of this thread too
  6. tzzdvd

    Dll first problem: thread safe

    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>()...
  7. tzzdvd

    Dll second problem: data binding

    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...
  8. tzzdvd

    Dll first problem: thread safe

    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...
  9. tzzdvd

    Add a program to the windows context menu

    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...
  10. tzzdvd

    DataGridView - switch rows

    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...
  11. tzzdvd

    DataGridView - switch rows

    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...
  12. tzzdvd

    User control properties

    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...
  13. tzzdvd

    datasource question

    This beahaviour happens without any kind of event handler.
  14. tzzdvd

    datasource question

    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 =...
  15. tzzdvd

    Events

    Nice, it sounds good. I'll try it as soon as possible. Thank's Bye Davide
  16. tzzdvd

    Events

    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...
  17. tzzdvd

    SerialPort and Thread Safe

    It seems to function!!! Thank you very much. Davide
  18. tzzdvd

    SerialPort and Thread Safe

    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...
  19. tzzdvd

    use file

    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...
  20. tzzdvd

    use file

    ...if (stat(NAME_FILE, & info) < 0 ) { printf("errno = %d\n", errno); fflush(stdout); } else { printf("lenght = %d\n", info.st_size); // *1* fflush(stdout); } if ( (iFD = open(NAME_FILE, O_RDWR, S_IRWXU) < 0) ) { printf("Log Event Server: Error opening Log file '%s'\n"...

Part and Inventory Search

Back
Top