This is getting a little frustrating. I replaced
pInfo.FileName = "mspaint.exe"
pInfo.Arguments = """" + System.Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) & "\DrawingTemplate.bmp" + """"
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.
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...
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
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)...
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...
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...
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...
I've got a TSQL view which looks like this
SELECT TOP 100 PERCENT --Needed for the ORDER BY clause
In my VB.Net application, I have a ComboBox which uses the above as its datasource...
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.
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.
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...
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:
Dim totalRows As Short = dataGridView.Rows.Count
For Each indexRow As DataGridViewRow In...