473,728 Members | 1,675 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Working With Multiple Form Instances

"lyle" <ly************ @gmail.comwrote in message
news:48******** *************** ***********@f3g 2000hsg.googleg roups.com...
When I use multiple instances of forms it is through code like:

Dim ADetailForms(0 To 1) As [Form_Faculty Details]
Public Sub OpenSomeFormIns tances()
Dim z As Long
For z = 0 To 1
Set ADetailForms(z) = New [Form_Faculty Details]
With ADetailForms(z)
.Visible = True
.Caption = "Look Ma Multiple Distinguishable Instances of
a Form " & z
End With
Next z
End Sub

Public Sub ZapAllThoseForm Instances()
Erase ADetailForms
End Sub
Question for you. I'm doing something similar, only, instead of opening the
forms all at once, I'm opening them as needed. I have a main form with
multiple records; and then I have a pop-up form that the user opens with
button. The pop-up form contains one record relating to the current record
in the main form (but from a different table).

Thus, the user is in a record in the main form; clicks the pop-up button.
The pop-up form opens with information for that record. The user then goes
to a different record in the main form; clicks the pop-up button, and a
second instance of the pop-up form opens with information about the second
record. And so on.

Now, all of this is working fine. The code I'm using is as follows:

Dim mfrmViewDescrip tion() As Form_frmViewDes cription

Private Sub cmdOpen_Click()

Dim i As Integer

ReDim Preserve mfrmViewDescrip tion(UBound(mfr mViewDescriptio n) + 1)
i = UBound(mfrmView Description)

Set mfrmViewDescrip tion(i) = New Form_frmViewDes cription
mfrmViewDescrip tion(i).Visible = True

End Sub

My question is this. Since I'm using a dynamic array that grows each time
the user opens a form, will there be a resource issue. I have:

Erase mfrmViewDescrip tion

in the Form_Close event, so that's fine. But, as long as the form is open,
the array will just keep growing.

Say, for example, that the user opens three instances of the form. The array
has three elements. They close all three instances, and then, sometime
later, while the main form is still open, they open another 4 instances. Now
the array has seven elements. And so on.

Two thoughts I have on this.

1) Re-use array elements by checking if the form corresponding to element 1,
element 2, etc., are still open. If not, then re-use that element. (Since
the array elements aren't used for anything except opening the form, it
doesn't seem like this would be a problem.) But how would I do that?

2) When the user closes the last of the open form instances, call Erase to
clear the array. That would be fine. But how would I know when the last form
was closed?

3) As a variation on (2): when the cmdOpen button is clicked, first check if
any instances of the form are open. And, if not, then call Erase before
opening the first instance. That would be fine. Except, as per (1), how
would I tell if an instance is open? (Although I guess here a general form
open routine would work, so maybe that's the answer).

Anyway, that's my situation. Any thoughts or ideas would be appreciated.
Thanks!

Neil
Nov 25 '07 #1
5 3308
On Nov 25, 3:14 pm, "Neil" <nos...@nospam. netwrote:
"lyle" <lyle.fairfi... @gmail.comwrote in message

news:48******** *************** ***********@f3g 2000hsg.googleg roups.com...
When I use multiple instances of forms it is through code like:
Dim ADetailForms(0 To 1) As [Form_Faculty Details]
Public Sub OpenSomeFormIns tances()
Dim z As Long
For z = 0 To 1
Set ADetailForms(z) = New [Form_Faculty Details]
With ADetailForms(z)
.Visible = True
.Caption = "Look Ma Multiple Distinguishable Instances of
a Form " & z
End With
Next z
End Sub
Public Sub ZapAllThoseForm Instances()
Erase ADetailForms
End Sub

Question for you. I'm doing something similar, only, instead of opening the
forms all at once, I'm opening them as needed. I have a main form with
multiple records; and then I have a pop-up form that the user opens with
button. The pop-up form contains one record relating to the current record
in the main form (but from a different table).

Thus, the user is in a record in the main form; clicks the pop-up button.
The pop-up form opens with information for that record. The user then goes
to a different record in the main form; clicks the pop-up button, and a
second instance of the pop-up form opens with information about the second
record. And so on.

Now, all of this is working fine. The code I'm using is as follows:

Dim mfrmViewDescrip tion() As Form_frmViewDes cription

Private Sub cmdOpen_Click()

Dim i As Integer

ReDim Preserve mfrmViewDescrip tion(UBound(mfr mViewDescriptio n) + 1)
i = UBound(mfrmView Description)

Set mfrmViewDescrip tion(i) = New Form_frmViewDes cription
mfrmViewDescrip tion(i).Visible = True

End Sub

My question is this. Since I'm using a dynamic array that grows each time
the user opens a form, will there be a resource issue. I have:

Erase mfrmViewDescrip tion

in the Form_Close event, so that's fine. But, as long as the form is open,
the array will just keep growing.

Say, for example, that the user opens three instances of the form. The array
has three elements. They close all three instances, and then, sometime
later, while the main form is still open, they open another 4 instances. Now
the array has seven elements. And so on.

Two thoughts I have on this.

1) Re-use array elements by checking if the form corresponding to element 1,
element 2, etc., are still open. If not, then re-use that element. (Since
the array elements aren't used for anything except opening the form, it
doesn't seem like this would be a problem.) But how would I do that?

2) When the user closes the last of the open form instances, call Erase to
clear the array. That would be fine. But how would I know when the last form
was closed?

