Way To Select From A List - Aren't The Two Listboxes Getting A Little Old?

Dec 22, 2009

How many times have we seen this type of selector:

I was just about to start creating this in a WinForms app, when I thought that others may have some ideas for doing this better. We need it to sort - so the right hand list will need up/down buttons. But this seems so old school. I love devexpress components, and was thinking of asking them if they would consider adding a component that handles this functionality with a slick UI.

I am thinking that a graphical representation of the objects, and a graphical representation of the listboxes - that would be a more intuitive way to move items around. Has anyone seen an open source project like this?

View 4 Replies


ADVERTISEMENT

Finding Items In One List That Aren't In A Second List Using Linq

Jan 25, 2011

I have two generic lists, named ListA and ListB. Both ListA and ListB could potentially have duplicate items. What I would like to do is use LINQ to grab the items in ListB that are not in ListA, but I'm unsure how to do so.

View 8 Replies

How To Select Item # On Listboxes

Jul 2, 2010

what I want to do is make it so when i select the first item in Listbox1 it will also select the first item in listbox2 and if i select the second one it selects the second one on listbox2 as well. Is there a way to do this? i honestly have no clue and i know my code is wrong cus i do not know how to select the item # on listboxes but this is what i have:[code]

View 7 Replies

Mutli-Select Code For Tranfering Data Between Listboxes?

Dec 5, 2007

I have a listbox with multi-select turned on. I want to transfer items from listbox 1 to listbox 2. The following code supporting the "Add" button works for an example where you are not using multi-select. How do I modify it to accomodate multi-select?

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
If Me.ListBox1.SelectedItem IsNot Nothing Then
Me.ListBox2.Items.Add(Me.ListBox1.SelectedItems())

[code]....

View 2 Replies

Array List And Multiple Listboxes?

May 27, 2012

I am pretty sure that I understand what needs to be done here but I'm not 100% sure on how to go about this.I have a list box that contains a list of url's for websites. 100 to be exact.I have a web request defined in a private sub.What I need to do is to loop through the listbox1, grab one url, place it into the variable of the request and then save that entire web request (with link) to string.In the end I will have all 100 url's put into their own web requests and feed back into an array which I can then put into some sort of multi-threading method.

View 4 Replies

.net - WinForms - Passing Same List As DataSource For Two Different Listboxes?

Dec 30, 2009

Check out the simple code below :

[code]...

What happens is that when the Item2 is selected in the first listbox, the second listbox automatically changes its selected item to the Item2. This happens just the same with the other listbox.

View 3 Replies

Find A List Of Items Between 2 Listboxes Program?

Sep 15, 2011

I want to check for each item in list box if item exist then add it to listbox3[code]...

but it is very slow if there is way to search for list of items in listbox at once?

View 3 Replies

Delete Some Files But Only If They Aren't In Use?

Nov 23, 2009

i want to delete some files but only if they aren't in use. What i did was a try/catch:

Try
My.Computer.FileSystem.DeleteFile(fileInfo.FullName)
Catch ex As Exception
End Try

but it seems that this method is very slow if i try to delete some files over network.

Is there an faster way to delete files? Is it faster to check first if an file is open? If yes, how can i check if an file is open?

View 5 Replies

Settings AREN'T Saved?

Apr 9, 2010

I have about 10 settings in my app which are set during coding, but the user can change them during the running of the app. They should then be saved so the same settings are there the next time the program is run.

View 1 Replies

Compare 2 Datasets That Aren't Identical?

Jun 5, 2011

I've just about scrambled my brain on this, searching and trying things, so I'm hoping someone sees something that I'm missing or can explain it to me. I'm new to .NET, used to do a lot of programming in VB but that was many years ago.

[Code]...

View 1 Replies

ASP Files On Windows 7 Aren't Loaded Even Though Installed IIS?

Jun 5, 2011

I don't know how to get my asp code to work on windows 7. I ran my project, it works correctly.

