1,201 Topics

Member Avatar for
Member Avatar for dschuett

The code below currently pulls data from a mysql database and displays it in a ListView. What I am looking to do is find a way to have the application check the mysql database every minute or so to check for any new entries, and if it finds a new …

Member Avatar for peter_budo
0
188
Member Avatar for sonia sardana

I have added three images to ImageList..I want to show tooltip....On listview item... [code] Public Class Form2 Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ListView1.View = View.LargeIcon ListView1.LargeImageList = ImageList1 For lcount As Integer = 1 To 3 ListView1.Items.Add(lcount.ToString, lcount - 1) Next End Sub …

Member Avatar for scstetro
0
2K
Member Avatar for abc_123abc

hi all.. i have the option to save the contents of the listview that was saved into text file. now i would like to load the text file into datagridview in vb.net but i have no idea how to do it as this is my first time in doing it …

Member Avatar for Begginnerdev
0
3K
Member Avatar for NeiXude

Hi,I am new to mobile and i am still studying the components,layouts,etc..first i want to know how can i put radiogroup in listview, i made another xml file "Radiolayout.xml" but i could not display this in listview. More inputs will be much more appreciated. This is my java file "Sample01.java" …

Member Avatar for NeiXude
0
115
Member Avatar for tendaishava

hello guys my code is not giving me any errors but wont execute the task it just loops can, anyone help me debug it. its a code for extracting book information from a chinese website. thanks in advance. using System; using System.Collections.Generic; using System.Collections.Concurrent; using System.Text; using System.Text.RegularExpressions; using System.IO; …

Member Avatar for skatamatic
0
337
Member Avatar for razamughal67

Hello everyone we use a listview box and we add some path's of the files in list and now we want to show the file icon with in file path example: listview1.item.add " D:\test.txt" listview1.item.add " D:\picture.jpg" now we want to show these files icon in my listview please tell …

Member Avatar for Jx_Man
0
2K
Member Avatar for deceivingrakesh

Guys i have a listview connected to a data source , and there theres is another listview and a button embedded in this parent listview , lets say that the datasource gets the ID of something from the data base , but ID is not displayed in the parent listview …

0
61
Member Avatar for newbie26

[QUOTE=mb01a;1655781]Let me think about that .. How about - [code] dim sql as string sql = "select tablename.* from tablename limit 5" ' other things you'll need are defined elsewhere in your program [/code] Now, you'll need to add the code that connects to mysql, then open the recordset and …

Member Avatar for newbie26
0
355
Member Avatar for paoi00

i used this codes to show the records but this doesnt works .. but when use the query ("Select * from Schedulings") it works .. it shows the all records. but i want to show the records that satisfy this query.. ("Select * from Schedulings where YearLevels = '" & …

Member Avatar for Begginnerdev
0
112
Member Avatar for ponkan20

hi!! im a new to vb.net and im having a problem, pls help me ok here it is... i created a listview, and i have a button5 "view records" if i click the button, all the records should be shown to the listview but yeah i doesn't work here are …

Member Avatar for Mitja Bonca
0
2K
Member Avatar for paoi00

hello :) i am working with Search module of a student.. there's a link on the form that when clicked the schedule of the student must be shown on Listview in ScheduleStud Form.... actually i used the showmyrecords() on the other forms but when i used it in this module.. …

0
60
Member Avatar for choosechrist

i open a child form from within a parent form Private Sub TextBox1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress Dim custmast As New CustomerMaster custmast.MdiParent = Me.MdiParent custmast.Show() End Sub now the form customer master has values within a listview. when i doubleclick on a value within …

Member Avatar for LearnVBnet
0
221
Member Avatar for paoi00

i saw this [article ](http://www.daniweb.com/software-development/vbnet/threads/399212/printing-from-list-view) that shows printing of listview using printdocument.. it helps me but then i want to place my list view on the middle of the page.. i want to know how to place it.. can you please help me? thank youu. !

Member Avatar for paoi00
0
90
Member Avatar for TriaL11

Hi Im having a problem in my search.. I have a listbox named listbox1 then a button beside a textbox for searching records inserted inside the listbox.. but when I dont type anything, the listview items gone.., what is the best way to solve this? :) Thanks

