Recent content by jmcilhinney

  1. jmcilhinney

    Question How to drag and drop files from explorer to elevated with administrator right application in Windows 10?

    That's never an adequate explanation. Please provide a FULL and CLEAR explanation of the problem. Explain what you're trying to achieve, post the actual code that you're using (formatted appropriately) and explain what actually happens when you use it. Links to external information, screenshots...
  2. jmcilhinney

    Question win32_portconnector is used for ?

    With regards to the third question: I would assume that it is because that class is, according to the documentation, specifically for PHYSICAL connection ports. A VM has no physical ports because it's not a physical machine.
  3. jmcilhinney

    Question win32_portconnector is used for ?

    Does this question actually have anything to do with VB.NET, because I'm not seeing anything in your post?
  4. jmcilhinney

    Add multiple values to specified column in datagridview

    I've already shown you how you can perform multiple operations on the row inside the loop so I don't really understand what you're issue is. In my code example, row is a variable like any other, so you can use it like any other variable.
  5. jmcilhinney

    Add multiple values to specified column in datagridview

    A For Each loop over the rows of the table allows you to perform an action for each row in the table. Do you want to perform an action for each row in the table? If so then a For Each loop can be used and is almost certainly the best way to do so. What the action is is irrelevant to the loop itself.
  6. jmcilhinney

    Add multiple values to specified column in datagridview

    The row variable gives you access to the current DataRow so you can do whatever you want with and to that row.
  7. jmcilhinney

    Add multiple values to specified column in datagridview

    If you want to display data in a DataGridView from a database then you ought to be populating a DataTable first and then binding that to the grid via a BindingSource. The changes should be made to the DataTable before binding: For Each row In table.AsEnumerable() Dim hostName = row.Field(Of...
  8. jmcilhinney

    Add multiple values to specified column in datagridview

    You ask about a DataGridView but then your code makes no mention of it and refers only to a DataTable. Are you actually saying that you want to process the rows of a DataTable, getting the host name from one column and setting the corresponding IP address in another? If so, does the IP address...
  9. jmcilhinney

    Question Rows cannot be programmatically added to the DataGridView's rows collection when the control is data-bound.

    You don't have to be an expert in writing code to search the web. The idea is that, when someone mentions a topic, type or member that you are unfamiliar with, you go and do whatever research you can on that, use what you find to the best of your ability and then post back if and when you...
  10. jmcilhinney

    SQL - Between Command - Date range

    As for the issue, if there really is no exception thrown then there are simply no records matching your filters. Of course, there's no guarantee that your filters actually are what you you intend them to be. You should absolutely not be using string concatenation to insert values into SQL code...
  11. jmcilhinney

    SQL - Between Command - Date range

    Firstly, what's the point in creating a new DataTable here: Public DtRpt As New DataTable("DTReport") if you're just going to throw it away and replace it here: DtRpt = GetDataFromTable("SELECT * FROM tblTransaction WHERE TransDate BETWEEN '" & DTPFrom.Value & "' AND '" & DTPTO.Value & "';")
  12. jmcilhinney

    Question Rows cannot be programmatically added to the DataGridView's rows collection when the control is data-bound.

    If you bind data by setting the DataSource then you should be dealing with the data source in code, not the grid. You should also use a BindingSource. Bind your DataTable to the BindingSource and the BindingSource to the grid, then access the data via the BindingSource.
  13. jmcilhinney

    Answered Algorithm formula

    Actually, I also just realised that your AlgoM method has parameters but you completely ignore them inside the method. What's the point of passing in the values and then getting them from the controls again?
  14. jmcilhinney

    Answered Algorithm formula

    Also, you really should be providing meaningful names for all your controls. Having 18 Labels distinguished only by number and 6 NumericUpDowns the same is bad. How are we supposed to know whether you have the right controls in the right place in the calculation if the names are meaningless...
  15. jmcilhinney

    Answered Algorithm formula

    Break the calculation up into individual steps and perform one step per line of code. You can then use the debugger to step through the code line by line and see exactly where the result of a step is not what you expect. You ALWAYS need to debug for yourself first. Even if you still can't work...
Top Bottom