Search results for query: *

  • Users: joefa
  • Order by date
  1. J

    Clickonce - Server connection timed out

    Hi I'm trying to publish a Windows application using Clickonce. I've built the project in Release/Any CPU. This is what I'm doing: - Right click on the project and Publish - Specify the location ftp://mywebsite.com/Subfolder/ and click Next - Choose From a website, enter the URL...
  2. J

    Resolved Help with modifying image

    Don't worry, I've found a third-party library which does what I need, thanks anyway
  3. J

    Resolved Help with modifying image

    Hi Please could someone explain what I'm doing wrong here? This function is meant to load an image from project resources, draw some lines on top of it, then return it. The collection of lines is definitely legit, and the DrawLine command is executed in the loop. But it just returns a blank...
  4. J

    HttpWebRequest JSON request returning 401 Unauthorised

    Hi I'm trying to post a JSON request to a web service. I've attached the code I'm using below, as it currently stands. It's returning a 401 - Unauthorised error from the server. Variables: uri = the path to the service in Uri format jsonDataBytes = the JSON request serialised into a byte array...
  5. 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.
  6. 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 =...
  7. 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.
  8. 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...
  9. 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 =...
  10. 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)...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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.
  16. 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.
  17. 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.
  18. 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...
  19. 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...
Back
Top