Member Avatar for poojavb
0
245
Member Avatar for jhedonghae

hi how do i set a listview to only add one item from a combobox? example: when the combobox contains the items dog,cat,pig and when the user chooses pig it is added to the listview but when the user selects the pig again it must prompt that already added... i …

Member Avatar for jhedonghae
0
119
Member Avatar for kampao00

hi :D please help me with this problem. i'm a newbie in vb.net i have 6 columns in my listview that should show the data from the database.. but when i coded it like this : Public Sub showmyrecords() Dim dt As New DataTable Dim ds As New DataSet ds.Tables.Add(dt) …

Member Avatar for Oxiegen
0
163
Member Avatar for jhedonghae

![maintenance](/attachments/small/3/maintenance.png "align-left") i have here below codes of my maintenance module..my problem is that when i click the edit button and search for student number it makes error in saving but when i use the listview to edit it saves successfully...please help me i'll be attaching a sample screenshot here's …

0
77
Member Avatar for kampao00

i have codes for adding data to listview from database but there's a problem .. Public Sub showmyrecords() Dim lvi As ListViewItem Dim dt As New DataTable Dim ds As New DataSet ' Dim intCount As Integer ds.Tables.Add(dt) Dim da As New OleDbDataAdapter("Select * from Schedulings where YearLevels = '" …

Member Avatar for kampao00
0
147
Member Avatar for newbie26

hey..how can i add combo box in listview? it will be depending on the records that will be displayed when i ran a query from mysql. any sample codes??thanks in advance.

0
60
Member Avatar for MH Moni

'''''*****ListView(VB 6) Selected or checked Data Entry & Display Solutions full code*****'''' Option Explicit Public CN As ADODB.Connection ''General Declaration in Modules part'' Public RS As ADODB.Recordset ''General Declaration in Modules part'' Public Sub DBConn() ''Sub Procedure for Database in Modules part''' Set CN = New ADODB.Connection With CN If …

Member Avatar for Dani
0
1K
Member Avatar for networkmancer

How can I get items in listview? I know how to get the current item if selected but Im trying to put it in a loop where i need to get my three row items there. I have 3 columns and I want to get there items and insert it …

Member Avatar for Reverend Jim
0
157
Member Avatar for William77

Hello, I'm a real beginner and try to learn Visual Basic. I have to code a marking assistant as illustrated in the attached picture. I chose to use a listView to display the information typed by the user. I succeeded to display the information in three first columns, but I …

Member Avatar for ChrisPadgham
0
146
Member Avatar for firoz.raj

Can anyone tell me how should i delete listview checked data using delete button. right now i got error object variable or with block variable not set. [code] Private Sub Command3_Click() Dim rs As ADODB.Recordset Set rs = New ADODB.Recordset Dim x As Integer For x = ListView1.ListItems.Count To 1 …

Member Avatar for MH Moni
0
259
Member Avatar for cr7489

hi i am trying to create 2 lists in one screen. i am using the google api places where i want the list to appear then when selected the result will appear, this what i have so far but the second list doesnt appear and i am not sure why …

0
98
Member Avatar for choosechrist

i am using a listview on my admin form to see those who are logged in. so i have a table which captures users logging in and logging out. this table data is reflected onto this listview. but i want the listview to refresh itself as soon as the user …

Member Avatar for M.Waqas Aslam
0
288
Member Avatar for emreozpalamutcu

Here is list of things I want to do: Display context menu strip only when mouse is over the item and right clicked on it, the code I have for that is this: [code]private void contextMenuStrip1_Opening(object sender, CancelEventArgs e) { if (listView1.SelectedItems.Count == 0) e.Cancel = true; } private void …

0
113
Member Avatar for awanz

hello buddy, I have a problem about listview update data the first I input data from textbox to listview, after listview have many data/row, I want to update data only one click button use query WHERE ID the problem : I just can save first row only, not all or …

Member Avatar for Begginnerdev
0
226
Member Avatar for aianne

Hello everyone! :) I'm sorry I'm new to this stuff. So I'm trying to create a simple system information and I am attempting to populate a listview control and I get a Run-time error '380': Invalid property value. I hope you can help me and I hope it made sense. …

