1,201 Topics

Member Avatar for
Member Avatar for jovstudios

Hello Guys Help Me To Count The Item in Listview and Update it. Scenario.. Customer Buy 3 Milk and 2 Nescafe then the Cashier Punch it Item-----------------Qty Milk-------------------2 Nescafe---------------2 The Cashier Forget to Punch the 1 Milk. the Cashier should Punch Another One Milk..But My Code This is What Happen …

Member Avatar for jovstudios
0
158
Member Avatar for pandeter

Hello, I am finishing up a program in VB that edits, saves, and adds data to a listview via textboxes. The listview data is stored on the harddrive via a txt file. One of the columns in the listview is a birthday in a DD/MM/YYYY format. I want to have …

Member Avatar for tinstaafl
0
320
Member Avatar for silversurf

Hello, Here is the scenario : I have the follwoing sales return from in my software: ![sales_return1](/attachments/large/3/sales_return1.JPG "sales_return1") In the from I have tow listview control, the left is Listview and the right is Listview1. I have the following code in procedure : Dim xsprice As String Dim xsprice1 As …

Member Avatar for hyesin
0
1K
Member Avatar for jab8288

Yes this is for a homework assignment. I am getting closer to what I need but am running into a block. my code shows how far I have gotten. I am pretty sure I can handle the washer gallons and cost part. its the second section I am aving problems …

Member Avatar for jab8288
0
636
Member Avatar for NidhiSree

Hi All, Can I show input cursor in a non-focused RichTextBox? In my project, I have a RichTextBox and a ListView control. The focus should be on ListView control. I could handle the KeyPress and KeyDown events of ListView and re-directed to RichTextBox to enable typing. But how can I …

Member Avatar for Ketsuekiame
0
160
Member Avatar for McGreedy

Hi guys, Could you teach me how to read CSV in listview using OpenFileDialog? I'm using VB 2010 Thank's a lot

Member Avatar for tinstaafl
0
3K
Member Avatar for kaizen202

