In addition, you can combine Dave's code with mine:
For Each ctr As Control In Me.Controls
If TypeOf ctr Is DataGridView Then
With ctr
FormatDataGridView(ctr)
End With
End If
Next
Regards
Hi.
One thing that crossed my mind is iterating through all controls in the form.
Check if one control is DataGridView, then play something about it.
For example:
For Each ctr As Control In Me.Controls
If TypeOf ctr Is DataGridView Then
With ctr
....
End With...
Hi.
The question is not clear enough for me. I believe that you didn't find any trouble in populating the query result to the form. So, I assume that the problem is how to update the edited data.
But first, you forgot to mention how you updated the database.
According to what I have experienced...
Are you saying that the other.exe's path is unknown?
Dim OtherExe As String() = IO.Directory.GetFiles("E:\", "other.exe", IO.SearchOption.AllDirectories)
If OtherExe.Length = 1 Then
'Found, unique
ElseIf OtherExe.Length = 0 Then
'Not found
Exit Sub
Else
'Found, not unique...
Dear Rick,
Sorry for the long silence.
I setup Actual Windows Manager (the latest demo version) on my Vista PC, create such Modal Form (in VB Net 2005) and did a test. Using the default setting of the Actual Windows Manager, I didn't find any problem in switching to any other Virtual windows...
Seems fine to me, except that you put something in the dlgDatabase's lost focus or similar events.
Another thing that crossed my mind is whether the dlgDatabase form has accept and cancel button set.
Would you tell us more about the dlgDatabase form?
Regards.
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.