Hi,
I want to read from values from database and add to listbox then transfering items from one listbox to another listbox using C#.NET. Can any one give source code.
Thanks in advance
sree
5 11020
No, nobody can give you the source code for that.
Sorry, but this isn't that kind of forum. We can help you with specific coding issues, but we won't do your work for you.
We have a jobs forum as well. Post an offer there, and maybe you'll get a bid. But nobody is going to do your job for free.
If you have a specific problem with your code, post it and we can help you figure out what is wrong.
MODERATOR
Im sorry, I juz wanted listbox binding with a datasource.
Hi,
Once again I'm sorry, in my previous post, I mean to say sample code not source code.
I have displayed a field in ListbBox1 and another field in ListBox2 control from database. I need to move value from one list box to other list box using C#.NET
Please, send me the sample code in C#.NET
Thanx in advance,
Sreeni
tlhintoq 3,525
Recognized Expert Specialist
Hi,
Once again I'm sorry, in my previous post, I mean to say sample code not source code.
I have displayed a field in ListbBox1 and another field in ListBox2 control from database. I need to move value from one list box to other list box using C#.NET
Please, send me the sample code in C#.NET
Thanx in advance,
Sreeni
Allow me to rephrase what the moderator told you...
What you want is very very simple. Use the .Add method in one ListBox and a corresponding .Remove method from the other list box. There is no functionality for moving. You .Add from one and .Remove from the other.
When you have actually tried this yourself, have some code to show for your efforts and research but need a little help finding a bug then post the code of what you have done and people here will be happy to help. People here are very happy to help but they won't do it for you when you have done no research or trial-and-error learning yourself. If its not worth your time to learn how to do these basic functions then why would it be worth someone else's time to do it for you?
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Alpha |
last post by:
Hi, How can I set all the items in a listbox to be selected? I can't find a
property or mehtod to do it so I thought I'll try using setselected method
but I need to find out how many items are in the listbox.
Thanks,
Alpha
|
by: Kay |
last post by:
Hello,
I have two list boxes on my form, one initially displays with items and the
other displays blank, by clicking a button, it is possible to move items
from one box to another and vice a versa, this works fine. I also have a
dropdown list on the page with autopost back = true, my problem is as
follows: when the user selects an option in the dropdown list the form is
posted back to the server and certain other processing happens, then...
|
by: Ron |
last post by:
I've got a listbox that holds a list of groups. Users can
select a group, hit the remove button and the group
should be removed from the listbox. The only problem is
that no matter which group you select, the first one in
the listbox is always removed.(The listitem with an index
of 0. Box is set to single selection mode) I've looked at
multiple examples and they all do it this way. What's
wrong? (variables are also being set to the values...
|
by: Dany P. Wu |
last post by:
Hi everyone,
One of my Windows forms contain two listbox controls, with Add and Remove
buttons between them.
The idea is to allow users to select multiple items from one ListBox, click
the Add button, and the selected items will move to the second ListBox.
I've been trying to use the ListBox.SelectedObjectCollection with no
success. It sounds like the logical thing to use but I can't seem to find
|
by: thomasp |
last post by:
Has anyone got some sample code to do drag and drop from one listbox to
another listbox using VB.Net 2005. The below code works for draging and
droping one at a time, but not for multiselected items. I tried setting up
an array to capture the selected items and then move them with the dragndrop
code, but after selecting the items when the user clicks on the items to
drag them the selection goes back to one item. Also I have code for the...
| |
by: Paul_Madden via DotNetMonster.com |
last post by:
Basically I have a listbox to which I add simple STRING items- I have a
progress bar which I increment whenever I populate another portion of the
complete set of items I wish to add. What I observe is that as more and more
are added, population of the list box takes longer and longer. ie the first
10th of the item set are added much much quicker than the last 10th. THis
occurs with about 40,000 listbox items. My worry is the listbox may...
|
by: hexagram |
last post by:
hi guys can anybody can teach me how to do this scenario
Transfering Data of a form to a new form
The Scenario is:
I have a Delivery Receipt Form (Hardware) with a fields of the following
- id - Formatted as "DR-00000"
- company
- address
|
by: Brian Simmons |
last post by:
Hi All,
I search on codeproject and google but didn't find what I was looking for.
Anybody know of a good implementation where you have 2 listboxes and you
want to move items between the 2.
I.e.
<< < >
|
by: vinod allapu |
last post by:
hi all,
i am trying to generate a report, iam using sql server 2000 and Asp.net 2.0. First to select the columns iam using the list box... as we can order by the query result from the selected columns only, i want to use another list box which contains only selected columns..
1. Iam filling the columns names required into the listbox it is selecting the columns in the select statement to generate report.
2....
|
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...
|
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...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |