473,513 Members | 2,428 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Duplicating Objects

EdB
I'm still having trouble grasping what's going on here and how to resolve it.

In VB6 I have a form that has several combo boxes with lots of items in
each; it takes a long time to load the form because of having to load each
combobox. As I think about converting this to .Net, I believe I should be
able to do something like this:

'position & load the primary object
ComboBox1.Top = 40
ComboBox1.Left = 8
Dim intLoop As Integer
For intLoop = 1 To 5000
ComboBox1.Items.Add(intLoop)
Next

'define & place the copy
Dim cbo2 As New ComboBox
cbo2 = ComboBox1
cbo2.Top = 80
cbo2.Left = 8
cbo2.Text = "ComboBox2"
Me.Controls.Add(cbo2)

But the statement

cbo2 = ComboBox1

doesn't do what I expect. When I view the form, I only see one combobox.
It's like by setting them equal, they become one.

What is the proper way to accomplish this task?
Nov 21 '05 #1
11 1239
Hi,

You are not creating a new combobox1. You are making cbo2 reference
combobox1.

Ken
------------------------
"EdB" <Ed*@discussions.microsoft.com> wrote in message
news:5B**********************************@microsof t.com...
I'm still having trouble grasping what's going on here and how to resolve
it.

In VB6 I have a form that has several combo boxes with lots of items in
each; it takes a long time to load the form because of having to load each
combobox. As I think about converting this to .Net, I believe I should be
able to do something like this:

'position & load the primary object
ComboBox1.Top = 40
ComboBox1.Left = 8
Dim intLoop As Integer
For intLoop = 1 To 5000
ComboBox1.Items.Add(intLoop)
Next

'define & place the copy
Dim cbo2 As New ComboBox
cbo2 = ComboBox1
cbo2.Top = 80
cbo2.Left = 8
cbo2.Text = "ComboBox2"
Me.Controls.Add(cbo2)

But the statement

cbo2 = ComboBox1

doesn't do what I expect. When I view the form, I only see one combobox.
It's like by setting them equal, they become one.

What is the proper way to accomplish this task?
Nov 21 '05 #2
EdB,

One approach is to use one ComboBox but call BeginUpdate just before adding
items, and call EndUpdate after adding items.

See:
http://msdn.microsoft.com/library/de...ssaddtopic.asp

Dim intLoop As Integer
ComboBox1.BeginUpdate
For intLoop = 0 To 5000
ComboBox1.Items.Add(intLoop)
Next
ComboBox1.EndUpdate

--
Mike

Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com

"EdB" <Ed*@discussions.microsoft.com> wrote in message
news:5B**********************************@microsof t.com...
I'm still having trouble grasping what's going on here and how to resolve
it.

In VB6 I have a form that has several combo boxes with lots of items in
each; it takes a long time to load the form because of having to load each
combobox. As I think about converting this to .Net, I believe I should be
able to do something like this:

'position & load the primary object
ComboBox1.Top = 40
ComboBox1.Left = 8
Dim intLoop As Integer
For intLoop = 1 To 5000
ComboBox1.Items.Add(intLoop)
Next

'define & place the copy
Dim cbo2 As New ComboBox
cbo2 = ComboBox1
cbo2.Top = 80
cbo2.Left = 8
cbo2.Text = "ComboBox2"
Me.Controls.Add(cbo2)

But the statement

cbo2 = ComboBox1

doesn't do what I expect. When I view the form, I only see one combobox.
It's like by setting them equal, they become one.

What is the proper way to accomplish this task?

Nov 21 '05 #3
EdB
That does not solve my problem. Populating one combobox is not an issue.
Having just one combobox is not an option.

Am I going down a path that does not exist?

Are you (and Ken) saying that I can not set up a source combobox, with all
it's entries, then copy it in total and use the copy independently from the
source?

"Mike McIntyre" wrote:
EdB,

One approach is to use one ComboBox but call BeginUpdate just before adding
items, and call EndUpdate after adding items.

See:
http://msdn.microsoft.com/library/de...ssaddtopic.asp

