Search results for query: *

  • Users: tim8w
  • Order by date
  1. T

    Resolved MSChart. ChartType: Line, LineAnnotation drawing before the data of the line chart.

    I forgot to mention that my programs cycle through 4 different graphs and they are rebuilt each time. I forgot to remove the LineAnnotation from the Chart. When I did that, everything worked perfect. Sorry to bother people. Hopefully it will help somebody else. So now when it cycles to the next...
  2. T

    Resolved MSChart. ChartType: Line, LineAnnotation drawing before the data of the line chart.

    I have a MSChart that is using CahertType of Line. After the Line Chart has been created, I add a LineAnnotation to display a line where the boss wants the goal to be and then add it to the Chart. When it displays, it flashes the Chart empty except for the LineAnnotation and then re-flashes the...
  3. T

    Resolved Stored Procedure doesn't appear to be returning the Returned value to C#

    cjard, Thanks for the input. Does MERGE distinguish whether it UPDATED or INSERTED? That is at the crux of the problem I had. I needed to know which action was completed.
  4. T

    Resolved Stored Procedure doesn't appear to be returning the Returned value to C#

    Thanks. I changed to using a ReturnValue in the C# code and that solved the problem. mySQLParam = myCmd.Parameters.Add("@Inserted", SqlDbType.Int); myCmd.Parameters["@Inserted"].Direction = ParameterDirection.ReturnValue; Int32 iInserted = 0; myCmd.ExecuteNonQuery(); iInserted = (int)...
  5. T

    Resolved Stored Procedure doesn't appear to be returning the Returned value to C#

    So I have a StoredProcedure that either Updates or Inserts a record. The SP is as follows: USE [FPY] GO /****** Object: StoredProcedure [dbo].[insupd_tblMRBHistory_AB] Script Date: 2025-01-10 8:02:00 AM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE...
  6. T

    Question MSChart. How do I find the XY position of the Series Label for a StackedColumn ChartType?

    You were kind of correct. Apparently, ValueToPixelPosition(0) is not the first Bar. Changing the code to ValueToPixelPosition(1) for the first bar and subtracting 1/2 the Label width solved it. Thanks for the help.
  7. T

    Question MSChart. How do I find the XY position of the Series Label for a StackedColumn ChartType?

    I have a StackedColumn Chart. I would like to draw text at the X position of the Series centerpoint and a Y position near the top of the chart. I am having trouble figuring out where the Series XY position is. The closest thing I have been able to achieve is shown below: I achieved this by...
  8. T

    Resolved Chart control. I need to show the Label of the bar in the middle of the bar not on top

    That worked pretty good after a couple of tweaks. Thanks!
  9. T

    Resolved Chart control. I need to show the Label of the bar in the middle of the bar not on top

    I need to show the Label of the bar in the middle of the bar not on top. To get the original photo below, I have set the series flag IsValueShownAsLabel to true. The desired label position is shown in the second screenshot. Original: Desired:
  10. T

    Resolved Changing the FontSize of the DataGridView ErrorText

    Sky, Thanks. I'll look into that
  11. T

    Resolved Changing the FontSize of the DataGridView ErrorText

    Is there a way to change the FontSize of the ErrorText displayed in DataGridView or a way to override the default behavior and draw it yourself? I assume that it is using the FontSize of the Row or Cell?
  12. T

    Resolved Excel Interop Autofilter Range

    Turns out I left out an important piece of information. The Worksheet that the Range is working on was created by doing a Worksheet.Copy(). I did a little research and found the following quote which explains the problem I think: So I did the Filter on the Original first, then copied it and...
  13. T

    Resolved Excel Interop Autofilter Range

    I need the following filter to work in C#. Here is the working Macro in Excel VBA: ActiveSheet.Range("$A$1:$XFC$13214").AutoFilter Field:=6, Criteria1:= ">=1/1/2024", Operator:=xlAnd, Criteria2:="<=1/31/2024" Here is what I thought was the C# equivalent: excelRange.AutoFilter(Field: 6...
  14. T

    Question Can I call Business Objects from C# WinForms?

    I haven't. I needed data and was not given access to the data directly. The JD Edwards Team ran Business Objects generating an attached CSV file. Unfortunately, that process took 15 minutes and I needed closer to real-time than that so I was given a View on a nearby server. That got me pretty...
  15. T

    Question Can I call Business Objects from C# WinForms?

    My company uses BusinessObjects on top of SQL Server. Is there a way I can call BusinessObject functions from within WinForms C#.Net?
  16. T

    Resolved Defining a new class that contains another class

    Skydiver, Thanks. That worked perfectly!
  17. T

    Resolved Defining a new class that contains another class

    .Net 4.5. So I did do the initializing in the constructor, but I get the following output: instead of the first two lines from above followed by the ProtocolSetup which looks like this: It's getting there for sure. Not sure what else I need to do to make it display properly. I haven't...
  18. T

    Resolved Defining a new class that contains another class

    I have a class defined that I am going to be assigning to a PropertyGrid. The class is defined as a normal class with properties, but one of the properties is another class. This worked just fine in Visual Basic, but in C# I get an error on the line that has the inclusion of the other class...
  19. T

    Question Autocomplete Listbox

    Is there a way to add Autocomplete like ComboBox has to the ListBox control?
Back
Top Bottom