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.
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...
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...
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...
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...
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...
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")...
I have a DataGridView that is populated by a DataSet. I'm attempting to return the value of a CheckBox in the DataGridView so I can color the row orange:
For Each band As DataGridViewBand In DataGridView1.Rows
If DataGridView1.Rows(band.Index).Cells("HOLD").Value =...
I'm trying to figure out which version of Visual Studio 2010 I need to be able to connect to SQL database on a server. Microsoft's website is so overun with 2012 stuff that I can't find a concise answer.
My applications are simple and will just require basic read/write to tables. Can anyone...
I'm a newb to Vb.net, but i've written a few things in VBA. I'm attempting to populate cells in Excel and failing miserably. Here's what I have so far (I grabbed the Dims from other parts of the code to show them here. The part that is not working is opening/filling in the Cell values...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.