Hi. I need TextBox which will reflect changes in databound string. I tried following code:
public partial class Form1 : Form
{
string m_sFirstName = "Brad";
public string FirstName
{
get { return m_sFirstName; }
set { m_sFirstName = value; }
}
public Form1()
{
InitializeComponent();
...
Hi, I've a winform and I'm trying to bind some elements at page load method. After that
listBox1_SelectedIndexChanged event fires automatically. Why it is happening?
Thanks in advance,
Nagu
...
Hello all!
I've 2 asp listbox controls and an html input button, and using js i add items (previously loaded from DB) from listbox A to B and it works fine, but when i submit the form, in the code behind the listbox B do not have the item i added accessible.
My idea was trying to save roundtrips to the server and make it in client sid...
We need a special user control for our web application.
It should ideally look and work exactly like typical <select> element but with additional feature that would allow user to select multiple choices.
I imagine it like drop-down list of items with checkboxes. User can either select one and only item by clicking it (just like normal ...
Is it possible to use a linear gradient brush to paint the background of a list box? If so how do I raise the paint event to do that?
Thanks.
...
This is a rather complex problem that has me really confused right now. Any help would be greatly appreciated.
The Setup:
ListBox of Type A UserControls
->ListBoxItem of Type A UserControl
-->ListBox of Type B UserControls
--->ListBoxItem of Type B UserControl
---->ListBox of Type C UserControls
----->ListBoxItem of Type C UserCon...
Question: What changes need to be made to my code to allow me to sort more than once?
Information:
I have a list box that contains 1000 sample shipments in it in the program I'm currently writing, I've found the easiest way to sort these shipments at the click of a button is like so:
Private Sub Date_Ascending_Selected(ByVal sender ...
Where in the event life cycle should I set the ListBox.SelectedIndex if the Listbox is contained within a FormView? What I'm trying to do is increase the SelectedIndex by 1 which makes it move from item to item whenever a user clicks on a submit button.
...
I'm trying to use the selected value of a ListBox control to populate a TextBox with its Text property, and a HiddenField with its value property. It sounds simple enough, and I went with this:
currentGroupTextBox.Text = currentSiteGroupList.SelectedItem.Text;
currentGroupHiddenField.Value = currentSiteGroupList.SelectedValue;
But upo...
I have a list-box where items are loaded from database , when user types anything in text-box, list-box should search the starting characters entered and display it in text-box.?
For example :
As soon as User types "A" in text-box ,then all the records starting from "A" should be displayed in List-box.
When user selects the record and...
I'd like to move items from one list view to another. adding them to the second one works but the moved entries don't get removed at all.
private void MoveSelItems(ListBox from, ListBox to)
{
for (int i = 0; i < from.SelectedItems.Count; i++)
{
to.Items.Add(from.SelectedItems[i].ToString());
}
...
Hi,
I'm trying to create a transparent ListBox in a WPF application. I want the ListBox to be completely transparent, thus a background image is visible "behind" the ListBox. However, I want my ListBox items to be totaly opaque, that is to say, they lay on top of the background image.
Do anyone know how I can accomplish this?
Thanx i...
I know this has been asked different ways several times, but I'm just not getting it. Why don't I see my test strings in the listbox?
.cs
public partial class Window1 : Window
{
public ObservableCollection<string> myList = new ObservableCollection<string>();
public Window1()
{
InitializeComponent();
myL...
Hi !
When I use a Theme like link text in my WPF App, I notice a difference between the Items of ListBoxes and ComboBoxes: When I add a an object of my own class to their Items Collection, the created item looks themed. If I make my own class inherit from ListBoxItem/ComboBoxItem, the resulting Visualization looks unthemed.
How can I d...
Hello,
1) Have a listbox with 3 values out of 5 selected
2) When I click to select another value without holding CTRL button, it will unselect over values
How to make it keep other selected values if new value is selected?
...
I am using a Listbox and Telerik Scheduler in my web page. I need to drag an item from listbox to scheduler control. How can I do that?
...
Hi,
I have the following jquery function for filtering the contents of a listbox on the onkeyup event from a textbox.
function DoListBoxFilter(listBoxSelector, filter, keys, values) {
var list = $(listBoxSelector);
var selectBase = '<option value="{0}">{1}</option>';
list.empty();
for (i = 0; i < values.length; ++i) {...
Hi All,
I'm trying to add items to a listbox,combobox, radiolist using reflection. The code I have at the moment is as follows:
public static Control ConfigureControl(Control control, ControlConfig ctrlconf)
{
if (control is TextBox)
{
// ...
}
else
{
// get the prop...
I have a simple class Product and a UserControl named ProductSummaryControl. ProductSummaryControl displays the details for a Product class that is passed in to its DataContext. I have verified that this works when I set up the control and its property manually.
I run into a problem when I try to use the ProductSummaryControl as part ...
I can disable one and one by doing this:
jQuery('#ListBoxA').attr('disabled','true');
But how can I apply this to multiple items? This does not work:
jQuery('#ListBoxA, #ListBoxB, #ListBoxC').attr('disabled','true');
UPDATE
Not much markup to show....
<select id="ListBoxA" size="4" name="countrySelectBox">
<select id="ListBoxB" s...