I have a custom combobox as below public class ListViewCombo : ComboBox { ToolStripControlHost listViewHost; ToolStripDropDown dropDown; public ListViewCombo() { ListView lstView = new ListView(); lstView.BorderStyle = BorderStyle.None; listViewHost = new ToolStripControlHost(lstView); dropDown = new ToolStripDropDown(); dropDown.Items.Add(listViewHost); } public ListView TListView { get { return listViewHost.Control as ListView; } } …

0
174
Member Avatar for Unused Mass

My listview has 3 columns. "Text" , "Delay" and "". The "" column is to show which one is being ran by filling it with a "<". If I use List.Items(currentTimer - 1).SubItems.Add("<") Then it works, but how will I remove it? SubItems(1) modifies column 1, and SubItems(2) is out …

Member Avatar for Begginnerdev
0
189
Member Avatar for kiran2012

Hi, I newly installed VB6 and Visual Studio 2012 Premium. OS - Windows 7. I want to add Listview control to my form. For this when i add reference to MS Windows common controls, VB crashes and closes. This is the error msg i am getting "Unhandled exception at 0x00409719 …

Member Avatar for AndreRet
0
2K
Member Avatar for PinoyDev

Good day! I have this datasets format in sql server! AccountID AccountName 1/30/2013 2/30/2013 3/30/2013 4 Credit Cards 20,000 30,000 12,000 5 Loans Payable 5,000 6,000 5,000 How can I load all this data to listview? The colums are dynamic. It could be 6, 7, 8, or 12, or higher. …

Member Avatar for PinoyDev
0
178
Member Avatar for LeunamP

Hello guys, can someone help me how to view data from database into listview.. example in my database i have a user table, it has firstname, lastname, emailaddress and contactnumber, i want to view all user records into my listview. what is the query code for that.. can u please …

Member Avatar for LeunamP
0
102
Member Avatar for dfn77

Hi, I am using Kendo Web UI and am trying to filter a listView using multiple rangeSliders. I've seen a few examples of filtering, but never with a listview using range sliders. Pretty much all of the examples I've seen involve filtering a grid with a dropdown. I am curious …

Member Avatar for LastMitch
0
482
Member Avatar for ImZick

Hi how can i pass if my connection is false? i have a code here Dim con As New OleDbConnection Dim dt As New DataTable Dim ds As New DataSet con.ConnectionString = ("provider=Microsoft.Jet.OLEDB.4.0; Data Source='" & ConMonthEndLocation & "';Extended Properties=Excel 8.0;") con.Open() dt.Clear() ds.Tables.Add(dt) With Form_Month_End_Report .ListView_LOB.Columns.Clear() .ListView_LOB.Items.Clear() Dim da …

Member Avatar for xerohomicide
0
124
Member Avatar for Unused Mass

I would like to save and load a listview and all of its contents. But, also, I want to make a combobox with all of the configurations of the listview. So you could add another one via a settings menu, or load one using the combobox. Many thanks in advance.

Member Avatar for tinstaafl
0
268
Member Avatar for ImZick

Hello need help i have a listview and a textbox I have this code ListView_LOB.Focus() For i = 0 To ListView_LOB.Items.Count - 1 If ListView_LOB.Items(i).SubItems(1).Text = TextBox1.Text Then ListView_LOB.Items(i).Selected = True End If Next it will highlight the item in Listview it seen in textbox1 for example "Erick" but if …

Member Avatar for Reverend Jim
0
221
Member Avatar for kevinkev

I have the following php code that queries my Database called get_cost.php.The query is working as it displays all content of my TABLE si, kindly assist! <?php /* * Following code will list all the products */ // array for JSON response $response = array(); // include db connect class …

0
61
Member Avatar for vonnoy

need help here guys! i want to open record from form1 and form1 composed of two listview namely listview1 and listview2 if i choose listview1 or listview2, form2 will appear and data will display in labels then if listview1 was selected then save it on table 1st_sem and listview2 on …

Member Avatar for AndreRet
0
103
Member Avatar for khair.ullah

hi all. I want to fill the Listview from a mssql database in vb.net but it not show all the data in Listview. I have the followning code. Dim sSQL As String Dim lvwItem As New ListViewItem() sSQL = "SELECT field1, field2, field3 FROM tablenam e " sSQL = sSQL …

Member Avatar for evadehawkeye07
0
6K
Member Avatar for vonnoy

i have search box,listview and 3 labelcaption namely: fname,lname and total. my database name is students and table name attendance. if i search particular student and display in listview, once i click the name on the listview automatically display on the labels, and display total number of records of that …

Member Avatar for AndreRet
0
2K
Member Avatar for dschuett

I am looking for a way to impliment an onScroll listener into my listview. I have read a lot about using: notifyDataSetChanged(); But, I honestly can't figure out how to impliment it into my working code. Currently, I pull a bunch of records into the listview from a MySQL database …

0
100
Member Avatar for kaizen202

I have my own ListView class, inheriting from Forms.ListView. When double clicking on the column divider, the columns resize to show the column items in full size. However, for me this doesnt work properly - some words are partially hidden because I am using large font size to draw items. …

Member Avatar for ChrisHunter
0
854
Member Avatar for kenomote

Hey guys im trying to display diffirent tables on 1 datagridview (ofcourse its one at a time only) so far it works everytime i change the datatable using listview for selecting now the problem is how do i insert data on it but only using a single form....each table have …

Member Avatar for Reverend Jim
0
497
Member Avatar for pride123

I have this code: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim connection As New SqlClient.SqlConnection Dim command As New SqlClient.SqlCommand Dim adaptor As New SqlClient.SqlDataAdapter Dim dataset As New DataSet connection.ConnectionString = ("Data Source=.\SQLEXPRESS;AttachDbFilename=c:\users\korisnik\documents\visual studio 2010\Projects\WindowsApplication46\WindowsApplication46\Database2.mdf;Integrated Security=True;User Instance=True") command.CommandText = "SELECT * FROM [User] …

Member Avatar for pride123
0
148
Member Avatar for akasekaihime

I am trying to save items from listview to database,but whenever I try to run my code, the message "Object reference not set to an instant of an object".Here is my code.............. Private Sub Button9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click strsql = "Update tbl_tec_temp set tem_we_position …

Member Avatar for Reverend Jim
0
191
Member Avatar for barriegrant1

I need to use a <hr> tag under the date based on a condition. however its within a listview template and am haiving issues either finding it or trying to dynamically add it. below is the code that loads the first article and stores its date in a temp location, …

Member Avatar for JorgeM
0
168
Member Avatar for ImZick

Hello its me again... sorry to keep on posting about my problem well here it goes.. If you see in the attached file. ![Sum](/attachments/large/4/Sum.jpg "Sum") I have an AM Ervielette, Marriane etc. now i need to add their Total Calls for Ervie and Total Visits same goes to the other.. …

Member Avatar for ImZick
0
283
Member Avatar for haroonrulz

Dear Experts, I am developing an automation tool(C++) for which I need to write program to Click,Doubleclick on the Listview item. As you know selecting/clicking an item in Listbox is very easy, I want to know about listview. (Win32/C++).Kindly help.

Member Avatar for tinstaafl
0
55
Member Avatar for TIP.Synergy

Hi to Everyone, I want to get the total (column) amount using Listview w/o database VB.NET Help me please... Thanks.. _______________________________________________________________________________________________________ lstitems Item Name | Unit Price | Quantity | Amount ------------------------------------------------------------ Sample1 | 100.00 | 1 | 100.00 Sample2 | 100.00 | 1 | 200.00 Sample3| 100.00 | 1 …

Member Avatar for N.E.Y.O-01
0
6K
Member Avatar for kaizen202

I am using LIstView control in virtual mode with the property listView.VirtualMode=True and I have subscribed the event listView1_RetrieveVirtualItem(). But this event is being called many times for each item. What is the reason or How can I prevent RetrieveVirtualItem() from executing many times? Please check the below code. public …

Member Avatar for lolafuertes
0
1K
Member Avatar for jay nadeem

hi, i want to take print of values listview and and textbox , the code should adjust the size of of page before printing. plz help me friends.......

Member Avatar for tinstaafl
0
38
Member Avatar for Dili1234

I want to delete an item from list view and at the same I want delete the item from the Releavant table when I click the okay button in the ** search form** i want to delete the item from listview and as well as to update it to Sell …

Member Avatar for Dili1234
0
2K
Member Avatar for ImZick

Hello Guys.. Need help again with this code :( Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Name As String Dim Visits, Calls As Integer Dim Sales As Long Visits = 0 Calls = 0 Sales = 0 'I want to store all the lvAccountManager …

Member Avatar for tinstaafl
0
160
Member Avatar for ImZick

Hi guys I'm here again asking for help Can someone can gave me an idea about how to find all data in my first listview to another? ![Two_Listview](/attachments/large/4/Two_Listview.jpg "Two_Listview") Here is the picture. You see their are a column name AM in my first Listview and in the second their …

Member Avatar for ImZick
0
292
Member Avatar for ImZick

i have a listview in a form that contains a name like "Aileen-EB" , "FEMA-EB" , "CARMEN-EB7" , "TONETTE-A" something like that I need to get them and put it on a Dim AccountName as String I use if statement but i want my code to be like this For …

Member Avatar for ImZick
0
200
Member Avatar for ranam

Please check the website given below http://www.purdue.edu/discoverypark/energy/ i want to know if i can get any resources for the listview beside the slider given in above link. Thanks and regards, Ranam

Member Avatar for ranam
0
125
Member Avatar for maskinao

Hi! I want to be able to automatically select the first row in a listview then display the selected items in a text box. I've already done putting the data in the textbox by clicking the row, but i cannot do it automatically. any ideas? i would like to provide …

Member Avatar for Ancient Dragon
0
111
Member Avatar for missc

i'm trying to make an if statment in asp.net. the if statement is done in the listView . but its not working ! all the if statement is been viewed upon runtime <ItemTemplate> <div class="productItem"> <div> <img src='<%# Eval("ProductImagePath") %>' alt="<%#Eval("ProductName") %>" height="120" width="120" /> </a> </div> <div> <br /> …

Member Avatar for AleMonteiro
0
686
Member Avatar for ravenous

OK, so I'm mainly a C++ developer but I've been looking into making apps for Android. I haven't used Java before, or done much UI development, so it's a lot to take in at the moment. **There is a question at the end of this, skip to it if you …

Member Avatar for ravenous
0
153
Member Avatar for yorro

My [B]first column does not align to center[/B], although the sub-columns aligns perfectly [CODE=vb] Listview1.Columns.Add("Column1", 100, HorizontalAlignment.Center) Listview1.Columns.Add("Column2", 100, HorizontalAlignment.Center) Listview1.Columns.Add("Column3", 100, HorizontalAlignment.Center) [/CODE]

Member Avatar for ImZick
0
1K
Member Avatar for ponnu

L1.ListItems.Clear Dim li1 As ListItem Set li1 = LV1.ListItems.Add() While Not (rs.EOF) li1.Text = rs(0) rs.MoveNext Wend rs.Close

Member Avatar for ImZick
0
170
Member Avatar for ImZick

Help i need to import excel to my listview using adodb or oledb but i dont know how? in vb6 i use adodb and the code is like here Dim lngI as Long Dim lvItem as listItem *'adodb connection goes here...* *'then this code will import all excel data in …

Member Avatar for ImZick
0
2K
Member Avatar for hhm_pro992

OpenConn() For Each li As Windows.Forms.ListViewItem In ListView1.Items With OleDa .UpdateCommand = New OleDb.OleDbCommand() .UpdateCommand.CommandText = "UPDATE [Inventry] SET [CODE] = @CODE , [ITEM] = @ITEM , [QTY] = val(QTY) - @QTY , [SPRICE] = @SPRICE , [PPRICE] = @PPRICE WHERE (CODE = ?)" .UpdateCommand.Connection = Con .UpdateCommand.Parameters.Add("@CODE", OleDb.OleDbType.VarWChar, 50, …

Member Avatar for Begginnerdev
0
586
Member Avatar for Zcast

Hi All, Trying to add items from listview to datagridview, but keep coming up with this error: "Specified argument was out of the range of valid values. Parameter name: rowIndex" I can add one row with no errors, but when I try to add two or more at the same …

Member Avatar for TnTinMN
0
310
Member Avatar for LD Company

Hello programmers! I made new software, LD File Browser. This software contains ListView but this ListView has error. Software works fine when I run it on F5 (debug), but when I run .exe icon I got error when I select different item in ListView. Here is the code: TextBox1.Text = …

Member Avatar for john.knapp
0
231
Member Avatar for LD Company

Hello programmers! I am making File Browser software and I want to display icons of my files in listview. Here is the code: ImageList1.Images.Clear() Dim di As New IO.DirectoryInfo(LocationA.Text) Dim aryFi As IO.FileInfo() = di.GetFiles("*") Dim fi As IO.FileInfo For Each fi In aryFi For Each files In System.IO.Directory.GetFiles(LocationA.Text) Dim …

Member Avatar for john.knapp
0
4K
Member Avatar for serkan sendur

hi guys, it took me some time to find out how to export listview to excel, so i wanted to share it with you. i would like to post this thread as code snippet but in that section there is no attachment button that i can attach project to. i …

Member Avatar for erickaurazo
0
7K
Member Avatar for jaasaria

hi guyzz i wanted to remove item in the lisview using the for each i want to delete multiple item with similar field in the listview. any help.. for this problem.. it could be possible ? i have here code but it delete only selected item in the listview. (ListView1.ListItems.Remove …

Member Avatar for bluemarine90
0
3K
Member Avatar for lymwale.pablo

Hello guys im in need of a help. I have a checkbox on a Listview1 and i also have listview2, textbox and 2 buttons. On listview1, i have a list of items and its subitems. Then im going to put a check on the one of the listview item then …

Member Avatar for tinstaafl
0
687
Member Avatar for pritesh2010

how to add multiple image in listview columns like ListViewItem.ListViewSubItem[] subItems; ListViewItem item = null; item = new ListViewItem(imageList1.Images[0].ToString(), _GroupName); subItems = new ListViewItem.ListViewSubItem[] { new ListViewItem.ListViewSubItem(item,imageList1.Images[1].ToString()), new ListViewItem.ListViewSubItem(item,imageList1.Images[2].ToString()), new ListViewItem.ListViewSubItem(item,_Row["Description"].ToString()), new ListViewItem.ListViewSubItem(item,imageList1.Images[3].ToString())}; item.SubItems.AddRange(subItems); ListView.Items.Add(item); how add to do that. dynamically.

Member Avatar for pritesh2010
0
272
Member Avatar for hhm_pro992

OpenConn() Dim li As Integer Dim qqttyy As Integer = Val(ListView1.Items(li.Index).SubItems(3).Text) Dim codee As String = ListView1.Items(li.Index).SubItems(1).Text OleDa.UpdateCommand.CommandText = "UPDATE Inventry SET QTY = QTY -'" & qqttyy & "'WHERE CODE ='" & codee & "'" OleDa.UpdateCommand.ExecuteNonQuery() CloseConn()

Member Avatar for G_Waddell
0
161

The End.