Dim intLoop As Integer
ComboBox1.BeginUpdate
For intLoop = 0 To 5000
ComboBox1.Items.Add(intLoop)
Next
ComboBox1.EndUpdate

--
Mike

Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com

"EdB" <Ed*@discussions.microsoft.com> wrote in message
news:5B**********************************@microsof t.com...
I'm still having trouble grasping what's going on here and how to resolve
it.

In VB6 I have a form that has several combo boxes with lots of items in
each; it takes a long time to load the form because of having to load each
combobox. As I think about converting this to .Net, I believe I should be
able to do something like this:

'position & load the primary object
ComboBox1.Top = 40
ComboBox1.Left = 8
Dim intLoop As Integer
For intLoop = 1 To 5000
ComboBox1.Items.Add(intLoop)
Next

'define & place the copy
Dim cbo2 As New ComboBox
cbo2 = ComboBox1
cbo2.Top = 80
cbo2.Left = 8
cbo2.Text = "ComboBox2"
Me.Controls.Add(cbo2)

But the statement

cbo2 = ComboBox1

doesn't do what I expect. When I view the form, I only see one combobox.
It's like by setting them equal, they become one.

What is the proper way to accomplish this task?


Nov 21 '05 #4
EdB,

I am not saying "you can not set up a source combobox, with all it's
entries, then copy it in total and use the copy independently from the
source".

What I proposed is a common solution to optimizing the loading of
ComboBoxes.

There are other techniques too, but at this point I think I don't understand
your goal clearly.

What is the purpose of loading the ComboBoxes the way you outlined?

Is it to let the rest of the form load and be viewable immediately while
several ComboBoxes build in the background and become useable when they are
filled?

If that is the case you can use asynchronous delegates (one way to thread).

As the form loads your calls the delegate(s) that fill the ComboBoxe(s). The
delegates start building the ComboBoxes in the background and do not
interfer with loading the rest of the form. You can start with the
ComboBoxes disabled. You can have the delegate(s) call back to a procedure
in your code each time a ComboBox is filled and the procedure can enable the
ComboBox.

Or, please clarify your goal and we will see what we can do. ;-)
--
Mike

Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com
"EdB" <Ed*@discussions.microsoft.com> wrote in message
news:EB**********************************@microsof t.com...
That does not solve my problem. Populating one combobox is not an issue.
Having just one combobox is not an option.

Am I going down a path that does not exist?

Are you (and Ken) saying that I can not set up a source combobox, with all
it's entries, then copy it in total and use the copy independently from
the
source?

"Mike McIntyre" wrote:
EdB,

One approach is to use one ComboBox but call BeginUpdate just before
adding
items, and call EndUpdate after adding items.

See:
http://msdn.microsoft.com/library/de...ssaddtopic.asp

Dim intLoop As Integer
ComboBox1.BeginUpdate
For intLoop = 0 To 5000
ComboBox1.Items.Add(intLoop)
Next
ComboBox1.EndUpdate

--
Mike

Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com

"EdB" <Ed*@discussions.microsoft.com> wrote in message
news:5B**********************************@microsof t.com...
> I'm still having trouble grasping what's going on here and how to
> resolve
> it.
>
> In VB6 I have a form that has several combo boxes with lots of items in
> each; it takes a long time to load the form because of having to load
> each
> combobox. As I think about converting this to .Net, I believe I should
> be
> able to do something like this:
>
> 'position & load the primary object
> ComboBox1.Top = 40
> ComboBox1.Left = 8
> Dim intLoop As Integer
> For intLoop = 1 To 5000
> ComboBox1.Items.Add(intLoop)
> Next
>
> 'define & place the copy
> Dim cbo2 As New ComboBox
> cbo2 = ComboBox1
> cbo2.Top = 80
> cbo2.Left = 8
> cbo2.Text = "ComboBox2"
> Me.Controls.Add(cbo2)
>
> But the statement
>
> cbo2 = ComboBox1
>
> doesn't do what I expect. When I view the form, I only see one
> combobox.
> It's like by setting them equal, they become one.
>
> What is the proper way to accomplish this task?


