Search results for query: *

  • Users: jimctr
  • Content: Threads
  • Order by date
  1. J

    For each dtRow in dt.Row reference previous row

    I have the following routine embedded in a For each loop, and I have a counter which keeps track of which row Dim CurrentDate = Date.Parse(dtRow.Item("Date-Time")) If count > 0 Then 'Cannot generate data on very first datapoint Dim LastDate =...
  2. J

    TableLayoutPanel - Controls disappeared

    I'm nearing the end of Rev 0 of a project but have stumbled over the form resizing issue. I understand that to resize based upon a screens resolution you should add a TableLayoutPanel. Well, I did so, basically creating a one row-one column table - (best I can do with this design is one...
  3. J

    Closing forms. Multi-Threading

    I have a main form (form1) and when I press a Load Button, it executes a bunch of code on the main page and then ultimately spawns a new Form (i.e. Form2). However, control ultimately stays with form1, as I am operating in an infinite loop on Form 1. From Form1 Dim Form2 = New ChartingForm...
  4. J

    Coloring X-Axis Zones

    The Charting demo gives an example of color zones on the chart area, this case 3 rows of colors associated with different custom labels, High, Medium and Low. Unfortunately, they don't tell you how to implement this in code. I would like to break up my graph into 5 zones of color...
  5. J

    Calendar Control: Highlighting specific not nessarily consecuitve days in a month

    I haven't been able to figure out how to highlight (provide background color to cell) or circle specific dates on a calendar. It appears that there is a way to do this with ASP.net but have not seen any mechanism to do this with VB.net. I will be highlighting usually not necessarily a single...
  6. J

    Y-axis not redrawing

    I have a series of charts which I generate dynamically, and I am able to drill down and drill back up. Instead of disposing of charts and then recreating them (Chart1 = New Chart()) as this created all sorts of problems for me (i.e., broken object references), I create all charts once at the...
  7. J

    Adding Legends to charts programatically

    I am totally missing how to add a legend to a chart programmatically (versus dragging a chart object into designer). I thought this was done similar to creating a series or chart area. For example, Dim Legend1 As New Legend() Chart2.Legends.Add(Legend1) This leads to the error: The chart...
  8. J

    Controlling one form from another

    I have two forms: Form1 and Form2. I have a button on Form1, but eventually move to form 2 where I end up in a looping structure that I may want to break out of. One way to break out of it would be to respond to the button click event on Form1. How do I access an event from Form1 from the...
  9. J

    Modifying Row Values based on queries.

    I have a series of columns whose values will need to be updated based upon queries. I need to update starting from the first row and going through the last. The only way I could think to do this was to add a unique identifier to each row (basically a row number) and based on queries...
  10. J

    Is there any way to make use of variable names as part of a class structure

    Here I have an assignment statement: ThisYear.Item(j).Jan.Wkx_HrBlk1 = GetHrBlocksPerMonth(HRBLK1) Jan corresponds to the month January. Is there any way to insert a variable in place of Jan, which can also assume Feb, Mar, Apr, etc. if assigned to do so? Class Structure Below Public...
  11. J

    Question Problem Clearing DataViewGrid

    I've seen a number of people bringing up this issue on the VB.NET 2010 but none of the suggestions end up working for me. I fill the DataGridView manually using DataGridView1.DataSource = dt but when I want to clear the Grid to enter more data, using some combination of the following...
  12. J

    Creation of subclasses

    I am looking to average a number of events occurring over two hour blocks throughout the week, and over every week in the month, across a number of months For example, I would like a structure such as this MonthOfApril.Week1.HrBlk3, where there will be a total of 12 Block Hours, 4 or 5 weeks...
  13. J

    DateTime.ParseExact issues

    I am reading Exif data and my DateTime is retrieved and converted to string from ascii and is of the form "2011:05:11 21:28:56" or with the format "yyyy:MM:dd HH:mm:ss". The relevant code snippet is posted below. VB.Net 2010 complains that the "String was not recognized as a valid DateTime."...
  14. J

    Serial Communication

    I want to take a number such as 600 (0x0258) and send these hex values to a C-based system which is assigning char's to the received bytes and rebuilding to the original number. Currently, I am converting to bytes in VB.Net but it is not giving me the expected outcome (because of the ascii...
Back
Top