Search results

  1. J

    launch Paint 3d

    Not really, that would be extremely unnatural the way the program works. I think I'm going to have to park it and go back to using Paint (which works perfectly) for now. Thanks for the replies anyway.
  2. J

    launch Paint 3d

    This is getting a little frustrating. I replaced pInfo.FileName = "mspaint.exe" pInfo.Arguments = """" + System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) & "\DrawingTemplate.bmp" + """" with pInfo.FileName =...
  3. J

    launch Paint 3d

    Thanks for the reply. It's not great that this doesn't work though really is it :-( I'm trying just setting the filename property to the image directly, then would have to insist that the user sets the default program to Paint-3d if they want to use it. Annoying if this is the only way to do it.
  4. J

    launch Paint 3d

    Hi Does anyone know how to launch the new Windows 10 Paint 3d app programmatically? I've got the code below for opening a file for the user to edit with Paint using the ProcessStartInfo class, and I'm trying to do the same with Paint 3d, which seems determined to hide its program location from...
  5. J

    Question Problem with ComboBox - SelectedValue <> SelectedItem

    Hi, Strange issue with the .Net Combobox - the SelectedValue is disagreeing with the SelectedItem. Dim VATCategoryAdapter As New IClarityDataSetTableAdapters.VATCategoryTableAdapter Dim newVATCategoryTable As New IClarityDataSet.VATCategoryDataTable . . newVATCategoryTable.DefaultView.Sort =...
  6. J

    Question Problem deleting row from datagridview

    Got it! Okay, I've finally solved this. Hopefully the fix might help someone else. What I did is below. tmrRefresh is a Timer with an Interval of 1 millisecond. Private Sub dgv1_RowHeightChanged(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewRowEventArgs)...
  7. J

    Question Problem deleting row from datagridview

    Thanks for the reply, but unfortunately the datagridview is unbound :rolleyes: I'm going to try to investigate whether there is any event which occurs immediately after the RowHeightChanged event, or if not, if there is any way of creating one. If you know anything about this I'm all ears...
  8. J

    Question Problem deleting row from datagridview

    Sorry to resurrect this old thread, but I've returned to have another look at this, and I've defined the problem much more clearly. What is boils down to is this: the exception is thrown if I remove rows from the DataGridView on its own RowHeightChanged event. In other words, it looks like you...
  9. J

    Question SQL ORDER BY with ComboBox

    Ahhh, don't worry, I've got it. Classic case of explaining it to others causes you to realise what the problem is yourself. If anyone is interested, SQL views do not like the ORDER BY clause, because they are intended to return unordered data. Therefore, although I had used a workaround to make...
  10. J

    Question SQL ORDER BY with ComboBox

    Hi I've got a TSQL view which looks like this SELECT TOP 100 PERCENT --Needed for the ORDER BY clause N.NHSReasonID ,N.Reason ,N.Notes ,N.TopValue FROM dbo.NHSReason N ORDER BY N.TopValue DESC ,N.Reason In my VB.Net application, I have a ComboBox which uses the above as its datasource...
  11. J

    Question Problem deleting row from datagridview

    Same error unfortunately. I'm sure just about every method I've tried would work under 'normal' circumstances. There's just something bizarre about what I've done and I can't figure out what it is. Thanks anyway.
  12. J

    Question Problem deleting row from datagridview

    Yeah don't worry, I think I'd have to post the entire class for that, so you could see different circumstances in which the method is called. I'll shelve it and come back to it later, make do with the workaround for now. Thanks anyway.
  13. J

    Question Problem deleting row from datagridview

    Okay I've found a hacky workaround for this, so I can live with it for the time being, but I'd still like to resolve it.
  14. J

    Question Problem deleting row from datagridview

    Hi, thanks for the reply. Unfortunately this approach still gives the same error. Probably I should have given some more detail than I did, so here you go: The datagridview shows a list of appointments in chronological order, which are stored in a database table. The idea is that the the user...
  15. J

    Question Problem deleting row from datagridview

    Hi I wonder if anyone could help with this issue. I have an unbound datagridview from which I am trying to remove the top half of all the rows. Currently I am doing this: <CODE> Dim totalRows As Short = dataGridView.Rows.Count For Each indexRow As DataGridViewRow In...
Top Bottom