Nov 21 '05 #5
EdB,

Are you searching for this?
\\\
ComboBox1.Top = 40
ComboBox1.Left = 8
Dim intLoop As Integer
For intLoop = 1 To 5000
ComboBox1.Items.Add(intLoop)
Next
Dim cbo2 As New ComboBox
cbo2.Top = 80
cbo2.Left = 8
cbo2.Text = "ComboBox2"
Dim myarray(ComboBox1.Items.Count - 1) As Object
ComboBox1.Items.CopyTo(myarray, 0)
cbo2.Items.AddRange(myarray)
Me.Controls.Add(cbo2)
///

http://msdn.microsoft.com/library/de...opytotopic.asp

I hope this helps?

Cor

"EdB" <Ed*@discussions.microsoft.com>
I'm still having trouble grasping what's going on here and how to resolve
it.

In VB6 I have a form that has several combo boxes with lots of items in
each; it takes a long time to load the form because of having to load each
combobox. As I think about converting this to .Net, I believe I should be
able to do something like this:

'position & load the primary object
ComboBox1.Top = 40
ComboBox1.Left = 8
Dim intLoop As Integer
For intLoop = 1 To 5000
ComboBox1.Items.Add(intLoop)
Next

'define & place the copy
Dim cbo2 As New ComboBox
cbo2 = ComboBox1
cbo2.Top = 80
cbo2.Left = 8
cbo2.Text = "ComboBox2"
Me.Controls.Add(cbo2)

But the statement

cbo2 = ComboBox1

doesn't do what I expect. When I view the form, I only see one combobox.
It's like by setting them equal, they become one.

What is the proper way to accomplish this task?

Nov 21 '05 #6
Cor,

Or to avoid the overhead of building a CombBox to build the data:
Dim integers(4999) As Object

Dim i As Integer
For i = 0 To 4999
integers(i) = i
Next

Me.ComboBox1.Items.AddRange(integers)

Mike

"Cor Ligthert" <no************@planet.nl> wrote in message news:eb**************@TK2MSFTNGP09.phx.gbl...
EdB,

Are you searching for this?
\\\
ComboBox1.Top = 40
ComboBox1.Left = 8
Dim intLoop As Integer
For intLoop = 1 To 5000
ComboBox1.Items.Add(intLoop)
Next
Dim cbo2 As New ComboBox
cbo2.Top = 80
cbo2.Left = 8
cbo2.Text = "ComboBox2"
Dim myarray(ComboBox1.Items.Count - 1) As Object
ComboBox1.Items.CopyTo(myarray, 0)
cbo2.Items.AddRange(myarray)
Me.Controls.Add(cbo2)
///

http://msdn.microsoft.com/library/de...opytotopic.asp

I hope this helps?

Cor

"EdB" <Ed*@discussions.microsoft.com>
I'm still having trouble grasping what's going on here and how to resolve
it.

In VB6 I have a form that has several combo boxes with lots of items in
each; it takes a long time to load the form because of having to load each
combobox. As I think about converting this to .Net, I believe I should be
able to do something like this:

'position & load the primary object
ComboBox1.Top = 40
ComboBox1.Left = 8
Dim intLoop As Integer
For intLoop = 1 To 5000
ComboBox1.Items.Add(intLoop)
Next

'define & place the copy
Dim cbo2 As New ComboBox
cbo2 = ComboBox1
cbo2.Top = 80
cbo2.Left = 8
cbo2.Text = "ComboBox2"
Me.Controls.Add(cbo2)

But the statement

cbo2 = ComboBox1

doesn't do what I expect. When I view the form, I only see one combobox.
It's like by setting them equal, they become one.

What is the proper way to accomplish this task?


Nov 21 '05 #7
Mike,

True, however my purpose of the sample was to show the tocopy.

However the solution could be even shorter with what you wrote.

:-)

Cor

Nov 21 '05 #8
EdB
I appreciate the help. Let me give more detail as to the application and
then perhaps you'll reccommend a best approach.

