1,201 Topics

Member Avatar for
Member Avatar for TobbeK

I need to serialize items populated in a listview. Can anyone provide me with some simple example how to do that. No matter if it is binary or XML.

Member Avatar for sknake
0
217
Member Avatar for summey

I have a program that you can see below. [URL="http://www.summeylabs.com/images/prog.jpg"]http://www.summeylabs.com/images/prog.jpg[/URL] It has a textbox, button, menu, and listview. What the application does is you type in a machine name into the text box hit search it will connect to the machine delete a file i have coded with in the …

Member Avatar for sknake
0
95
Member Avatar for BlkR

Hi, Having troubles with the conversion of date in a textbox i think.... currently txtDate.text has the date format of dd/mm/yyyy and im trying to grab data from the database that is equal to that date and put it in a listview. Problem Im haivng is the conversion from MM/dd/yyyy …

Member Avatar for sknake
0
130
Member Avatar for Lakshith

Hi How can I check whether a listview has text in a particular row?Is there a method like if(istviewname.Items[row no].Text ==" ") {code} else if(istviewname.Items[row no].Text !=" ") { code} Can anyone help me? Thanx

Member Avatar for kvprajapati
0
105
Member Avatar for BlkR

Hi, Currently have a working solution in displaying data from the database to listview through specific dates selected, however the problem lies with it sometimes selecting the right data for the dates and sometimes it doesn't. Just would like someone to check whether the code i have is correct or …

Member Avatar for BlkR
0
98
Member Avatar for papanyquiL

I've got drag and drop to work in ListView so that I can drag a folder containing mp3's and they will display. My problem is that they only show up if I drag the directory in. I can't drag a single .mp3 file in by itself and have it displayed. …

Member Avatar for papanyquiL
0
825
Member Avatar for robertlees

Hi In my VB program, I am going through a database, adding each row/record to a listview. One of these fields is a date. For each row/record, I want to get the difference in days between that date, and the corresponding date in the next row/record. Thanks Robert

Member Avatar for vb5prgrmr
0
216
Member Avatar for adamdk

Hello I want to nest one listview inside another one, with the inner listview's data source taking a bound value from the parents as a parameter. Both DataSources are Stored Procedures. For example, imagine I have a database with two tables for car information, MAKE and MODEL. I want to …

0
83
Member Avatar for BlkR

Hi guys, After figuring out the update data to listview in another post, I have this problem with my textbox I have a textbox that allows the user to enter a certain number, when that textbox has lostfocus(as i have currently set) it will check the database and retrieve the …

Member Avatar for BlkR
0
91
Member Avatar for BlkR

Hi, Currently having troubles in adding data to the listview i have created. It actually will add the first set of data to both the database and listview, but when i try to add a second lot of data it displays the error message that I have setup. Also how …

Member Avatar for babbu
0
2K
Member Avatar for serkan sendur

this smart listview is multiselect and sortable. i attach the entire project too. SmartListView.cs : [CODE]#region Name Spaces using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Collections; using System.Reflection; using System.Text.RegularExpressions; #endregion namespace SmartControls { public partial class SmartListView : ListView { #region …

0
65
Member Avatar for singoi

Hi friends, i got a frame with Listview which shows all the records from access table with duplicate BANF nrs.like u see in first pic BANF nrs 1 and 2 BANF Nr 1 BANF Nr 2 ID NAME ID NAME 1 MARKUS 1 INGO 2 SHEELA 2 WEBER 3 ROHIT …

0
54
Member Avatar for Sudhir1970

I have listview on the form with 10 columns. With horizontal scrollbar when I scroll I wanted to know how much I have scrolled. I am finding difficulty in getting any event that triggers when scrolled. Need help! Sudhir

Member Avatar for serkan sendur
0
100
Member Avatar for serkan sendur
Member Avatar for brieghz23

Sir, can you please Give us a VB code for our cmdDelete button? a code that will delete a data from the database (ms access).. our form looks like this >>> [url]http://img229.imageshack.us/img229/7583/image002p.jpg[/url] or [ATTACH]10893[/ATTACH] we used the "listview" for displaying the searched item/s and be deleted... note: search and add …

Member Avatar for vb5prgrmr
0
294
Member Avatar for serkan sendur

Since listview control in .net framework 2.0 does not have a datasource property, it is not bindable to neither datatable nor generic lists. i created a derived custom listview that is bindable to lists of any type. i attach the .zip to this thread. I dedicate this custom windows control …

Member Avatar for serkan sendur
2
188
Member Avatar for PinoyDev

