...' Quantity of valves
Dim inthroatdiam = Val(Me.TBoxInThroatDiam.Text) ' Throat Diameter
Dim inthroatarea = CDbl(inthroatdiam * inthroatdiam * 0.7854)
If TBoxInValveDiam.Text = ("") Then
Exit Sub
Else
For Each r As DataGridViewRow In...
I ran into something unexpected on two levels and seek some advice from experienced VS programmers before to make an informed decision.
My partner and I are developing a VB2010 app with the Express version. He's doing he hardware interface portion because that's what he does. A problem surfaced...
On my main form I have a combobox that is bound to data in an access.mdb.
The combobox displays a list of items in the database.
I use another form to add / edit the items displayed in the combobox on the main form.
After editing / adding an item, the combobox on the main form does not...
This is some of jmcilhinney's work that I found elsewhere. I would like to apply this to several text boxes on a form.
This link talks about that process but uses slightly different code that I have been advised to avoid. Force only number entering in textboxes-VBForums
Ok.. the code example...
Is there a better, shorter way to write code like this
Select Case True
Case CheckBox1.Checked = True
Me.Chart1.Series(0).Points.Clear()
Me.Chart1.Series(1).Points.Clear()
Me.Chart1.Series(2).Points.Clear()...
In it's current state, my app will display multiple forms at the same time but you can only access the last form opened. How does one allow for having multiple forms open and allow switching between them?
When the form is opened, the DGV on the form displays 1 empty row. I can't figure out why that row is being displayed and don't want it there. I've looked into subs, load and a grid validation sub for clues. Have commented everything out that had anything to do with the grid. Also looked...
How do you refer to the bottom row in a DGV?
Scenario:
I need to refer to the very last row a DGV to apply some code to it. As data is added that bottom row's index will change [correct ?]
Rows get added via a button control as data is captured. So that bottom row is always a moving target...
I have a situation where dividing by zero can't be avoided until the user enters a value into a textbox. My DGV formulated cell values need the textbox value to complete their math functions. Thus until that happens, "Infinity" populates the respective DGV cells...I read a few articles on how...
...code to format the DGV cells that I have been using.
'Valve Diameter Change
Dim vdiam = Val(Me.TextBox1.Text)
Dim varea = vdiam * vdiam * 0.7854
Dim count = Val(Me.TextBox7.Text)
Dim factor = vdiam * 3.14
For Each r As DataGridViewRow In...
I thought I had things all working....WRONG
I have turned off Option Strict now..
This code copies data from a datagrid on the main form to a datagrid on the dataanalysis form... NOT ANYMORE.
It throws no errors and the confirmation messagebox pops up on the screen like it's supposed to if...
...Dim count = Val(Me.TextBox7.Text) ' Number of valves
Dim vdiam = Val(Me.TextBox1.Text) ' Valve Diameter
Dim varea = vdiam * vdiam * 0.7854 'Valve Area (Diameter^2 * Pi / 4)
For Each r As DataGridViewRow In Me.DGV1.Rows
'Populates CFM -Sq.In Column using...
...Select Case True
Case Me.RBtnPort1.Checked
If r.Cells(10).Value.ToString = ("") Then***BLOWS UP RIGHT HERE*** [Error Message:
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index...
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.PrintForm1.PrintAction = (Printing.PrintAction.PrintToPreview)
Me.PrintForm1.Print(Me, PowerPacks.Printing.PrintForm.PrintOption.ClientAreaOnly)
End Sub
I want...
I would like to enlarge the actual chart area of a chart. The system leaves a lot of dead space that could be utilized. Looking at chart properties / chart area / collections ...there's a setting for inner plot position. It's set to auto 100 / 100. I set auto to false and tried to increase the...
I created a Splash Screen for my application. Initially after creating it, things seemed to function as they did before it was created....with regard to debugging. That is to say when the startup screen was closed, the debugger stopped.
Now for some reason the splash screen is remaining open...
Here's one for you advanced charting guys.....once of which I am NOT..
In my charts I show the series in the legend. It would be a really cool feature if I could allow the user to click on the series in the legend and have it hide, then show that series in the chart.
Is is relatively easy or...
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.