The application is for a national courier company. Drivers get paid for
routes they run on given days. At the end of the week, a settlement
(compensation) process occurs. While most of the information is set for the
user, exceptions must be dealt with.

So, for each day of the week, there is a combo box populated with all the
routes that exist within a given geographic area. In more dense areas, there
can be lots of routes. The screen takes a long time to paint for these
"terminals" because I am populating the SundayRoute, MondayRoute,
TuesdayRoute, etc... combo boxes.

I need one for each day because a driver may do one route on Monday, another
on Tuesday. The day by day comboboxes are very intuitive to the user.

Since the content is all the same for each, I figured I could populate one,
then copy. I'm afraid that the copyto won't reduce the overhead.
"Mike McIntyre" wrote:
EdB,

I am not saying "you can not set up a source combobox, with all it's
entries, then copy it in total and use the copy independently from the
source".

What I proposed is a common solution to optimizing the loading of
ComboBoxes.

There are other techniques too, but at this point I think I don't understand
your goal clearly.

What is the purpose of loading the ComboBoxes the way you outlined?

Is it to let the rest of the form load and be viewable immediately while
several ComboBoxes build in the background and become useable when they are
filled?

If that is the case you can use asynchronous delegates (one way to thread).

As the form loads your calls the delegate(s) that fill the ComboBoxe(s). The
delegates start building the ComboBoxes in the background and do not
interfer with loading the rest of the form. You can start with the
ComboBoxes disabled. You can have the delegate(s) call back to a procedure
in your code each time a ComboBox is filled and the procedure can enable the
ComboBox.

Or, please clarify your goal and we will see what we can do. ;-)
--
Mike

Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com
"EdB" <Ed*@discussions.microsoft.com> wrote in message
news:EB**********************************@microsof t.com...
That does not solve my problem. Populating one combobox is not an issue.
Having just one combobox is not an option.

Am I going down a path that does not exist?

Are you (and Ken) saying that I can not set up a source combobox, with all
it's entries, then copy it in total and use the copy independently from
the
source?

"Mike McIntyre" wrote:
EdB,

One approach is to use one ComboBox but call BeginUpdate just before
adding
items, and call EndUpdate after adding items.

See:
http://msdn.microsoft.com/library/de...ssaddtopic.asp

Dim intLoop As Integer
ComboBox1.BeginUpdate
For intLoop = 0 To 5000
ComboBox1.Items.Add(intLoop)
Next
ComboBox1.EndUpdate

--
Mike

Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com

"EdB" <Ed*@discussions.microsoft.com> wrote in message
news:5B**********************************@microsof t.com...
> I'm still having trouble grasping what's going on here and how to
> resolve
> it.
>
> In VB6 I have a form that has several combo boxes with lots of items in
> each; it takes a long time to load the form because of having to load
> each
> combobox. As I think about converting this to .Net, I believe I should
> be
> able to do something like this:
>
> 'position & load the primary object
> ComboBox1.Top = 40
> ComboBox1.Left = 8
> Dim intLoop As Integer
> For intLoop = 1 To 5000
> ComboBox1.Items.Add(intLoop)
> Next
>
> 'define & place the copy
> Dim cbo2 As New ComboBox
> cbo2 = ComboBox1
> cbo2.Top = 80
> cbo2.Left = 8
> cbo2.Text = "ComboBox2"
> Me.Controls.Add(cbo2)
>
> But the statement
>
> cbo2 = ComboBox1
>
> doesn't do what I expect. When I view the form, I only see one
> combobox.
> It's like by setting them equal, they become one.
>
> What is the proper way to accomplish this task?


Nov 21 '05 #9
EdB,

I am starting to see a solution. I need a little more clarification:

When you say 'Since the content is the same for each' does this mean each
combo box holds the same data as the next? For example, using a number
series as an example of route data:

MondayComboBox Items
1
2
3
4

TuesdayComboBox Items
1
2
3
4

WednesdayComboBox Items
1
2
3
4
5

and the same for Thursday, Friday, etc.?

