PC Review


Reply
 
 
Andy Summers
Guest
Posts: n/a
 
      8th Jun 2007
Hi,

Does somebody have an example C# code of how to move items between two
lisbboxes? Or maybe a ready to go component. I found an ASP example, but is
there something for Windows forms project?

Thanks,
Andy

 
Reply With Quote
 
 
 
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      8th Jun 2007
Andy,

Do you need something that is drag and drop, or you just want to click a
button and move items selected in one to another?


--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

"Andy Summers" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> Does somebody have an example C# code of how to move items between two
> lisbboxes? Or maybe a ready to go component. I found an ASP example, but
> is there something for Windows forms project?
>
> Thanks,
> Andy



 
Reply With Quote
 
AlexS
Guest
Posts: n/a
 
      8th Jun 2007
I believe the fastest way will be to move data source. If you have
datasource. If not, probably it will be easier to create one and then you
can switch listboxes in couple of = operators.

HTH
Alex

"Andy Summers" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> Does somebody have an example C# code of how to move items between two
> lisbboxes? Or maybe a ready to go component. I found an ASP example, but
> is there something for Windows forms project?
>
> Thanks,
> Andy



 
Reply With Quote
 
Andy Summers
Guest
Posts: n/a
 
      8th Jun 2007
The one with the buttons will do.

Thanks,
Andy

"Nicholas Paldino [.NET/C# MVP]" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> Andy,
>
> Do you need something that is drag and drop, or you just want to click
> a button and move items selected in one to another?
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - (E-Mail Removed)
>
> "Andy Summers" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi,
>>
>> Does somebody have an example C# code of how to move items between two
>> lisbboxes? Or maybe a ready to go component. I found an ASP example, but
>> is there something for Windows forms project?
>>
>> Thanks,
>> Andy

>
>


 
Reply With Quote
 
Nicholas Paldino [.NET/C# MVP]
Guest
Posts: n/a
 
      8th Jun 2007
Andy,

I'm assuming you are manually populating the Items collection? If so,
you should be able to remove the items from the collection using the Remove
method, and Add them to the other collection using the Add method.

If these are data-bound lists, then you will have to work with the
underlying data source, depending on what it is, and if it supports updating
the list itself.


--
- Nicholas Paldino [.NET/C# MVP]
- (E-Mail Removed)

"Andy Summers" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> The one with the buttons will do.
>
> Thanks,
> Andy
>
> "Nicholas Paldino [.NET/C# MVP]" <(E-Mail Removed)> wrote
> in message news:(E-Mail Removed)...
>> Andy,
>>
>> Do you need something that is drag and drop, or you just want to click
>> a button and move items selected in one to another?
>>
>>
>> --
>> - Nicholas Paldino [.NET/C# MVP]
>> - (E-Mail Removed)
>>
>> "Andy Summers" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Hi,
>>>
>>> Does somebody have an example C# code of how to move items between two
>>> lisbboxes? Or maybe a ready to go component. I found an ASP example, but
>>> is there something for Windows forms project?
>>>
>>> Thanks,
>>> Andy

>>
>>

>



 
Reply With Quote
 
Ben Voigt [C++ MVP]
Guest
Posts: n/a
 
      8th Jun 2007

"AlexS" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I believe the fastest way will be to move data source. If you have
>datasource. If not, probably it will be easier to create one and then you
>can switch listboxes in couple of = operators.


I think the requirement is to move individual items, not swap the whole
lists.

>
> HTH
> Alex
>
> "Andy Summers" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi,
>>
>> Does somebody have an example C# code of how to move items between two
>> lisbboxes? Or maybe a ready to go component. I found an ASP example, but
>> is there something for Windows forms project?
>>
>> Thanks,
>> Andy

>
>



 
Reply With Quote
 
Steve Ryan
Guest
Posts: n/a
 
      9th Jun 2007
there some good examples

in the help

we go it to work easy as

steve
Andy Summers <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> Does somebody have an example C# code of how to move items between two
> lisbboxes? Or maybe a ready to go component. I found an ASP example, but

is
> there something for Windows forms project?
>
> Thanks,
> Andy
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using PC mover opalocka Windows Vista Performance 2 31st Dec 2008 01:09 PM
laplink pc mover aaronep@pacbell.net Windows XP Help 4 10th Jul 2007 10:11 PM
File Mover jo Freeware 0 8th Jul 2004 01:40 PM
File mover John H Windows XP New Users 1 11th Nov 2003 02:24 AM
Application Mover Seek Freeware 20 14th Oct 2003 05:37 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:42 AM.