Search:

Type: Posts; User: phuz

Page 1 of 2 1 2

Search: Search took 0.07 seconds.

  1. Re: CalloutAnnotations being troublesome (arrays & properties)

    I like solving my own problems, so maybe this will help someone else in the future.
    If you create the annotations in the GUI (no need to modify them), you can cast them as the appropriate annotation...
  2. CalloutAnnotations being troublesome (arrays & properties)

    I have some charts where I want to display some annotations and I noticed that I can't set the CalloutAnnotation.Text property in the code. Why?!?
    So I created the annotation in the code, which...
  3. Replies
    0
    Views
    522

    Empty space before series begins

    For some reason, when I set my start time for these charts at the beginning of the data, I get this white space. To make sure I wasn't crazy, I changed my start time (starttime =...
  4. Replies
    1
    Views
    484

    VS 2013 Fixed grid/labels vs. intervals on Charts

    Before I just end up doing this programatically based on math, I wanted to check with the forum. I am generating charts based on cycles of different lengths of time. I know how the interval option...
  5. Re: Chart data does not appear properly if queried in backgroundworker

    This does not work:

    mainchart.DataSource = SQL.SQLDataSet


    This works:

    mainChart.Series(0).Points.DataBindXY(SQL.SQLDataset.Tables(0).DefaultView, "TimeLocal",...
  6. Re: Chart data does not appear properly if queried in backgroundworker

    OK, pretty easy to get the second table populated within the dataset. Just ran two queries and that worked. But when I bind the dataset, only the first series shows up, despite there being two...
  7. Re: Chart data does not appear properly if queried in backgroundworker

    I think I have the background work understood now. I'm running into issues trying to take the results of two unique queries and put them into one data binding, but having trouble adding the second...
  8. Re: Chart data does not appear properly if queried in backgroundworker

    Funny you say that. About 43000 points if a person were to look at several days of data on one chart. Usually less.
    I know I was doing it wrong, but I was doing it for explanation.
    I'll play...
  9. Re: Chart data does not appear properly if queried in backgroundworker

    So, let's say I am able to query all the data I need in the worker thread, but now comes the issue of adding that data to the chart. Unfortunately, you can only bind one data source, which means if...
  10. Re: Chart data does not appear properly if queried in backgroundworker

    Got it. Thanks.
  11. Re: Get Minimum/Maximum datapoint values from axis on chart

    Thanks, that works.
  12. Get Minimum/Maximum datapoint values from axis on chart

    I stumbled on this a few days ago and it seems I lost it. I know there is a method or property to get the minimum and maximum values of a particular axis. I have two data sets and I want to find...
  13. Re: Chart data does not appear properly if queried in backgroundworker

    OK, I found a workaround/solution, but I don't know that I understand why I have to do this when it works fine without it in the UI thread.


    ...
  14. Re: Chart data does not appear properly if queried in backgroundworker

    I was hoping you would respond.

    So I moved everything into the worker, and refreshed the UI at the completion. However, the scaling is still misbehaving. It only scales properly when in the UI...
  15. Chart data does not appear properly if queried in backgroundworker

    I am trying to utilize a backgroundworker to prevent the UI from freezing while querying large amounts of data, but I am running into some problems.

    I tried running the SQL query in the .DoWork...
  16. Thread: Vb6cli.exe

    by phuz
    Replies
    1
    Views
    2,834

    Re: Vb6cli.exe

    I also need this.
  17. Replies
    10
    Views
    11,644

    Re: Updating / Refreshing Chart with new data

    Wow, yeah you're right. I copied this base code from an example and neglected to catch that I am building a new chart each time. I'll revise this a bit and make another attempt at it.
    Thanks for...
  18. Replies
    10
    Views
    11,644

    Re: Updating / Refreshing Chart with new data

    Sorry, I thought I posted that in the first post, but I had already tried that.

    Latest code:

    Dim ChartArea1 As ChartArea = New ChartArea()
    Dim Series1 As Series = New Series()...
  19. Replies
    10
    Views
    11,644

    Re: Updating / Refreshing Chart with new data

    Yup, that was dumb. Moved it to a public i as integer and the data moves now.
    So if I do Chart2.ResetAutoValues, the x/y ranges change when I update the chart. This is not true for the Chart1,...
  20. Replies
    10
    Views
    11,644

    Re: Updating / Refreshing Chart with new data

    Either works fine and has no bearing on the subroutine.

    For the heck of it, I added a chart control to the form (Chart 2) and put some more code under the same button click as a test.

    ...
  21. Replies
    10
    Views
    11,644

    Re: Updating / Refreshing Chart with new data

    Thanks, but that did not work.
  22. Replies
    10
    Views
    11,644

    Updating / Refreshing Chart with new data

    I'm struggling here trying to get a simple chart to update with new data when a button is clicked. StartDate and EndDate come from datetimepickers. If I change the dates in runtime, it grabs the...
  23. Replies
    2
    Views
    754

    Re: Operation timed out (but why?)

    Thank you!
  24. Replies
    2
    Views
    754

    Operation timed out (but why?)

    I am using a wunderground.com feed to grab weather to display in my app. The data source is valid, and I have the timer ticking every 300 seconds as to not overload the connection, but it's causing...
  25. Re: PInvoke stack imbalance when using SetThreadExecutionState

    Changed to:
    Private Declare Function SetThreadExecutionState Lib "kernel32" (ByVal esFlags As Integer) As Integer and now it works without throwing the exception. Hopefully I didn't break the...
  26. PInvoke stack imbalance when using SetThreadExecutionState

    I have a tablet that runs a virtual dash for my drag car. While the software is running, I want to prevent any sleep mode, so I added this code to the top of my vb and I call the function...
  27. Re: Trouble with Form.Show() on a TabControl

    Hahaha. I...am...an...idiot. :)
    I had the form successfully called; however, I incorrectly placed the Me.Close on the new form and it ended up on the MyBase.Load so it was closing as soon as it was...
  28. Re: Trouble with Form.Show() on a TabControl

    Because I have tested it on a similar form with tabcontrol removed.
  29. Re: Trouble with Form.Show() on a TabControl

    1. My windows form does not have a property for AlwaysOnTop
    2. No
    3. I'm not sure the best way to list all these for you.
  30. [RESOLVED] Trouble with Form.Show() on a TabControl

    I have some specific events that need to show a supplemental form. On my main form, I have a TabControl which encompasses the entire form space. During the event, I do a simple Form2.Show() but it...
  31. Re: Custom .NET application connecting to OPC source

    MyOPCItems(1) = OPCGroup1.OPCItems.AddItem("[MixerRecipe]N7:0", 1)
  32. Custom .NET application connecting to OPC source

    I recently worked on an Excel VBA project and now I want to take it to the next level. I am running VS2010 and trying to write an application to connect to an RSLinx OPC data source. The code...
  33. Re: [RESOLVED] Worksheet_Calculate not working when grabbing data from OPC server

    Yup...I know how it all works.
    Thanks.
  34. Re: Worksheet_Calculate not working when grabbing data from OPC server

    Works for me. Thanks! :D
  35. Re: Worksheet_Calculate not working when grabbing data from OPC server

    Sure did!! It's OK. My method is working rather well. I do have a question regarding OPC connection, though. When I create the initial connection, I am polling 300+ integers. I can watch my OPC...
  36. Re: Worksheet_Calculate not working when grabbing data from OPC server

    I have a routine which updates cell values from an OPC data source. When it gets to the line where it updates the cell, it jumps out of that routine and over to the Worksheet_Change routine, and it...
  37. Re: Worksheet_Calculate not working when grabbing data from OPC server

    No, it still broke out of the other routine as soon as a value changed.
  38. Re: Worksheet_Calculate not working when grabbing data from OPC server

    Thanks. I ended up going a different route. I have a subroutine that runs every 2 seconds and it updates all the values that I am polling and I just added some code in that routine which looks at...
  39. Re: Worksheet_Calculate not working when grabbing data from OPC server

    I switched to the Worksheet_Change(ByVal Target As Range) event and it sort of works, but not the way I want.

    It seems to be breaking out of the current function every time a value changes.

    ...
  40. Re: Worksheet_Calculate not working when grabbing data from OPC server

    The VBA code is on Sheet1, which is where the values are changing.
Results 1 to 40 of 41
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width