Is the operation on the screen to, for one driver - pick one route for
Monday, one route for Tuesday, and so on?

Can you give an example of the real data? Is it really numbers you showed
in your original example? If not what is actually shown for each route item
in the ComboBox.

Mike


"EdB" <Ed*@discussions.microsoft.com> wrote in message
news:AF**********************************@microsof t.com...
I appreciate the help. Let me give more detail as to the application and
then perhaps you'll reccommend a best approach.

The application is for a national courier company. Drivers get paid for
routes they run on given days. At the end of the week, a settlement
(compensation) process occurs. While most of the information is set for
the
user, exceptions must be dealt with.

So, for each day of the week, there is a combo box populated with all the
routes that exist within a given geographic area. In more dense areas,
there
can be lots of routes. The screen takes a long time to paint for these
"terminals" because I am populating the SundayRoute, MondayRoute,
TuesdayRoute, etc... combo boxes.

I need one for each day because a driver may do one route on Monday,
another
on Tuesday. The day by day comboboxes are very intuitive to the user.

Since the content is all the same for each, I figured I could populate
one,
then copy. I'm afraid that the copyto won't reduce the overhead.
"Mike McIntyre" wrote:
EdB,

I am not saying "you can not set up a source combobox, with all it's
entries, then copy it in total and use the copy independently from the
source".

What I proposed is a common solution to optimizing the loading of
ComboBoxes.

There are other techniques too, but at this point I think I don't
understand
your goal clearly.

What is the purpose of loading the ComboBoxes the way you outlined?

Is it to let the rest of the form load and be viewable immediately while
several ComboBoxes build in the background and become useable when they
are
filled?

If that is the case you can use asynchronous delegates (one way to
thread).

As the form loads your calls the delegate(s) that fill the ComboBoxe(s).
The
delegates start building the ComboBoxes in the background and do not
interfer with loading the rest of the form. You can start with the
ComboBoxes disabled. You can have the delegate(s) call back to a
procedure
in your code each time a ComboBox is filled and the procedure can enable
the
ComboBox.

Or, please clarify your goal and we will see what we can do. ;-)
--
Mike

Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com
"EdB" <Ed*@discussions.microsoft.com> wrote in message
news:EB**********************************@microsof t.com...
> That does not solve my problem. Populating one combobox is not an
> issue.
> Having just one combobox is not an option.
>
> Am I going down a path that does not exist?
>
> Are you (and Ken) saying that I can not set up a source combobox, with
> all
> it's entries, then copy it in total and use the copy independently from
> the
> source?
>
> "Mike McIntyre" wrote:
>
>> EdB,
>>
>> One approach is to use one ComboBox but call BeginUpdate just before
>> adding
>> items, and call EndUpdate after adding items.
>>
>> See:
>> http://msdn.microsoft.com/library/de...ssaddtopic.asp
>>
>> Dim intLoop As Integer
>> ComboBox1.BeginUpdate
>> For intLoop = 0 To 5000
>> ComboBox1.Items.Add(intLoop)
>> Next
>> ComboBox1.EndUpdate
>>
>> --
>> Mike
>>
>> Mike McIntyre
>> Visual Basic MVP
>> www.getdotnetcode.com
>>
>> "EdB" <Ed*@discussions.microsoft.com> wrote in message
>> news:5B**********************************@microsof t.com...
>> > I'm still having trouble grasping what's going on here and how to
>> > resolve
>> > it.
>> >
>> > In VB6 I have a form that has several combo boxes with lots of items
>> > in
>> > each; it takes a long time to load the form because of having to
>> > load
>> > each
>> > combobox. As I think about converting this to .Net, I believe I
>> > should
>> > be
>> > able to do something like this:
>> >
>> > 'position & load the primary object
>> > ComboBox1.Top = 40
>> > ComboBox1.Left = 8
>> > Dim intLoop As Integer
>> > For intLoop = 1 To 5000
>> > ComboBox1.Items.Add(intLoop)
>> > Next
>> >
>> > 'define & place the copy
>> > Dim cbo2 As New ComboBox
>> > cbo2 = ComboBox1
>> > cbo2.Top = 80
>> > cbo2.Left = 8
>> > cbo2.Text = "ComboBox2"
>> > Me.Controls.Add(cbo2)
>> >
>> > But the statement
>> >
>> > cbo2 = ComboBox1
>> >
>> > doesn't do what I expect. When I view the form, I only see one
>> > combobox.
>> > It's like by setting them equal, they become one.
>> >
>> > What is the proper way to accomplish this task?
>>
>>
>>


