1,201 Topics
![]() | |
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. | |
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 … | |
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 … | |
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 | |
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 … | |
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. … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
how to reorder columns in listview? Thanks | |
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 … | |
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 … | |
[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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
Hi, Is there any way I can select multiple items in a listview programatically in WPF? | |
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 … | |
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. | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
hai am new in the .net how to add more than field value list view | |
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) … | |
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", … | |
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 … | |
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 … | |
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 = … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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") … |
The End.