listbox

Trying to Make an Efficient Calendar in Microsoft Access

半腔热情 提交于 2019-12-18 17:24:36
问题 I'm working on an equipment management system using a MS Access .mdb file for the front end, and SQL Server 2008 for the back end. If needed I can convert the front end to a MS Access 2010 file. I created a calendar form, where the users can see what equipment is booked, signed out, or over due. It looks like this: I made this using 42 subforms, which is unfortunately slow. With the data shown above, it only takes about 5 seconds to load, but as soon as I use real data, it starts to really

primefaces datatable rowedit not updating cell element

对着背影说爱祢 提交于 2019-12-18 16:54:25
问题 I have a datatable with rowedit. One column of my table is a cell with a listbox in, the items of the listbox are dynamically retrieved (depending on the value in another cell) I use rowEditInit to set the selectedrow item. And I want to update the listbox to retrieve the correct values. This does not work. When I do <p:ajax event="rowEditInit" listener="#{workOrderDetail.onEdit}" update="orderitemstable" /> Then when I click the pencil icon, the I can see the row switch to edit mode and

Present ListBox Items Bottom-to-Top

笑着哭i 提交于 2019-12-18 15:18:16
问题 I've searched for quite a while trying to find an answer to this without any results. The default WPF Listbox adds items aligned at the top, and additional items below it. I'd like a listbox which presents the items in the opposite direction, so it adds items aligned to the bottom. Example: I'm sure there must be a simpler way that I've overlooked to do this without rewriting it all, but Google doesn't seem to have the answer for this one and I'm stumped. Thanks. 回答1: Change the ItemsPanel 's

Stretch ListBox Items hit area to full width of the ListBox? ListBox style is set implicity through a theme

佐手、 提交于 2019-12-18 14:55:42
问题 I've looked around for an answer on this, but the potential duplicates are more concerned with presentation than interaction. I have a basic list box, and each item's content is a simple string. The ListBox itself is stretched to fill it's grid container, but each ListBoxItem's hitarea does not mirror the ListBox width. It looks as if the hitarea (pointer contact area) for each item is only the width of the text content. How do I make this stretch all the way across, regardless of the text

Using WrapPanel and ScrollViewer to give a multi-column Listbox in WPF

眉间皱痕 提交于 2019-12-18 13:41:21
问题 I’m making a simple LOB app which loads data from an XML file and displays it in a list with a few buttons for editing. In my first attempt, everything was ok except that the list scrolled downwards in one long column. I would prefer the data to wrap so that at the bottom of the Window it starts a second column, and so on – if you resize the Window the data should resize accordingly. First, I just put the ListBox inside a ScrollViewer. This made no difference whatsoever. Then, I added a

Find control inside Listbox.ItemTemplate (WPF C#)

你离开我真会死。 提交于 2019-12-18 13:39:28
问题 I have some problems finding the right TextBlock control inside a StackPanel . My markup: <ListBox Name="lstTimeline" ItemContainerStyle="{StaticResource TwItemStyle}" MouseDoubleClick="lstTimeline_MouseDoubleClick"> <ListBox.ItemTemplate> <DataTemplate> <DockPanel MaxWidth="{Binding ElementName=lstTimeline, Path=ActualWidth}"> <Border Margin="10" DockPanel.Dock="Left" BorderBrush="White" BorderThickness="1" Height="48" Width="48" HorizontalAlignment="Center"> <Image Source="{Binding

Setting selected item in a ListBox without looping

[亡魂溺海] 提交于 2019-12-18 13:18:01
问题 I have a multi-select listbox which I am binding to a DataTable. DataTable contains 2 columns description and value. Here's the listbox populating code: DataTable copytable = null; copytable = GlobalTable.Copy(); // GlobalTable is a DataTable copytable.Rows[0][0] = "--ALL--"; copytable.Rows[0][1] = "--ALL--"; breakTypeList.DataSource = copytable; this.breakTypeList.DisplayMember = copytable.Columns[0].ColumnName; // description this.breakTypeList.ValueMember = copytable.Columns[1].ColumnName;

Changing color, highlight, background size of a ListBox?

你离开我真会死。 提交于 2019-12-18 09:33:31
问题 So I've searched around and managed to highlight the values in my ListBox , but I'm trying to increase the font size for the text inside the ListBox but it results in the following image as attached: This is my current code: Private Sub ListBox1_DrawItem(sender As System.Object, e As System.Windows.Forms.DrawItemEventArgs) Handles ListBox1.DrawItem e.DrawBackground() If ListBox1.Items(e.Index).ToString().Contains("*") Then e.Graphics.FillRectangle(Brushes.Red, e.Bounds) End If e.Graphics

How to create a picklist in JSF? Tried moving items using JS/jQuery, but submit errors with “Validation Error: Value is not valid”

孤人 提交于 2019-12-18 09:14:55
问题 I am creating web application using JSF 2.0 where I am assigning users to view projects. For that I have two list. First list that have users who are not assigned that project and list B have users who have assigned that project. And we can interchange the data. Code I have is <t:selectManyListbox id="sourceCars" style="width: 40%;" value="#{PersonalInformationDataBean.listOfUsers}" size="10"> <t:selectItems value="#{PersonalInformationDataBean.showAllMyRemData()}" var="t" itemLabel="#{t

Excel VBA Multicolumn Listbox add non contiguous range

放肆的年华 提交于 2019-12-18 07:04:39
问题 Im trying to figure out how to add a non contiguous range of cells in a row to a multicolumn Listbox, but only the second line below works. lbxSelectable.List = Sheets("DB").Range("A1,B1,C1").Value lbxSelectable.List = Sheets("DB").Range("A1:C1").Value Is there any efficient function which will allow me to select certain columns in a row and stick it in an entry of a multicolumn list box? Many thanks 回答1: To display a non contiguous range of cells in a row to a multicollumn Listbox, you have