Search results for query: *

  • Users: nicorvp
  • Content: Threads
  • Order by date
  1. N

    Question Can the T of generics be an interface?

    Hi, on my program I have an interface iGraphable that contains two properties: Abscissa and Ordinate. Then I have an xxxx class (actually more than one) implementing iGraphable and a ListOfxxxx class implementing BindingListView(Of xxxx). To draw graphs I have a Graph class with a property...
  2. N

    Adding many columns to a DataTable

    Hi, I have built a DataGridView where rows are my resources (carpenters, electricians, welders, ...) and columns are days. Each cell contains the units of the resource avaiable for each day. Users can choose the first and the last day to be shown in the DG. For that I use a datatable binded to...
  3. N

    Question Casting an interface to an object

    Hi, I have a base class called Schedule and three classes inherited: DailySchedule, WeeklySchedule, MontlySchedule. Now I would like to build a form in which users can modify the schedule and I have to compile different parts of it depending on whether the schedule is daily, weekly or montly...
  4. N

    Question Generate an event after a time period

    Hi, I need to take a shot from a camera every last day of the month at midnight. I know how to to take the shot, but I don't know how to generate an event repetitively after a time period. I thought about to calculate the time between now and the next shot time, but how to run a method after a...
  5. N

    Question Getting days dates from WeekOfYear number

    Hi, I need to get the first day (datetime) of the week from the weekofyear number. Now im doing a loop through the days of the year but I'm looking for a smarter solution. Thanks Nico
  6. N

    Question DataGridView & CellValueNeeded event

    Hi, how can I know that my DataGridView doesn't need to raise CellValueNeeded anymore? There is any property to know that datagridview has finished to update unbounded cells? Thanks Nico
  7. N

    To retrieve UID after update

    Hi, if I have a datatable with an auto-increment primarykey column, which is the best way to retrieve back the primarykey of a new row after an update of the db? It would be nice if TableAdapters.Update could give back updated row but it seems to be not possible. Thanks
  8. N

    Relations between tables from different db

    Hello, using vb2005 I have loaded a new datasource - database - access file and in the .xsd file I can see my tables. Then, on the same dataset, I added some other tables from another access file using add TableAdapter. Now if I use the (trying to translate from italian) "Configuring dataset...
  9. N

    Question Data Sources members order

    How to order data source members so that you haven't to reorder datagridview columns each time you generate the binded class? Thanks
  10. N

    Access between query

    Hi, I'm trying to extract records from an access database. I pass a date to the query and i want to retrieve records where my date is between TASK_START_DATE Column and TASK_FINISH_DATE Column. Dim queryString As String = "SELECT * FROM(MSP_TASKS) " & _ "WHERE (@data BETWEEN...
  11. N

    Problems raising an event

    I have a LocationsList class that contains some instance of a Location class. Each Location has a tobeshown property. When tobeshown is setted, an event ShownChange is raised. Another class Work contains a property Locations as LocationList and I would like a LocationSetted property that has...
  12. N

    Question ContextMenuStrip & MenuStrip

    Suppose you have a MenuStrip with a File --> Open menu on a form. Why if you add the "open" ToolStripMenuItem object to a ContextMenuStrip, it disappears from the MenuStrip? Friend WithEvents FileToolStripMenuItem As ToolStripMenuItem Friend WithEvents Open1ToolStripMenuItem As...
Back
Top