[Good day.! I need to bind a combo box in a list view.Once the user select an item in the combo box that has been binded, the combo box text will remain on the cell of the listview where the combo box has binded. Any help will be greatly appreciated. …

0
46
Member Avatar for winkler

Hi all, it's my first time in this forum, I hope you can help. I've searched the web for a long time, couldn't find help, yet. I have a listview that displays a list of PDF files. When the user clicks on a row (in the "selectedIndexChanged" event), I display …

Member Avatar for winkler
0
772
Member Avatar for ritu verma

ListView Properties- I set MultiSelect to False, LabelEdit to true,FullRowSelect to True. I have Listview with two columns. [B]1) [/B]When I select onw row in listview,On button click i want to get the index of selected row. I m getting it but using for loop,I want to know is there …

Member Avatar for babbu
0
104
Member Avatar for sonia sardana

I want to edit the data into the ListView of the first item. when i right click on item..But when i right click selected item not come in edit mode....Plz check it out.. [code] Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load For lcount As Integer …

Member Avatar for GeekByChoiCe
0
104
Member Avatar for Gunn3r

Hello All. This is my first post here, and I'm hoping that it's my first of many. I'm just starting out in C#. I did a really small project in VB.NET, but other than that, my experience in any programming language is highly limited. I'm working on a project for …

Member Avatar for Gunn3r
0
117
Member Avatar for firoz.raj

Can anybody tell me .why i am getting error object variable not set. Kindly help me.any help would be Greatly appreciated.here is the code what i have written. [code=vb] Public Sub Addtolistview() Dim con As adodb.Connection, rs As adodb.Recordset Set con = New adodb.Connection Call OpenConnection(con) If Not OpenConnection(con) Then …

0
49
Member Avatar for b89smith

In the application that I am building I have a log window that contains a listview control. This listview control has two columns, a time stamp column and log description column. When an event happens it is added to the listview. The problem is that when about 15+ events happen …

Member Avatar for b89smith
0
145
Member Avatar for NetGD

Hello, I am am trying to get a ListView to populate based on an xml file. to acheive this I would like to use the DataTable. this is my XML file: [CODE]<?xml version="1.0"?> <main> <person> <id>1</id> <name><first>Joe</first><last>Blow</last></name> </person> </main>[/CODE] And the C# that I am using to read it: [CODE]public …

Member Avatar for kvprajapati
0
1K
Member Avatar for shers

Hi, Is there any way I can select multiple items in a listview programatically in WPF?

Member Avatar for kvprajapati
0
65
Member Avatar for firoz.raj

i simple was to add information in a listview using save button. but when click save it hangs.kindly help me .any help would be Greately appreciated. here is the code what i have written. [code=vb] Private Sub btSave_Click() Dim con As New ADODB.Connection Dim rs As New ADODB.Recordset ' On …

Member Avatar for vb5prgrmr
0
96
Member Avatar for PinoyDev

Good day.! I just need a code that will trigger the listview to put some color like(red) in a row/cell being selected. Pls help.. Thank you for spending time.

Member Avatar for PinoyDev
0
71
Member Avatar for danielgee

Hi, Is there a simple control I can use with ASP.NET to display an unbound list with multiple columns (like the ListView control in VB6.) It seems that you can use the GridView. but it seems really complicated to populate (with unbound data.) Can you use the ListBox to do …

Member Avatar for danielgee
0
156
Member Avatar for serkan sendur

this is not a question, but an application to find common lines among text files, as long as you click "read new text file" button, it compares it to the listview and removes the uncommon items from the listview. I find this application very useful, hope you will like it …

Member Avatar for serkan sendur
0
267
Member Avatar for shers

Hi, I am coding for a WPF application that has a ListView. I want to add values of one column of selected items in the listview to a string array. Is this possible? Thanks

Member Avatar for kvprajapati
0
49
Member Avatar for serkan sendur

this is not a question, but an application to compare two text files line by line. i attach the project to this post, i also attach two sample text files to compare. these two text files contain the names of the .wav files that comes ready with devices, HandHeld Dolphin …

0
220
Member Avatar for PinoyDev

Good day.! I am getting stuck with parsing my xml data in order for me to display it on a listview. The xml data to be parsed is not constant. The the <NumRows> is changing. I need .bas or any other function in VB6 that will parse the xml and …

0
46
Member Avatar for vb_programmer

Hello Forum Members; I'm currently working on a project in which I need to extract Email addresses from Outlook DBX files. I'm facing little difficulty while doing this. The main problem in front of me is handling large files! Basically, I think my approach is to be refined. Currently, I …

Member Avatar for zwr
0
256
Member Avatar for firoz.raj

can anyone tell me .why i got error object variable or with block variable not set .any help would be greately appreciated.here is the code what i have written.Kindly find the attachment also. [code=vb] Private Sub Command3_Click() Set CON = New ADODB.Connection [COLOR="Red"]If CON.state = adStateOpen Then[/COLOR] ' con.Open ("Provider=Microsoft.Jet.OLEDB.4.0;Persist …