Member Avatar for aianne
0
2K
Member Avatar for gozo12

hi how can i make list view like this ? [URL="http://myup.ir/images/64139266311095345064.jpg"]http://myup.ir/images/64139266311095345064.jpg[/URL] [CODE] ListView1.Items(1).BackColor = Color.LightGray[/CODE]

Member Avatar for MeSam0804
0
125
Member Avatar for f.sh

actually, i'm developing dynamic template using asp.net and c#. in my usercontrol page i have a listview which is include dynamically created table. once the user edited any of the rows and press the save button before the PageLoad or PageInit i want to execute the ItemUpdating function to save …

0
122
Member Avatar for dwarvenassassin

I've got a ListView which is normally hidden and Enabled=false; I'm using the ItemChecked event Enable/Disable a button on the form (the button is disabled if nothing is checked) If I add the ItemChecked event handler via the Designer in the usual way, it puts the code in the usual …

Member Avatar for Mitja Bonca
0
135
Member Avatar for rapirap

Hi! Please help me with my search functionality...searching using textbox and retrieving the data into a listview. here is my code: [CODE]openrstJCcaseInfo "select * from JCcaseInfo" If Not rstJCcaseInfo.EOF Then caseinfo.ListItems.Clear Dim m With rstJCcaseInfo While .EOF = False If LCase(txtsearch.Text) = LCase(rstJCcaseInfo.Fields("CaseTitle").Value) Then Set ls = caseinfo.ListItems.Add(, , rstJCcaseInfo.Fields("CaseStatus").Value) …

Member Avatar for Jx_Man
0
287
Member Avatar for sah

I have developed an application that loaded many images in a listview using ImageList in c# .net framework 4. The images are also compressed. When many many images are loaded and compressed then it takes a long time. So I call the method in backgroundworker. In the backgroundworker I had …

Member Avatar for lolafuertes
0
465
Member Avatar for BlackStar0703

Basically my app obtains data from a mysql server and displays it in a list view. What I want is for data from different columns (but the same row) to be as different items in a Dialog Box. I followed a tutorial on how to connect to a mysql server …

0
148
Member Avatar for tontano

Hello Team Members; I am new to programming, and have 2 issues that I cannot figure out. Sorry, for not providing the code, as I didn't know where to take it from. here is my situation. I have 2 projects in a solution (Csharp & vbNet), now because Charp is …

Member Avatar for Begginnerdev
0
153
Member Avatar for teofaniza

How to connect the radio button to a listview in an examination system, whereas if you click a radio button of your choice as the answer of respective question and numbering..the answer will be shown to the listview control that serves as my answer sheet?

Member Avatar for ChrisPadgham
0
31
Member Avatar for teofaniza

How to connect the option/radio button to listview control using ADODB connection? That is,right after when you click a radio button as the letter of your choice..then it will automatically shown to the the listview control as the answer sheet..for the respective question..and numbering..? Using the VB 6.0.. Example: 1. …

Member Avatar for ChrisPadgham
0
308
Member Avatar for Rakham

In old vb6.0 it was easy to highlight the target item, where to drop those dragged rows. [CODE]Private Sub listView_OLEDragOver(Data As MSComctlLib.DataObject, Effect As Long, Button As Integer, Shift As Integer, x As Single, y As Single, State As Integer) Set listView.DropHighlight = listView.HitTest(x, y)[/CODE] I have been Googling all …

Member Avatar for Rakham
1
1K
Member Avatar for renzlo

Hi All, I can't figure this out, I have a listview and I want to export it and finally found how to do it but I'm stuck here.. Here's the code. [CODE] Dim Row0 As WorksheetRow = sheet.Table.Rows.Add Row0.AutoFitHeight = False Row0.Cells.Add("PROJECT_NAME", DataType.[String], "s67") Row0.Cells.Add("USER_NUMBER", DataType.[String], "s68") Row0.Cells.Add("JOBNAME", DataType.[String], "s68") …

