listbox

What FontFamily Fonts can I use in a ListBox?

I'm trying to change the FontFamily of a ListBox to a fixed-width font, but I don't know what's available. Here's what I have: <ListBox Margin="12,55,12,12" Name="listBox1" FontFamily="Arial" /> When I try something like FontFamily="Courier", it won't show up as Courier, which leads me to believe that font may not be available. I've...

Animation in a ListBox

Hi, I'd like to animate items as they come into and are removed from a listbox. Essentially, I want the newly added item to animate to its position at the top of the list (from some predetermined coordinate), and have the items in the list animate down a "step" to make room. I started trying to solve this problem by inheriting form ...

listbox and how to perform actions on selected items

Hi I have this program Im trying to make but now Im trying to add an option to delete items ( only the selected ones ). thanx in advance ...

CEditBox or CListBox which one is better for big amout of logging data

This always was a big question for me that for a very big amount of logs (like 100,000 line log) which one is better in performance, scrolling,... also consider formatting the text with color is a must. ...

NSIS: How to add Items to a listbox control?

How to add items to a listbox control at run time in NSIS? ...

MS Access 2003 - Listbox formatting control

Just some general formatting questions about return records to a list box on a form: I have a list box that returns sets of records based on SQL statement in VB. I need the SQl statement to return the ID (auto number) of each record, because if the user selects from this list box, I need the ID as a pass parameter to the next form. But ...

MVVM ListBox controlling a Content Control

I've been going round in circles with this for a couple of days, and I'm hoping a WPF guru can see where I'm going wrong. I'm setting CurrentViewModel in code. The Selected item of my ListBox and the Content of my ContentControl bind correctly. But when changing the selected item in the Listbox via the UI the CurrentViewModel is being ...

PrevenHTML combobox(select element) dropdown to open

i have a WPF webbrowser application which loads the webpage containing a html listbox. On click of the listbox i want to open another wpf window instead of listbox own dropdown. However i am not able to prevent the html select own dropdown to open. i cannot remove the listbox from webpage because of backward compatibility constraints. Is...

ListBox TwoWay bind to SelectedItem

I've seen this question asked numerous times and have gone over my code over and over. But when I assign to my SelectedItem-bound property with an object, it does not update the display's selected item. It appears that the ListBox thinks the object I assign is not a member of its items. public class MainViewModel : ViewModelBase { /...

Checkbox not removing items if unchecked - C# WPF

The CheckBox in my form won't remove items from the listbox at all if it is unchecked, even though I have it in the correct events private void WWW_checkbox_Checked(object sender, RoutedEventArgs e) { packagelist_listbox.Items.Remove(SelectaCategory_listbox); LoadPackageList.Load("www.xml"); XmlNodeList WWWPackageList = Load...

Synchronize keyboard selection with SelectedItem in ListBox

When using a Silverlight ListBox, I can programmably select an item by assigning to SelectedItem or SelectedIndex, and I can ensure that the selected item is visible to the user using the ScrollIntoView method. Doing this the item is correctly selected (the background of that item is blue), but the keyboard focus is left on the first it...

Trouble binding a BindingList to ListBox.

In the app I'm working on, I need to maintain a list of Projects which are currently loaded, and display the names of each one in a ListBox (okay, multiple ListBoxes, but that's neither here nor there). class Project { public String Name; // Etc. etc... } I've got a BindingList object which contains all of the loaded Projects...

What control should you databind a List<string> to?

I have an object with a simple property: public class obj { /* ... */ public List<string> EMails { get; set; } /* ... */ } All of the other properties on the object are simple strings or ints, and they databind well to textboxes/updowns and so forth, but I'm having trouble binding this List. The UI doesn't have any control...

ListBox, VirtualizingStackPanel, and Smooth Scrolling in WPF

I have a ListBox that may have many rows of templated DB records, including an Image, bound to an ObservableCollection. Sometimes the Collection could hold thousands of items. The performance is great, but the Scrolling is the default jumpy behavior. I would like it to have Smooth Scrolling, so I unchecked ScrollViewer.CanContentScrol...

Select control problem with Firefox when "size" and "style height" are specified

I have a problem with select listboxes under Firefox 3.5.6. When both the "size" attribute and "style:height" attribute are specified, the select control does not seem to process Page Up and Page Down key presses properly. They act strangely: first of all they scroll through the options one at a time, just like an arrow up or down key ...

How could a ListBox ObjectCollection type change between binding?

I have a listbox that is bound to a strongly typed data table. I also have a textbox in which the user can add items to the list, and the items will be added to the database. Whenever the user attempts to add items to the list, I iterate over the list and check to see if it's a duplicate, in which case i simply select the item in the l...

Can't fully style a ListBox/Scrollviewer in WPF

I'm using custom Scrollbars we created using standard ControlTemplates, however when I apply them to a ListBox there is a corner in the bottom right which I am unable to find any way to override. Unfortunately I can't post a picture until I get more points. But the corner I'm referring to is when both a vertical and horizontal scrollbar...

Control that is bigger than the form region is getting clipped in C#

Hi, I have a normal Form control and in the CTOR function I have the following : this.Region = System.Drawing.Region.FromHrgn(WinUser.CreateRoundRectRgn(0, 0, this.Width, this.Height, 16, 16)); Later in my App I create a ListBox object and show it at the bottom of my parent form, but the listbox size is bigger than my form and theref...

listbox value with one row

I have a to select a number between one to thousand... I dont want to use a dropdown list because there are too many values instead i want the box which has the values to act like a listbox with up and down arrows within the box... I tried using the listbox with one row and it starts acting like a dropdownlist... <asp:ListBox ID="List...

How should I approach a listbox of numbers when the range may be too large?

I have a list box control which I am filling from the page's code behind. It works with values from 1 to 100, but what if the range I need gets really large? (For example, 1 to 200000000?) Currently I am using this: <asp:ListBox ID="ListBox1" runat="server" EnableTheming="True" Height="20px" Width="54px"> </asp:ListBox> And in my...