Member Avatar for Jupiter 2
0
166
Member Avatar for shers

Hi, How do I add a subitem to a listview in WPF? I'm coding in VB and I do not see any subitem in it. Thanks

Member Avatar for kvprajapati
0
109
Member Avatar for sonia sardana

I hav two buttons & listview on the form,On First button click,i want to insert data & images into Lvw,On Second Button click,I want to just insert the data..Mine code also does that... But just there is a little probs.On button1_Click, I assogn smallimagelist to imagelist name ,on Second button …

Member Avatar for benlovedrum
0
361
Member Avatar for ravindransrm
Member Avatar for sal21

see the image of my listview... I want colorize each cells in rowset based the percentage in cells, how to? is possible? for example: if the percntage is 50% colorize half cell if the percentage is 25% colorize 1/4 of cell .... ecc i use this to insert percentage: ITM.SubItems(5) …

0
88
Member Avatar for firoz.raj

can anybody tell me why i am getting error object variable or with block variable not set .here is the code what i have written. any help would be greately appreciated. [code] Public Sub Addtolistview() 'Dim success As Boolean DataPath = GetSetting(Application.Name, "BasicSetup", "Database", "") 'StrQuotationStartID = GetSetting(Application.Name, "BasicSetup", "QuotationStartID", …

0
45
Member Avatar for sonia sardana

hello frnds,I m able to insert the icon in ListView Column Header.. Steps-1) Drag the Imagelist. 2) Insert the iamges into the imagelist. 3)Associate the SmallImageList Property of Listview to Imagelist Name. [code] Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim lCount As Integer Dim …

Member Avatar for Ramy Mahrous
0
170
Member Avatar for mansi sharma

I associate the listview with the imagelist..Set property of listview SmallList to Imagelist..I want that on listview click. I get the icon name....But i m not getting how to get icon name..Mine code below-- [code] Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load …

0
57
Member Avatar for andy999

Hi all, I am trying to get out put in the folder . The folder is created but the text file is not visible.What is wrong with this code. Here goes the code: private void savetxt() { try { //m_stockInfolist is nothing but the listview control name string[] st = …

Member Avatar for NguyenThai
0
144
Member Avatar for vicky_menonsky

I am trying to write in a file using VC++. my program is to read the entries from the listview and write them in a text file. however i am unable to give newline after each column in listview is written , thus entire listview contents get written in a …

Member Avatar for tux4life
0
88
Member Avatar for vicky_menonsky

[B]iSel = ListView_GetSelectionMark(g_hwndLV);[/B] //used to get cursor selection from list view &then we write it to file //i hav problems moving the slection to next item .currently am using follg code: index=ListView_GetNextItem(g_hwndLV,-1,LVNI_BELOW); iSel=ListView_SetSelectionMark(g_hwndLV,index); //and then i write code to write next selected entry into file .code compiles.but doesnt work as …

0
43
Member Avatar for sal21

Here my code to fill listview. When the rset are a few the code work fats but with 154.478 rset the code use a very very time, have asuggestion? A frined suggest me to loop all rset and fill array next loop the array to fill listview. Other friend suggest …

Member Avatar for vb5prgrmr
0
159
Member Avatar for jobi116

hello, I want to create an ftp browser where user can browse the files in the ftp server in explorer style. can i get the list of directories and load it in a treeview then when the user selects the treenode, files in selected directory should be loaded in a …

Member Avatar for ddanbe
0
99
Member Avatar for firoz.raj

i want when user clicks on save button I want to update the database and refresh the listview on the curren page. i have written a code but data is not instantly comming after save button .Here is the code what i have written.I simple Want when Press ok .addded …

Member Avatar for firoz.raj
0
169
Member Avatar for adhi.adithyan

hello experts, I have created filter grid in asp.net & C#. My form design has contains 3 dropdown controls and Filter grid(User control). Its working fine(filter), but one problem arise. the form controls are clear when i filter a grid(post back). I tried to reterive values using view state, hidden …

Member Avatar for greeny_1984
0
102
Member Avatar for eigile

hi all:'( i am a newbie want to know how to get values from two tables in database. I have three tables one is the student information and the other table is the subject and grades .Both tables have id number which may join them together But what i need …

Member Avatar for javmedia
0
215
Member Avatar for ryan311

how can i save a data in listview1? i have a problem to my code heres my code [code] Dim objNewListItem As ListItem Set rs = New ADODB.Recordset rs.Open "Select * from Supplier", cn, adOpenKeyset, adLockPessimistic rs.MoveFirst Do While Not rs.EOF Set objNewListItem = lvwCustomer.ListItems.Add(, , rs.Fields("scode")) objNewListItem.SubItems(mlng_Supp_Name) = rs.Fields("sname") …

Member Avatar for ryan311
0
100

The End.