3) As a variation on (2): when the cmdOpen button is clicked, first check if
any instances of the form are open. And, if not, then call Erase before
opening the first instance. That would be fine. Except, as per (1), how
would I tell if an instance is open? (Although I guess here a general form
open routine would work, so maybe that's the answer).

Anyway, that's my situation. Any thoughts or ideas would be appreciated.
Thanks!

Neil
I guess you are creating a stack of sort_of_sub froms. And you don't
want the stack to get too high, lest it's components use too many
resources.
Off the top of my head I might try creating a dimensioned array of the
forms, let's say 0 to 9. And I'd use that with a counter. So the
counter would be zero when I opened the first sort_of_sub form and I'd
use the zeroeth element in the array. And I'd increment the counter.
Next opening the counter would be at one. So I'd use the oneth element
of the array. Hmmm. So what will I do when I get to ten? The array has
only (0 to 9) elements. Well if I Use Counter Mod 10 instead of
Counter, then I'll just keep using the ten forms (array elements) over
and over, always closing the ten- ago form and reusing it. For
instance the thirteenth form opened would close the third (Element 2)
and use that instance of the form. So would the 23rd.
So I limit the number of open sort_of_sub forms to 10. I have a
predictable rule for what to open and what to close. And I don't have
to redim my array.
And at the end I can still erase the array and clean up all my
pointers.
Well, I'm trying to handicap some Woodbine races here while I write
this, so it may be total nonsense.
Nov 25 '07 #2

"lyle" <ly************ @gmail.comwrote in message
news:51******** *************** ***********@b40 g2000prf.google groups.com...
On Nov 25, 3:14 pm, "Neil" <nos...@nospam. netwrote:
>"lyle" <lyle.fairfi... @gmail.comwrote in message

news:48******* *************** ************@f3 g2000hsg.google groups.com...
When I use multiple instances of forms it is through code like:
Dim ADetailForms(0 To 1) As [Form_Faculty Details]
Public Sub OpenSomeFormIns tances()
Dim z As Long
For z = 0 To 1
Set ADetailForms(z) = New [Form_Faculty Details]
With ADetailForms(z)
.Visible = True
.Caption = "Look Ma Multiple Distinguishable Instances of
a Form " & z
End With
Next z
End Sub
Public Sub ZapAllThoseForm Instances()
Erase ADetailForms
End Sub

Question for you. I'm doing something similar, only, instead of opening
the
forms all at once, I'm opening them as needed. I have a main form with
multiple records; and then I have a pop-up form that the user opens with
button. The pop-up form contains one record relating to the current
record
in the main form (but from a different table).

Thus, the user is in a record in the main form; clicks the pop-up button.
The pop-up form opens with information for that record. The user then
goes
to a different record in the main form; clicks the pop-up button, and a
second instance of the pop-up form opens with information about the
second
record. And so on.

Now, all of this is working fine. The code I'm using is as follows:

Dim mfrmViewDescrip tion() As Form_frmViewDes cription

Private Sub cmdOpen_Click()

Dim i As Integer

ReDim Preserve mfrmViewDescrip tion(UBound(mfr mViewDescriptio n) + 1)
i = UBound(mfrmView Description)

Set mfrmViewDescrip tion(i) = New Form_frmViewDes cription
mfrmViewDescrip tion(i).Visible = True

End Sub

My question is this. Since I'm using a dynamic array that grows each time
the user opens a form, will there be a resource issue. I have:

Erase mfrmViewDescrip tion

in the Form_Close event, so that's fine. But, as long as the form is
open,
the array will just keep growing.

Say, for example, that the user opens three instances of the form. The
array
has three elements. They close all three instances, and then, sometime
later, while the main form is still open, they open another 4 instances.
Now
the array has seven elements. And so on.

Two thoughts I have on this.

1) Re-use array elements by checking if the form corresponding to element
1,
element 2, etc., are still open. If not, then re-use that element. (Since
the array elements aren't used for anything except opening the form, it
doesn't seem like this would be a problem.) But how would I do that?

2) When the user closes the last of the open form instances, call Erase
to
clear the array. That would be fine. But how would I know when the last
form
was closed?

