Search results for query: *

  1. F

    Thank you!!

    No problem. I don't know why moderators freak out about resurrecting old threads. If the information is still relevant then why start a new thread..?
  2. F

    Add a horizontal line (X Axis) to existing chart. (Target line)

    For anyone interested I was able to find it: The Position is the Y interval where you want to display your line: Chart1.ChartAreas(0).CursorY.Position = 3 Chart1.ChartAreas(0).CursorY.LineWidth = 3 Chart1.ChartAreas(0).CursorY.LineColor = Color.Orange
  3. F

    Add a horizontal line (X Axis) to existing chart. (Target line)

    Can anyone show me how to add a horizontal (X Axis) line to an existing chart? This will be the target line for my data. I have bar graph for RMA's per month, I want to set a goal line of 3 per month and make it a red line.
  4. F

    Question Insert a value in a DataGridview - value fails to insert

    I respectfully disagree with not be able to handle an Enter event of a Tabpage. The Event is there and available to be handled, the fact that it does not work is a fault in Visual Studio, not in the use of it. Using SelectedIndexChanged is a nice work around, thank you for the suggestion...
  5. F

    Question Insert a value in a DataGridview - value fails to insert

    Thank you for your reply jmcilhinney I was beginning to lose hope. Forgive my description of standalone. It was simply a descriptive word for 'separate'. I originally included the code in a sub than handled TabPage3.Enter and that loaded the Grid and displayed the inserted column but failed...
  6. F

    Question Insert a value in a DataGridview - value fails to insert

    I'm not able to figure out why this will not insert a value into the datagridview cell: Dim SDateCol As New DataGridViewTextBoxColumn SDateCol.HeaderText = "StartDate" SDateCol.Name = "StartDate" DataGridView5.Columns.Insert(4, SDateCol) Dim cS As...
  7. F

    Resolved return all letters left of number in string

    Yes, in my search for this solution I read a few times about LINQ in place of loops. I'm going to pop this one in there too to see how it works. Thank you.
  8. F

    Resolved return all letters left of number in string

    Works perfectly, thank you! I really thought there was a simple one-liner for this particular function, but your solution works great.
  9. F

    Resolved return all letters left of number in string

    I'm trying to return only the first letters before the first number in as string. I tried several iterations of Regex and gave up on that. I want to do something like: [CODE] Dim source as String = "CP1,CP3-CP5,CP8" Dim rc As String = Left(source, "[0-9]")) [\CODE] In this instance I just...
  10. F

    Resolved Get all column names from DataGridView

    I'm attempting to return all column names from a DataGridView. I tried: Dim ch As String = DataGridView1.Columns(DataGridView1.CurrentCell.ColumnIndex).Name() But this only returns the currently selected cell. I think it can be done with a For Each Loop but I don't know the syntax for looping...
  11. F

    Resolved Combine array of numbers into dashed number (1,2,3,4) becomes (1-4)

    Wow, that is a lot more elegant than what i was trying. I tweaked it to sort the array before smashing it down. Your solution works great: Dim numbers = {1, 2, 15, 4, 10, 12, 13, 14, 3} Array.Sort(numbers) Dim first As Integer, groups As New List(Of String)...
  12. F

    Resolved Combine array of numbers into dashed number (1,2,3,4) becomes (1-4)

    That looks promising, I saw that one earlier. I'm in the middle of trying to translate another one i found when searching "Hyphenate consecutive numbers in array". I will post it when it is less ugly, and then I will try yours as well.
  13. F

    Resolved Combine array of numbers into dashed number (1,2,3,4) becomes (1-4)

    The data will be read in from an Excel file into a DataTable Ultimately the datatable would include these values: C1, C2, C3, C4, C10, C12, C13, C14, C15 The result should be: C1-C4, C10, C12-C15 For proof of concept I was just going to start with the numerals and get after the alpha...
  14. F

    Resolved Combine array of numbers into dashed number (1,2,3,4) becomes (1-4)

    Does anyone know of a method to combine 1,2,3,4 into 1-4? I know normally people ask the opposite, but I need this for a specific machine that wants the numbers grouped together. My actual issue will be more like C1, C2, C3, C4 becomes C1-C4. I've looked at Join and Split, but these don't seem...
  15. F

    Failed to sign bin\Debug\app.publish\\setup.exe. SignTool Error: No certificates

    Bah... nevermind. It was the stupid signing certificate that was expired. The fix is this: To access the Signing page With the project node selected in Solution Explorer, from the Project menu, click Properties (or right-click the project node in Solution Explorer, and click Properties). In...
  16. F

    Failed to sign bin\Debug\app.publish\\setup.exe. SignTool Error: No certificates

    I get the following error message when attempting to Publish my Visual Studio VB application: - Failed to sign bin\Debug\app.publish\\setup.exe. SignTool Error: No certificates were found that met all of the given criteria. - Cannot publish because the project failed to build. I've attempted...
  17. F

    DataGridview As Variable?

    Opps! I forgot to put 'New' in front of DataGridView: Dim TestGrid As New DataGridView = DataGridView1 Me.TestGrid.Sort(TestGrid.Columns("ShipDate"), ListSortDirection.Descending)
  18. F

    DataGridview As Variable?

    This might be simple, but it eludes me. I need to assign a DataGridView to a variable, but i'm getting an intellisense error when trying to use it: TestGrid is not a member of 'myForm' Dim TestGrid As DataGridView = DataGridView1 Me.TestGrid.Sort(TestGrid.Columns("ShipDate")...
  19. F

    Question Return the value of a Checkbox from a DataGridView

    Thank you! That is a very easy to understand explanation. I've only been coding for about 7 months. I've written a pretty big application for my company that interfaces with our product handling SQL database and has quite a few stand alone modules for handling time clock, corrective actions...
Back
Top