1,201 Topics

Member Avatar for
Member Avatar for sean.downes.96

Can anyone explain how to remove an item from a listvuew. Ive tried: ListView6.SelectedItems.Remove() However that doesn't work, it has the little blue line underneath it. Does anyone else have any ideas? Thanks

Member Avatar for bnitishpai
0
162
Member Avatar for sundog1

Hi guys, I hope someone can help. I have a list view being populated by a Table (cashCustomers) in an Access DB which has customers Information. * CashAccRef * CashName * CashAddress1 * CashAddress2 * CashTown * CashAddress3 * CashAddress4 * CashAddress5 and the following Orders table (cashOrders) * ID …

Member Avatar for Mike Askew
0
518
Member Avatar for consc197

I need some help with the following. I have a form called frmMain that has a couple of icons, one of the icons when clicked loads frmNotes within a Panel, frmNotes has a ListView and i want to load data from a Microsoft Access Database Table into the ListView I've …

Member Avatar for G_Waddell
0
155
Member Avatar for consc197

Hello, I want to search a specific column in ListView. I've coded searching however it always defaults to search the first column, how can i specify which column to search? Here is my code: Private Sub btnSearch_Click(sender As System.Object, e As System.EventArgs) Handles btnSearch.Click If txtSearchThoughts.Text IsNot "" Then 'ListViewSearch.Focus() …

Member Avatar for AndreRet
0
135
Member Avatar for sean.downes.96

Hello. Ive got a listview with columns etc and ive managed to sort the coding out so when i open a form, fill in the details in the relevant box then press save it transfers some of that data into the relevant columns, which is great. However i would like …

Member Avatar for sean.downes.96
0
107
Member Avatar for consc197

I need some help with the following. I have a form called frmMain that has a couple of icons, one of the icons when clicked loads frmNotes within a Panel, frmNotes has a ListView and i want to load data from a Microsoft Access Database Table into the ListView I've …

0
87
Member Avatar for Mindazz

Hello. I can search for items in first listview column using FindItemWithText. I wonder is it possible to search in other listview columns and highlight found text, not all item line ? :?: Searched on google all day long but no luck... :sad: My Listview contains multiple items and each …

Member Avatar for G_Waddell
0
4K
Member Avatar for sundog1

Hi guys, Currently I have a list view which is populated from a table in a Access database. It currently shows 3 columns of data which is fine. When I click on the item It populates the left hand side whith is full off text boxes such as 'Name', 'Address …

Member Avatar for Mike Askew
0
191
Member Avatar for 432
Member Avatar for jonkeeler

Hi, The code below selects all items in a listview control,fine,but I was wondering how I could code to select all but the very last line in the array. [CODE]Private Sub SelectAllToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SelectAllToolStripMenuItem1.Click Dim i As Integer Dim lvItm As ListViewItem Dim …

Member Avatar for Reverend Jim
0
1K
Member Avatar for Bile

-->>Hi,I'm having an Access database (.mdb) with Members table and column Date registered just for an Example with datatype as text. -->>Now I have an Interface that I need to use it to get all registered members within the specified range of dates by using the Datepickers (1. Is for …

Member Avatar for Bile
0
139
Member Avatar for joel.hahn

I have beeb unable to figure out how to get data from a list view. It needs to be a multislect, and I need to get the data from a specific column. my listview consists of a 3 column with data populated from a database. I am after the data …

Member Avatar for Reverend Jim
0
943
Member Avatar for GTTravis

I have a form that has a dropdown list with all the ID's of a particualr table in my database what i want to do is whenever the user selects a particular ID the remaining fields along with the id selected are loaded in a listview. and this dynamic list …

Member Avatar for GTTravis
0
277
Member Avatar for bantex07
Member Avatar for AndreRet
0
66
Member Avatar for putek

hi .. I'am a student and my teacher ask to creat a program in vb6 using list view text boxes and command bottons, labels and 2 forms . The out put are the form 1 will display the list view and 2 text boxes labelled with the Total price and …