But for some pages I'm getting an HTTP 401.5 error.

View 1 Replies

C# - Aren't Short Circuited Operators The Default?

Feb 5, 2012

Given that a typical coding mantra is "Don't induce side effects in method calls." and that the only reason (that I know off - please enlighten me if I'm wrong) to not use short circuited operators is when you depend on the side effects of a method call in subsequent code. Why isn't the default operator in languages like C# and VB.NET not a short circuited version?

[Code]...

View 1 Replies

My Programs Aren't Playing Background Audio

Nov 12, 2010

Right now I'm trying to make an alarm clock program.I know my coding is correct and I'm not geting errors. Also my sound is a .Wav and was properly inserted into the resources folder. I was wondering if there is just some dumb setting that needs to be changed or if I'm forgeting something in the code.[code]...

View 4 Replies

Prevent Warnings On Variables Which Aren't Assigned A Value In A Try

Dec 22, 2010

I found some code on the internet as below (slightly modified).It simply requests the content of a webpage.However I get two warnings:

Warning 1 Variable 'srRead' is used before it has been assigned a value. A null reference exception could result at runtime.

Warning 2 Variable 'Str' is used before it has been assigned a value. A null reference exception could result at runtime.

I know I can simply forget about the Finally and add the code to the try block.Will that be the way to go or can I prevent the warnings using a different approach?

View 2 Replies

VS 2005 : BitBlt From Windows That Aren't Visible

Mar 9, 2010

I'm using BitBlt and GetDC to capture windows and save them to a bitmap, but a window that is covered or overlapped by another window appears with that window showing over top of it. Is there a way to stop this from happening? I have the window handle available, the graphics context, and a Process object.

View 5 Replies

VS 2008 Why Aren't Controls Drawn Transparently

Jun 3, 2010

If you make a Control's BackgroundColor Transparent and put it in front of another control, the other control doesn't show through. Why not? GDI+ makes this easy, doesn't it? Why don't Windows Forms use it?

View 10 Replies

.net - Multi Select List Box?

Mar 30, 2011

I have a list box on a form and it works fine for what I want to do.I am wanting to edit items on the form, this means populating the listbox and then selecting the relevant items.

My listbox contains a list of item sizes, i want to select the sizes which belong to the item being edited.

can someone give me some pointers.I tried me.lstItemSizes.SetSelected(i,true) but this only works for a single item.

[Code]...

View 4 Replies

List View Cannot Select?

Jan 16, 2012

Public Class frmListView
'***************************************************************************************************************************
' The code below is for multi select of items from list view by holding down the control key! This does not work!

[Code]....

View 2 Replies

Listview Select Next In List

Nov 15, 2011

Is there a way to select the next item in a listview by pressing a button? I have been using listbox for along time now and its pretty easy to do there ListBox1.SelectedIndex = ListBox1.SelectedIndex + 1..any idea how to do it in a listview?

View 1 Replies

Select From Binding List ?

Jul 20, 2011

I have the following Object: PatientEligibilityObject

It has One To Many relation with PatientsEligibilitiesDoctorsSpecialties

I fill the Child value into Grid like following : - Dim lst = PatientEligibilityObject.PatientsEligibilitiesDoctorsSpecialties.GetNewBindingList()

It fills the grid with All Columns in the Table PatientsEligibilitiesDoctorsSpecialties

ID
PatientsEligibilityID
DoctorSpecialtyID
RegDate
RegUserID

[CODE]...

Notice that there is a foreign key between PatientsEligibilitiesDoctorsSpecialties and DoctorsSpecialties

View 1 Replies

Select Same Item In Another List?

Nov 15, 2009

Is it possible to Double-Click A "Listbox1" item, E.G:the 3rd item on the "Listbox1" and be able to make it find the 3rd item on the otherlist "listbox2" and use that value/item to play..?

View 1 Replies

C# - Why Aren't Code Regions Allowed Within Method Bodies In .NET

Jun 30, 2010

I'm refactoring VB.NET code where methods routinely run five hundred lines and the references are so tightly coupled that the code defies simple refactoring such as method extraction. And that's why I thought I would try regions within a method body. I just wanted to organize the code for the short term. But the IDE didn't let me (resulted in a compiler error.) I'm just curious as to why? Seems like code regions shouldn't impact the compiler, intellisense etc. Am I missing something? (Still using VS 2005 btw.)

Interesting: This seems to be language specific. It's OK in C# (I didn't check that initially) but not in VB.NET.