3) As a variation on (2): when the cmdOpen button is clicked, first check
if
any instances of the form are open. And, if not, then call Erase before
opening the first instance. That would be fine. Except, as per (1), how
would I tell if an instance is open? (Although I guess here a general
form
open routine would work, so maybe that's the answer).

Anyway, that's my situation. Any thoughts or ideas would be appreciated.
Thanks!

Neil

I guess you are creating a stack of sort_of_sub froms. And you don't
want the stack to get too high, lest it's components use too many
resources.
Off the top of my head I might try creating a dimensioned array of the
forms, let's say 0 to 9. And I'd use that with a counter. So the
counter would be zero when I opened the first sort_of_sub form and I'd
use the zeroeth element in the array. And I'd increment the counter.
Next opening the counter would be at one. So I'd use the oneth element
of the array. Hmmm. So what will I do when I get to ten? The array has
only (0 to 9) elements. Well if I Use Counter Mod 10 instead of
Counter, then I'll just keep using the ten forms (array elements) over
and over, always closing the ten- ago form and reusing it. For
instance the thirteenth form opened would close the third (Element 2)
and use that instance of the form. So would the 23rd.
So I limit the number of open sort_of_sub forms to 10. I have a
predictable rule for what to open and what to close. And I don't have
to redim my array.
And at the end I can still erase the array and clean up all my
pointers.
Well, I'm trying to handicap some Woodbine races here while I write
this, so it may be total nonsense.

In my case, it's not really an issue of too many forms being open at once. I
can't imagine the user needing to open more than 3 or 4 at a time. The
problem is that when they close the form, the array elements wouldn't get
cleared. So the array would just keep getting bigger and bigger, even though
the form each element refers to is closed. So:

1) Is it a problem to let the array get larger and larger, if there are only
a few forms open at a time, and the previous array elements all refer to
forms that have been closed?

2) Is there a way to tell if an array element refers to a form that's still
open, so that, if it doesn't, I can reuse that array element?

3) Or, is there a way to tell when all forms have been closed, so I can just
use Erase?

The way the user will be using this is: one a form; go to another record;
open another form; go to another record; open a form; close one of the open
forms; go to another record; open another form; then close all forms; then,
sometime later, open another form; etc.

In other words, the number of forms open will go up and down, from zero to
probably about 3 or 4. But they won't all be open and closed at the same
time or in sequence. The user may not need the form that was open 3rd in
sequence anymore, and close it, but still leave #1 open; and so on.

So I think the above 3 questions would address handling of the resources
related to this issue.

Thanks!

Neil
Nov 25 '07 #3
Neil wrote:
"lyle" <ly************ @gmail.comwrote in message
news:51******** *************** ***********@b40 g2000prf.google groups.com...
>On Nov 25, 3:14 pm, "Neil" <nos...@nospam. netwrote:
>>"lyle" <lyle.fairfi... @gmail.comwrote in message

news:48****** *************** *************@f 3g2000hsg.googl egroups.com...

When I use multiple instances of forms it is through code like:
Dim ADetailForms(0 To 1) As [Form_Faculty Details]
Public Sub OpenSomeFormIns tances()
Dim z As Long
For z = 0 To 1
Set ADetailForms(z) = New [Form_Faculty Details]
With ADetailForms(z)
.Visible = True
.Caption = "Look Ma Multiple Distinguishable Instances of
a Form " & z
End With
Next z
End Sub
Public Sub ZapAllThoseForm Instances()
Erase ADetailForms
End Sub
Question for you. I'm doing something similar, only, instead of opening
the
forms all at once, I'm opening them as needed. I have a main form with
multiple records; and then I have a pop-up form that the user opens with
button. The pop-up form contains one record relating to the current
record
in the main form (but from a different table).

Thus, the user is in a record in the main form; clicks the pop-up button.
The pop-up form opens with information for that record. The user then
goes
to a different record in the main form; clicks the pop-up button, and a
second instance of the pop-up form opens with information about the
second
record. And so on.