Member Avatar for Reverend Jim
0
132
Member Avatar for Reverend Jim

This is a short bit of code that shows how to implement sorting on columns in a details-mode ListView. Suggestions for improvement are always welcome. One possible improvement would be to modify the column headers to indicate which column is being sorted and in which direction.

0
2K
Member Avatar for BBMoretti

i have a listview and a combobox. i need to display all my column headers from the listview as items on my combobox. also i need to "sort" the data of my listview according to the selected item on my combobox. ex: my listview contains the column headers, "name", "address", …

Member Avatar for Reverend Jim
0
164
Member Avatar for pipelian

i have a datagrid which contains a CheckBox colum. now i want to pass values (just 1 column) from datagrid to listview based on which cell is checked. ![Untitled31](/attachments/large/3/Untitled31.jpg "Untitled31") Picture shows that, once the cell is un-checked value disapears on listview.column 1. Thanks daniweb in advance

Member Avatar for M.Waqas Aslam
0
545
Member Avatar for Reverend Jim

Sometimes sorting data can be easy and sometimes it can be difficult. If you have data in a listview you can spend a great deal of time writing ICompare functions. This is appropriate for non-trivial applications but can be a little intimidating for inexperienced programmers. Also, it is a problem …

Member Avatar for Reverend Jim
1
892
Member Avatar for Mark2349845

hi i don't know where the problem i have forum contain listview i want change some value in this listview from class example Public Class Test Private Shared vidlist As Integer = 1 Public Shared Sub Hello() Try start: If CInt(frmMethod1.ListView2.Items.Item(vidlist).SubItems(1).Text) < CInt(frmMethod1.ListView2.Items.Item(vidlist).SubItems(2).Text) Then '.. ElseIf CInt(frmMethod1.ListView2.Items.Item(vidlist).SubItems(1).Text) >= CInt(frmMethod1.ListView2.Items.Item(vidlist).SubItems(2).Text) Then …

Member Avatar for Reverend Jim
0
142
Member Avatar for katie1988

I'm creating a program where the user can search items in an access database and results are displayed in a listview. When I click search all items are displayed but when I enter an item in the textbox then search nothing is displayed. This is my code Private Sub cmdProdSearch_Click() …

Member Avatar for Bile
0
1K
Member Avatar for Mitja Bonca

I have a small problem with printing reports (made by crystal reports). In Form1 I have a list of customers in a ListView (with checkboxes). If the users selects one customer (checkes ONE checkBox) the report is shown - and the report it self has on option to print. If …

Member Avatar for waqassilat
0
855
Member Avatar for klars247

**In this code you must type the complete word in the textbox that stored in ur table to shows up in the listview. any1 can help me with this?? it should be base by letters not word.** Private Sub ListView1_click() Dim rs As New ADODB.Recordset Dim selected As String If …

Member Avatar for AndreRet
0
500
Member Avatar for Eruditio

I have a ListView control on a tab page. The backcolor of the items of the ListView are changed according to certain criteria, but whether or not the backcolor changes appears to be pretty random. The tab page containing the ListView is not the default tab page on application startup. …

Member Avatar for Eruditio
0
1K
Member Avatar for morgan.wowk

I'm wondering why this code doesn't work on form load. Everything works except the item being added to the listview. I just got back into C# syntax, so can you guys explain this a bit please, thanks ahead. if (System.Net.NetworkInformation.NetworkInterface.GetIsNetworkAvailable() == true) { } else { MessageBox.Show("An error occured in …

Member Avatar for Mitja Bonca
0
285
Member Avatar for Reverend Jim

Web Site Not Responding I was trying to go to a thread this morning (06:20 Winnipeg time) and DaniWeb wouldn't display it. All I got was >The connection to the server was reset while the page was loading. I tried several times with the same result. In order to determine …

Member Avatar for Reverend Jim
0
185
Member Avatar for kerek2

