it's like this:
i want to close all open child forms in my mdi-container form - but not the container form - , when i confirm an openfiledialog.
the child forms show the contents of a database, and when i confirm the openfiledialog a new database is used in my programme. but i don't want the already open child forms to show the contents of the database used before, so all forms should be closed.
i tried it like this, but without success:
dim c as control<br />
for each c in form1.controls<br />
if type of c is form then<br />
dim f as form = ctype(c, form)<br />
end if<br />
I have created a report on D: Drive and Database(MS-Access) is also in D: Drive.But When I have copied the programme in E: Drive, it is not working.
I think I need to make the connection through coding.
The progress bar you have to set the min and max value and call the increment method when you have made some progress. You can also set the value directly. So your problem is know how far along are you in loading your grid. I am guessing you probably don't know that. So the best you can probably do, is put a timer control which executes every second. When the timer method runs increment the progress bar and refresh the form with Application.DoEvents. So then you users will think some progress is being made.