Now, all of this is working fine. The code I'm using is as follows:

Dim mfrmViewDescrip tion() As Form_frmViewDes cription

Private Sub cmdOpen_Click()

Dim i As Integer

ReDim Preserve mfrmViewDescrip tion(UBound(mfr mViewDescriptio n) + 1)
i = UBound(mfrmView Description)

Set mfrmViewDescrip tion(i) = New Form_frmViewDes cription
mfrmViewDescrip tion(i).Visible = True

End Sub

My question is this. Since I'm using a dynamic array that grows each time
the user opens a form, will there be a resource issue. I have:

Erase mfrmViewDescrip tion

in the Form_Close event, so that's fine. But, as long as the form is
open,
the array will just keep growing.

Say, for example, that the user opens three instances of the form. The
array
has three elements. They close all three instances, and then, sometime
later, while the main form is still open, they open another 4 instances.
Now
the array has seven elements. And so on.

Two thoughts I have on this.

1) Re-use array elements by checking if the form corresponding to element
1,
element 2, etc., are still open. If not, then re-use that element. (Since
the array elements aren't used for anything except opening the form, it
doesn't seem like this would be a problem.) But how would I do that?

2) When the user closes the last of the open form instances, call Erase
to
clear the array. That would be fine. But how would I know when the last
form
was closed?

3) As a variation on (2): when the cmdOpen button is clicked, first check
if
any instances of the form are open. And, if not, then call Erase before
opening the first instance. That would be fine. Except, as per (1), how
would I tell if an instance is open? (Although I guess here a general
form
open routine would work, so maybe that's the answer).

Anyway, that's my situation. Any thoughts or ideas would be appreciated.
Thanks!

Neil
I guess you are creating a stack of sort_of_sub froms. And you don't
want the stack to get too high, lest it's components use too many
resources.
Off the top of my head I might try creating a dimensioned array of the
forms, let's say 0 to 9. And I'd use that with a counter. So the
counter would be zero when I opened the first sort_of_sub form and I'd
use the zeroeth element in the array. And I'd increment the counter.
Next opening the counter would be at one. So I'd use the oneth element
of the array. Hmmm. So what will I do when I get to ten? The array has
only (0 to 9) elements. Well if I Use Counter Mod 10 instead of
Counter, then I'll just keep using the ten forms (array elements) over
and over, always closing the ten- ago form and reusing it. For
instance the thirteenth form opened would close the third (Element 2)
and use that instance of the form. So would the 23rd.
So I limit the number of open sort_of_sub forms to 10. I have a
predictable rule for what to open and what to close. And I don't have
to redim my array.
And at the end I can still erase the array and clean up all my
pointers.
Well, I'm trying to handicap some Woodbine races here while I write
this, so it may be total nonsense.


In my case, it's not really an issue of too many forms being open at once. I
can't imagine the user needing to open more than 3 or 4 at a time. The
problem is that when they close the form, the array elements wouldn't get
cleared. So the array would just keep getting bigger and bigger, even though
the form each element refers to is closed. So:

1) Is it a problem to let the array get larger and larger, if there are only
a few forms open at a time, and the previous array elements all refer to
forms that have been closed?

2) Is there a way to tell if an array element refers to a form that's still
open, so that, if it doesn't, I can reuse that array element?

3) Or, is there a way to tell when all forms have been closed, so I can just
use Erase?

The way the user will be using this is: one a form; go to another record;
open another form; go to another record; open a form; close one of the open
forms; go to another record; open another form; then close all forms; then,
sometime later, open another form; etc.

In other words, the number of forms open will go up and down, from zero to
probably about 3 or 4. But they won't all be open and closed at the same
time or in sequence. The user may not need the form that was open 3rd in
sequence anymore, and close it, but still leave #1 open; and so on.

So I think the above 3 questions would address handling of the resources
related to this issue.

Thanks!

Neil

Couldn't you record in the form instance what index into the array it
represents. If so then you could put a close event to mark they array
element as unused.

Bob
Nov 25 '07 #4

"Bob Alston" <bo********@yah oo.comwrote in message
news:JA******** ******@newsfe07 .lga...
Neil wrote:
>"lyle" <ly************ @gmail.comwrote in message
news:51******* *************** ************@b4 0g2000prf.googl egroups.com...
>>On Nov 25, 3:14 pm, "Neil" <nos...@nospam. netwrote:
"lyle" <lyle.fairfi... @gmail.comwrote in message