Hi all... I'm new in vb.net and just create a listview project . I wan to display item from database(.mdb) into listview.how to make the next item going below and not auto sorting by id?...please help me...thank in advance Do While IBSSDR.Read() If IBSSDR.Item("USERDEFINED10").Equals("Y") Then ListView1.Items.Add(IBSSDR.Item("CARDHOLDERID")).ToString() ListView1.Items(ListView1.Items.Count - 1).SubItems.Add(IBSSDR.Item("NAME")).ToString() If …

Member Avatar for kerek2
0
141
Member Avatar for hrul

hye guys..here is the problem..how to use the item in the listview in order to retrieve data from database? i have code that display 4 digit in every line in listview item.. Private Sub btnSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSearch.Click Dim xmtBuf() As Byte = {&HAA, …

Member Avatar for jezguitarist30
0
122
Member Avatar for bhagawatshinde

Hi guys, How to display vertical scrollbar in listview. In listview their are 3 columns also i have set ListView.View = View.Details; but vertical scrollbar doesn't appear. Any idea Thanks in advance.

Member Avatar for bhagawatshinde
0
77
Member Avatar for PinoyDev

Good day Gentl'men! I just need a little help for date manipulation.here is the criteria.. I have **two date picker, dtfrom.value & dt2.value, and a variable called "viewtype".. ** **if viewtype="monthly"**, I want to create a listview column base on fromdate.value & todate.value..Example, if **fromdate.value="12/24/2012" and to.value="06/31/2013"**, I want to …

Member Avatar for PinoyDev
-1
202
Member Avatar for Mikey12345

Hi Im trying to achieve something which seems simple but is proving difficult. I have listview1 which will display the values of two textbox's when a button is clicked. I have listview2 which will make a calculation based on the two values in listview1 when a button is clicked. What …

Member Avatar for Reverend Jim
0
166
Member Avatar for Mikey12345

Hi Is there a way that i can a loop in my program Dim Total1,Total2,Total3,total4,Total5,Total6,Total7 ,Total8,Total9,Total10 as integer For I = 0 to 100 Total1= InterestRate(i, Listview1.Items(0).SubItems(1).text,Listview1.items(0).subitems(2)) Total2= InterestRate(i,Listview1.items(1).subitems(1).text,Listview1.items(1).subitems(2)) Dim Item1 as new ListviewItem(i) Item1.Subitems.add(FormatCurrency(Total1+Total2,2) ListView2.Items.addrange(new listviewitem() {Item1}) Next This works because i have know how many rows have data …

Member Avatar for Mikey12345
0
140
Member Avatar for Mikey12345

Hi Everyone I have a listbox that calculates interest rates the code is as follows:- dim amount as double = val(textbox2.text) dim counter as integer for counter = 1 to 10 listbox1.items.add(counter & " % " & formatcurrency((amount*counter)/100)) next counter This works great but i would like to use a …

Member Avatar for Mikey12345
0
132
Member Avatar for nubie.net

Hello kindly help me to solve my problem to check item listview to avoid duplicate item in database. I have 1 listview, my plan the listview checking each item from database before insert to database. and item in listview obtained from opendialog excel this is my code : when items …

Member Avatar for adam_k
0
1K
Member Avatar for choosechrist

I've been trying to use different methods to insert buttons into a treeview control. But I couldn't figure it out. Someone told me it was not worth the hassle. Im new to vb and im trying yo figure out how to prepare a collapsible listview which shows links to different …

Member Avatar for lolafuertes
0
191
Member Avatar for squizy

So i made a Login Form Which i type in to a 2 textbox a value and it will login to the site now here is where im stuck > Lets Say i want to know my balance of $ in a site i want to Auto Login to the …

Member Avatar for CurtisUN
0
233
Member Avatar for aquamarine_kath

I want to display values in a listview within another listview. I already displayed values in the parent listview(lvPackage) but I don't know to insert values in the child listview. I'm using mysql. My only problem is that I don't know how to display values lblPackAct in child listview(lvPackAct). Here's …

0
156
Member Avatar for Gamer0077

Hello everyone, I'm writing an application with a ListView in C# WPF. I was wondering if I was missing a reference of something, because I get this error all the time: `'System.Windows.Controls.ListView' does not contain a definition for 'Columns' and no extension method 'Columns' accepting a first argument of type …

Member Avatar for Gamer0077
0
537
Member Avatar for soft_coder

Hi I am facing the following the following problem. I have 2 ListViews and 2 DataPagers - 1 for each. Now when I paginate first DataPager the second DataPager page index is getting reset to 0. So, the second ListView is getting reset to the first page. Any kind of …

0
81
Member Avatar for jsj1411

how to save records in listview into ms access database table using a button , i've tried with my codes but nothing is saved in the database `Inline Code Example Here` private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim con As New OleDbConnection con.ConnectionString = …

Member Avatar for Reverend Jim
0
169
Member Avatar for jsj1411

i have 6 collumn in a listview , how do i multiply each data by row in collumn 4 and 5 and display the result in collumn 6.?? `Inline Code Example Here` Dim itm As ListViewItem str(0) = txttarikh.Text str(1) = txtresit.Text str(2) = Txtkod.Text str(3) = Txtnama.Text str(4) = …

Member Avatar for jsj1411
0
290
Member Avatar for IDC_Sharp
Member Avatar for hyesin

hi, im new in vb.net i want to delete an item on a listview, this is my code If ListView1.SelectedItems.Count > 0 AndAlso MessageBox.Show("Do you want to delete this item?", "Confirm", MessageBoxButtons.YesNo) = Windows.Forms.DialogResult.Yes Then 'make sure there is a selected item to delete ListView1.SelectedItems(0).Remove() End If now my problem …

Member Avatar for lolafuertes
0
206
Member Avatar for razree

Hi all I've been struggling with this one for some time now and I would realy appreciate some help. I have a string which gets data from mssql server, reader collects data (among others also "person) SQLStr = "select * from tablename order by id desc command = New System.Data.SqlClient.SqlCommand(SQLStr, …

Member Avatar for razree
0
2K
Member Avatar for bazzer14

Hi..... How do i set a listview to only add one item from a combobox? Example: In the text file containing the list are "Chicken, Beef, Buffalo", that already exists in listview is "Cow" then the listview will only add "Chicken, Buffalo". i have here a code for adding items …

Member Avatar for bazzer14
0
128
Member Avatar for sundog1

Hi again guys... Right, Having issue with a ADODB connection as I have never used one before. Currently trying to read files out of a folder using the ODBC connection that comes with the Software I want to extract data from. I have managed to get the connection to the …

Member Avatar for lolafuertes
0
268
Member Avatar for HinataChan

Hellooooo... I want to ask a question! I have Listview1 and in the SelectedItemTemplate I have ListView2. When i click "Select" The Listview2 shows up... and then when i click it again i want it to hide but, i want it check to check if the ListView2 has items to …

Member Avatar for HinataChan
0
99
Member Avatar for VB 2012

Hi people im back or well atleast for now -_- Gr 11 is Sh...t anyway. Im busy making a database for myself - im using listview not sql or other cr..p (Plain) I would like to get a guide to help me with all features of listview im new in …

Member Avatar for Reverend Jim
0
101
Member Avatar for sundog1

Hi guys, I have an issue with the code I've written in C# where the listview will connect to the database without a problem but it will only populate the 1st row of the table BUT.... it will duplicate it for the exact amount of records I am expecting to …

Member Avatar for sundog1
0
153
Member Avatar for bilal_fazlani

I using listview on an asp.net form.. It has item template and edit template... I want to add ajax slider in both the templates.. I just used on script manager as suggested my many people,, but for reason i can only see one single slider in the top row.. and …

Member Avatar for bilal_fazlani
0
332

The End.