Nov 21 '05 #10
EdB,

I am leaving for a project meeting.

If you want send the information to mi****@getdotnetcode.com. I won't be
checking this newsgroup until tomorrow AM but I will be checking my email
several times today.
--
Mike

Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com\
"EdB" <Ed*@discussions.microsoft.com> wrote in message
news:AF**********************************@microsof t.com...
I appreciate the help. Let me give more detail as to the application and
then perhaps you'll reccommend a best approach.

The application is for a national courier company. Drivers get paid for
routes they run on given days. At the end of the week, a settlement
(compensation) process occurs. While most of the information is set for
the
user, exceptions must be dealt with.

So, for each day of the week, there is a combo box populated with all the
routes that exist within a given geographic area. In more dense areas,
there
can be lots of routes. The screen takes a long time to paint for these
"terminals" because I am populating the SundayRoute, MondayRoute,
TuesdayRoute, etc... combo boxes.

I need one for each day because a driver may do one route on Monday,
another
on Tuesday. The day by day comboboxes are very intuitive to the user.

Since the content is all the same for each, I figured I could populate
one,
then copy. I'm afraid that the copyto won't reduce the overhead.
"Mike McIntyre" wrote:
EdB,

I am not saying "you can not set up a source combobox, with all it's
entries, then copy it in total and use the copy independently from the
source".

What I proposed is a common solution to optimizing the loading of
ComboBoxes.

There are other techniques too, but at this point I think I don't
understand
your goal clearly.

What is the purpose of loading the ComboBoxes the way you outlined?

Is it to let the rest of the form load and be viewable immediately while
several ComboBoxes build in the background and become useable when they
are
filled?

If that is the case you can use asynchronous delegates (one way to
thread).

As the form loads your calls the delegate(s) that fill the ComboBoxe(s).
The
delegates start building the ComboBoxes in the background and do not
interfer with loading the rest of the form. You can start with the
ComboBoxes disabled. You can have the delegate(s) call back to a
procedure
in your code each time a ComboBox is filled and the procedure can enable
the
ComboBox.

Or, please clarify your goal and we will see what we can do. ;-)
--
Mike

Mike McIntyre
Visual Basic MVP
www.getdotnetcode.com
"EdB" <Ed*@discussions.microsoft.com> wrote in message
news:EB**********************************@microsof t.com...
> That does not solve my problem. Populating one combobox is not an
> issue.
> Having just one combobox is not an option.
>
> Am I going down a path that does not exist?
>
> Are you (and Ken) saying that I can not set up a source combobox, with
> all
> it's entries, then copy it in total and use the copy independently from
> the
> source?
>
> "Mike McIntyre" wrote:
>
>> EdB,
>>
>> One approach is to use one ComboBox but call BeginUpdate just before
>> adding
>> items, and call EndUpdate after adding items.
>>
>> See:
>> http://msdn.microsoft.com/library/de...ssaddtopic.asp
>>
>> Dim intLoop As Integer
>> ComboBox1.BeginUpdate
>> For intLoop = 0 To 5000
>> ComboBox1.Items.Add(intLoop)
>> Next
>> ComboBox1.EndUpdate
>>
>> --
>> Mike
>>
>> Mike McIntyre
>> Visual Basic MVP
>> www.getdotnetcode.com
>>
>> "EdB" <Ed*@discussions.microsoft.com> wrote in message
>> news:5B**********************************@microsof t.com...
>> > I'm still having trouble grasping what's going on here and how to
>> > resolve
>> > it.
>> >
>> > In VB6 I have a form that has several combo boxes with lots of items
>> > in
>> > each; it takes a long time to load the form because of having to
>> > load
>> > each
>> > combobox. As I think about converting this to .Net, I believe I
>> > should
>> > be
>> > able to do something like this:
>> >
>> > 'position & load the primary object
>> > ComboBox1.Top = 40
>> > ComboBox1.Left = 8
>> > Dim intLoop As Integer
>> > For intLoop = 1 To 5000
>> > ComboBox1.Items.Add(intLoop)
>> > Next
>> >
>> > 'define & place the copy
>> > Dim cbo2 As New ComboBox
>> > cbo2 = ComboBox1
>> > cbo2.Top = 80
>> > cbo2.Left = 8
>> > cbo2.Text = "ComboBox2"
>> > Me.Controls.Add(cbo2)
>> >
>> > But the statement
>> >
>> > cbo2 = ComboBox1
>> >
>> > doesn't do what I expect. When I view the form, I only see one
>> > combobox.
>> > It's like by setting them equal, they become one.
>> >
>> > What is the proper way to accomplish this task?
>>
>>
>>