Member Avatar for renzlo
0
286
Member Avatar for f.sh

actually i'm developing web template using asp.net and c#. i have mainTemp.aspx page which is include usercontrol page. in my usercontrol i have a listview which in this listview i have to create dynamic table inside the ItemTemplate based on a XML file. my listview code including the ItemTemplate is: …

0
139
Member Avatar for marcmanlin2

Hello Guys! I am using listview. i want to search using textbox records from the database and display the searched records in listview. i read some post here with same/like mine but they're using datagrid. :|

Member Avatar for marcmanlin2
0
223
Member Avatar for timothy0726

myqry = "UPDATE tblReceive SET " myqry = myqry + " ProductName = '" & txtProd.Text & "'," myqry = myqry + "' Quantity= " & txtQuan.Text & "'," myqry = myqry + " Quantity Unit= '" & ComboBox3.SelectedItem & "'," myqry = myqry + " Category = '" & …

Member Avatar for kingsonprisonic
0
300
Member Avatar for rapirap

Hi! please help me on how to use crviewer in printing data that is in the listview, which is came from the database... help please! rafhael

0
50
Member Avatar for jairuz21

Hi, Can anyone help me in showing multiple items from listview to my crystal report. Or something like after searching some items, the results are the one to be displayed in crystal report. I don't have any codes yet. I'm using OLE DB Connection. Any help would be appreciated. Thank …

Member Avatar for jairuz21
0
968
Member Avatar for madao

So i am currently working on a project about enrollment system and I am having a problem with transferring items from one listview to another. I've been stuck on this problem for a while now. And I'm wonder if you guys and help me out. Here's a photo: [ATTACH]23978[/ATTACH] I …

Member Avatar for madao
0
200
Member Avatar for bry090911

[CODE]Private Sub cmdOut_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdOut.Click If txtempno.Text = String.Empty Then MsgBox("Insert first your employee number.", vbExclamation) lblIN.Text = "" lblOUT.Text = "" Exit Sub End If Dim ssql As String ssql = "UPDATE tbl_timerec SET TimeOUT=@lblOUT WHERE EmpNo=@txtempno" Dim com As New SqlCeCommand …

Member Avatar for bry090911
0
179
Member Avatar for dwarvenassassin

OK, I am relatively new to C#, so in order to give myself a 'learning' project, I thought I'd update an application I wrote a couple of years ago. The application uses a ListView control in "Details" mode to display MP3 tag data stored in an Access MDB database file. …

Member Avatar for Momerath
0
195
Member Avatar for LearnVBnet

Help me to format currency col(2) = 1.234.567 I have search any where can'not find answer [CODE] With Lv1 .Clear() .View = View.Details .FullRowSelect = True .GridLines = True .Columns.Add("Product Name", 250) .Columns.Add("Stock", 90, HorizontalAlignment.Right) .Columns.Add("Price", 90, HorizontalAlignment.Right) '.SubItems(2) = Format(Value, "#,##0.00") FillListView(Lv1, GetData(sSql)) End With[/CODE] tx

Member Avatar for LearnVBnet
0
1K
Member Avatar for Rakham

I'm using ListView control, with SmallIcons style in VB.NET. Icons are loaded fine, but when I start to scroll ListView down or up from scrollbar (clicking from arrows), rowheight drops to about half from normal in next 20-30 rows below/above upper/bottom row (depends from the scrolling position). After 1-2 seconds, …

Member Avatar for Rakham
0
1K
Member Avatar for suneye

hello, i am using the item selection changed property inorder to control the items in listview,when the user selects first any item every thing goes well but when he changes selection it gives this exception : System.ArgumentOutOfRangeException was unhandled Message=InvalidArgument=Value of '0' is not valid for 'index'. Parameter name: index …

Member Avatar for suneye
0
246

The End.