news:48***** *************** **************@ f3g2000hsg.goog legroups.com...

When I use multiple instances of forms it is through code like:
Dim ADetailForms(0 To 1) As [Form_Faculty Details]
Public Sub OpenSomeFormIns tances()
Dim z As Long
For z = 0 To 1
Set ADetailForms(z) = New [Form_Faculty Details]
With ADetailForms(z)
.Visible = True
.Caption = "Look Ma Multiple Distinguishable Instances of
a Form " & z
End With
Next z
End Sub
Public Sub ZapAllThoseForm Instances()
Erase ADetailForms
End Sub
Question for you. I'm doing something similar, only, instead of opening
the
forms all at once, I'm opening them as needed. I have a main form with
multiple records; and then I have a pop-up form that the user opens
with
button. The pop-up form contains one record relating to the current
record
in the main form (but from a different table).

Thus, the user is in a record in the main form; clicks the pop-up
button.
The pop-up form opens with information for that record. The user then
goes
to a different record in the main form; clicks the pop-up button, and a
second instance of the pop-up form opens with information about the
second
record. And so on.

Now, all of this is working fine. The code I'm using is as follows:

Dim mfrmViewDescrip tion() As Form_frmViewDes cription

Private Sub cmdOpen_Click()

Dim i As Integer

ReDim Preserve mfrmViewDescrip tion(UBound(mfr mViewDescriptio n) + 1)
i = UBound(mfrmView Description)

Set mfrmViewDescrip tion(i) = New Form_frmViewDes cription
mfrmViewDescrip tion(i).Visible = True

End Sub

My question is this. Since I'm using a dynamic array that grows each
time
the user opens a form, will there be a resource issue. I have:

Erase mfrmViewDescrip tion

in the Form_Close event, so that's fine. But, as long as the form is
open,
the array will just keep growing.

Say, for example, that the user opens three instances of the form. The
array
has three elements. They close all three instances, and then, sometime
later, while the main form is still open, they open another 4
instances. Now
the array has seven elements. And so on.

Two thoughts I have on this.

1) Re-use array elements by checking if the form corresponding to
element 1,
element 2, etc., are still open. If not, then re-use that element.
(Since
the array elements aren't used for anything except opening the form, it
doesn't seem like this would be a problem.) But how would I do that?

2) When the user closes the last of the open form instances, call Erase
to
clear the array. That would be fine. But how would I know when the last
form
was closed?

3) As a variation on (2): when the cmdOpen button is clicked, first
check if
any instances of the form are open. And, if not, then call Erase before
opening the first instance. That would be fine. Except, as per (1), how
would I tell if an instance is open? (Although I guess here a general
form
open routine would work, so maybe that's the answer).

Anyway, that's my situation. Any thoughts or ideas would be
appreciate d.
Thanks!

Neil
I guess you are creating a stack of sort_of_sub froms. And you don't
want the stack to get too high, lest it's components use too many
resources.
Off the top of my head I might try creating a dimensioned array of the
forms, let's say 0 to 9. And I'd use that with a counter. So the
counter would be zero when I opened the first sort_of_sub form and I'd
use the zeroeth element in the array. And I'd increment the counter.
Next opening the counter would be at one. So I'd use the oneth element
of the array. Hmmm. So what will I do when I get to ten? The array has
only (0 to 9) elements. Well if I Use Counter Mod 10 instead of
Counter, then I'll just keep using the ten forms (array elements) over
and over, always closing the ten- ago form and reusing it. For
instance the thirteenth form opened would close the third (Element 2)
and use that instance of the form. So would the 23rd.
So I limit the number of open sort_of_sub forms to 10. I have a
predictable rule for what to open and what to close. And I don't have
to redim my array.
And at the end I can still erase the array and clean up all my
pointers.
Well, I'm trying to handicap some Woodbine races here while I write
this, so it may be total nonsense.


In my case, it's not really an issue of too many forms being open at
once. I can't imagine the user needing to open more than 3 or 4 at a
time. The problem is that when they close the form, the array elements
wouldn't get cleared. So the array would just keep getting bigger and
bigger, even though the form each element refers to is closed. So:

1) Is it a problem to let the array get larger and larger, if there are
only a few forms open at a time, and the previous array elements all
refer to forms that have been closed?

2) Is there a way to tell if an array element refers to a form that's
still open, so that, if it doesn't, I can reuse that array element?

3) Or, is there a way to tell when all forms have been closed, so I can
just use Erase?

