1,201 Topics
![]() | |
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 … | |
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 … | |
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 … | |
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" … | |
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; … | |
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 … | |
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 … | |
[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 … | |
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 = '" & … | |
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 … | |
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.. … | |
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 … | |
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. ! | |
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 | |
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 … | |
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) … | |
 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 … | |
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 = '" … | |
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. | |
'''''*****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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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] | |
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 … | |
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 … | |
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) … | |
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 … | |
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 … | |
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 … | |
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? | |
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. … | |
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 … | |
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") … | |
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: … | |
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. :| | |
myqry = "UPDATE tblReceive SET " myqry = myqry + " ProductName = '" & txtProd.Text & "'," myqry = myqry + "' Quantity= " & txtQuan.Text & "'," myqry = myqry + " Quantity Unit= '" & ComboBox3.SelectedItem & "'," myqry = myqry + " Category = '" & … | |
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 | |
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 … | |
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 … | |
[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 … | |
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. … | |
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 | |
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, … | |
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 … |
The End.