Nov 21 '05 #11

"EdB" <Ed*@discussions.microsoft.com> wrote
I need one for each day because a driver may do one route on Monday, another
on Tuesday. The day by day comboboxes are very intuitive to the user.

Since the content is all the same for each, I figured I could populate one,
then copy. I'm afraid that the copyto won't reduce the overhead.


Are you sure combo boxes would be more intuitive than a grid? With the
week days as the columns, and the routes as the rows, where checkmarks
indicate which route was taken, it would be pretty intuitive to know how to
use that interface. Plus with an option (you'd add) to view only the selected
routes, the entire week could be verified at a glance.

And what if, one day, a driver pulls two routes in one day?

For an example grid, check out this link:
http://www.vbnet.mvps.org/code/intri...atrixcheck.htm

LFS
Nov 21 '05 #12

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

Similar topics

0
1503
by: abu | last post by:
I'm having a problem with Fast Template duplicating the content. Here's the code, hoping someone may be of help, thanks! while(list($last_name)=mysql_fetch_array($data1)) { $data2 =...
5
12806
by: DB_2 | last post by:
I was wondering if there was a way to create a copy of a table in a single SQL statement, together with its column structure and data. In Oracle, there is a "CREATE TABLE new-table AS...
6
2496
by: Robin S. | last post by:
**Eric and Salad - thank you both for the polite kick in the butt. I hope I've done a better job of explaining myself below. I am trying to produce a form to add products to a table (new...
2
1095
by: Todd Plambeck | last post by:
I have an ASP.net order entry system that will occasionally insert duplcate orders into the database. We are using SQL Server for the session state. This also only seems to happen when the server...
2
4064
by: Samuel R. Neff | last post by:
I'm trying to find a good way to handle Control.InvokeRequired without duplicating four lines of code in every function/event. Typically what I've seen in books is this: If InvokeRequired Then...
15
1793
by: Christopher Benson-Manica | last post by:
Is there a general mechanism to duplicate, or provide for the duplication of, objects? As an example, suppose I need to duplicate an array. I can accomplish this with array.slice( 0 ), but that's...
8
5749
by: Josetta | last post by:
I have found a wealth of information here on how to duplicate records in forms with subforms. I have adapted code found here to work with my forms. It works beautifully the first time I hit the...
0
1054
by: rmli | last post by:
Duplicating a Database using RMAN http://quickdba.blogspot.com/2006/05/duplicating-database-using-rman_22.html
7
1338
by: Brett Romero | last post by:
I need a static version of a class that can be referenced anywhere as a singleton and the same class that can be used as instances. Can this be done without basically creating the same class twice...
3
1294
by: Darren.Ratcliffe | last post by:
Hi everyone I'm using v 2.0 of the framework with C# and am developing a web application. I am finding that my cookie names are duplicating themselves over and over again, for example when I...
0
7160
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...
0
7384
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,...
0
7537
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7525
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...
0
5685
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4746
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...
0
3222
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
799
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
456
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...

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.