The way the user will be using this is: one a form; go to another record;
open another form; go to another record; open a form; close one of the
open forms; go to another record; open another form; then close all
forms; then, sometime later, open another form; etc.

In other words, the number of forms open will go up and down, from zero
to probably about 3 or 4. But they won't all be open and closed at the
same time or in sequence. The user may not need the form that was open
3rd in sequence anymore, and close it, but still leave #1 open; and so
on.

So I think the above 3 questions would address handling of the resources
related to this issue.

Thanks!

Neil
Couldn't you record in the form instance what index into the array it
represents. If so then you could put a close event to mark they array
element as unused.

Bob
Yes, I suppose I could do something with global variables, and set a flag
when the form is closed. I was hoping for something more straightforward ,
though. Thanks,

Neil
Nov 26 '07 #5
An interesting side-note here. I call this code to open multiple instances
of a form from two main forms -- one more complex than the other. In both
forms I had Erase mfrmViewDescrip tion in the Form_Close event (where
mfrmViewDescrip tion is the array holding the form objects). In the simpler
main form it worked fine. In the more complex main form, every time I closed
the form, Access would crash with a GPF. Same data opened in both forms;
same code to erase the array; yet one form crashed every time, and the other
form didn't.

I found that by looping through the array and explicitly setting each
element to Nothing before calling Erase, that it resolved the problem. The
more complex form didn't crash anymore.

So I thought you'd find that interesting. According to online help, Erase
does set each element to nothing before reallocating the space for dynamic
arrays. But, apparently, Erase needs a little help there.....

Neil
Nov 26 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2693
by: Job Lot | last post by:
How can I prevent multiple instances of MdiChild form? I have a MdiParent form with a DataGrid showing all the clients in the database. User clicks on a row to open MdiChild form which display details of the client. User can have multiple clients open at the same time, but how can I prevent them from opening multiple instances of the client?
0
1194
by: fchef | last post by:
I am looking for some advice on working with Multiple frame instances. Essentially I need to be able to refer to specific control values in a frame and be able to hide/show a specific frame. In VB you can reference a particular frame with something like Controls.Form("My form").DoSomething. Is there something analogous to this in Python? Or is there a better approach all together?
12
3235
by: (Pete Cresswell) | last post by:
I know I can open many instances of a given form, but I've never done it. Now I'm analyzing an application where that seems like just the ticket: Many investment funds, *lots* of data points for each fund, and a desire by the users to see several funds presented side-by-side. Is opening, say, five instances of the same form real-world-doable? -- PeteCresswell
2
3120
by: DraguVaso | last post by:
Hi, I found some examples for storing the FormSettings of a Form in an XML-file, but none of these could match my criteria: What I am looking for is the possibility to save the FormSettings of multiple Instances of 1 form. I have a Form frmSource from which I have multiple Instances, each with a unique Identifier. So when I Load or Close a specific instance, I want to load or save the Settings (Top, Height, Width, etc) in an XML-file....
11
20994
by: Clark Stevens | last post by:
I just finished a WinForms app in VB.NET. I want to allow the user to be able to run multiple instances of the program like you can with Notepad and Wordpad. The way it is now, once I run the executable I can not run another instance as long as the first instance is running. How can I change this behavior? Thanks.
2
1664
by: Helen Trim | last post by:
I have an application with three forms that are msde visible and activated when needed. It uses Word to open documents and one of the forms is opened as the Word document is closed in the DocumentBeforeClose event. It works the first time but when it makes the form visible for the second time, it freezes. Sometimes it gives an out of memory error, but I think that may be a red herring. Any ideas? Has anyone come across similar...
4
3288
by: GGerard | last post by:
Hello I have a program where the user can open as many instances of a form as the user wants. The only limit to how many instances can be opened is determined by the limit of the computer itself (the amount of RAM - I think). When enough instances of this form are opened and the limit of the computer is reached
0
1196
by: Bob Harrison | last post by:
After installing the Media SDK and looking at the vb sample I was able to create a control that includes the media player plus other form controls. I want to add multiple instances of this control to a windows form. I was able to get this to work...almost. The problem I have is that after adding mutiple instances of the control by pressing a button, the videos try to play at the same time on the first instance of the control. The stop, mute...
6
1822
by: Savante | last post by:
I have been writing a datalogging application. It reads in double's into a database. I want to be able to click on a row in a database (holds name of variable and also current value of variable) and then instantiate a new form. I created a new form form2 and then just on double click on a button.... dim form as new form2 form.show
0
8891
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8753
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9409
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9121
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6704
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6012
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3229
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2642
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2159
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.