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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by tzzdvd

  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

Part and Inventory Search

Back
Top