public module MyModule
Sub RunSnippet()
dim a as A = new A (Int32.MaxValue )

[code]....

that gets a compiler error but the C# version is ok.

View 5 Replies

IDE :: Changes I'm Making To My Code File Aren't Taking Effect?

Oct 26, 2009

I'm developing a Windows Service, but for some reason, the changes I'm making to my code file aren't taking effect. I clean, build, and rebuild the solution as well as all the files that I'm changing, but nothing's happening.Is this a problem with the installation of the service, or something wrong with my IDE? I just now thought that maybe I shouldn't be rebuilding the files...

View 11 Replies

Stop Program From Writing To A File When Certain Conditions Aren't Met?

Dec 11, 2011

I am building an application that accepts input entered into textboxes, then checks the input for negative values, etc. before writing it to a file. If the data does not meet the conditions, a message box pops up letting the user know. The problem I am having is that after it checks the data and displays the message box, it continues to save the input to the file anyway. How do I make it only write to the file if all the data meets my conditions?

View 1 Replies

.net - Set Enum Value Via Dropdown List Select (ddl)?

Oct 14, 2011

There are three files:index.aspx

serverInfo.cs
setup.aspx.vb
My enum is in:
//Class:serverInfo.cs
public enum ServerVersion

[Code]...

See which version is selected via dropdown list, compare this to the value in the enum store in var and add to my connection check.

View 1 Replies

Asp.net Mvc - MVC.NET In VB - Select List To Html.Dropdownlist?

Jul 20, 2010

Seems most of the examples I find are c#, so in some cases I'm left scratching my head... to make a long story short, I'm simply trying to output the selectList of items to a drop-down within my view:

My ViewModel:
Imports System.Web
Imports Whitebox.UI
Namespace ViewModels

[Code]...

All I'm trying to do now is simply output my "SelectList" within a HTML.DROPDOWNLIST() in my view.When doing a step through, my list items are showing within my "Return view(viewmodel)" watch, but I'm stuck with performing the output.

View 1 Replies

How To Select Specific Items From A List

Sep 28, 2010

I am working with a list of points. It is declared as a global in my form.[code]the only issue is that instead of New Point(100,100) i need to be able to navigate to the previous 4 records in the list. pull out the 4 x vals the 4 y vals and boom there you go. In the old days id make a simple loop and get r done but im not sure the syntax to step through the list that way.

View 8 Replies

Select Next Item In List View?

Sep 15, 2010

I need to select next in list view i used this code but do nothing ListView1.Items(Me.ListView1.Items.Count +1).Selected = True

View 3 Replies

Select Word From List And Display?

Jan 15, 2012

How do you randomly select a word from a list like below[code]...

and display it in a text box when a button is clicked, but where one word will not appear more than once each time the program is run?[code]...

View 2 Replies

Code To Convert .doc To .xlsx - Underlined Words Aren't Declared

Feb 10, 2012

Option Explicit On
Imports System
Imports Microsoft.VisualBasic
Partial Public Class _Default

[code]....

I am getting error in the sheets and iffset liness.. it says

Sheets("Sheet1").Cells.SpecialCells(xlCellTypeLastCell)Offset(1, 1).End(xlToLeft).PasteSpecial(xlPasteValues), underlined words aren't declared

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved