I state that I am Italian and I am using a translator.
I have a problem that I can not fix.
I have a listview with a group. The property view is SmallIcon
On my windows xp everything works perfectly, but I tried the same thing on Windows 7, and I have this problem: When I add a bit of items in the listview I have some strange display problems, no errors.I made some screenshots to let you know
I want to know if it is possible to nest groups within a listview. I started with a listview in my application that contains list types and this worked fine. I have now been asked to group by Product, then Week Commencing and finally by List Type; This would envolve a 3 group nest and i just cant figure out how to do it (if at all possible).
like so...
Rods 1st Jan 2009 Shakespeare listview items 1
[CODE]...
If what I am trying to accomplish is beyond the listview control, can anyone suggest a possible avenue to explore?
Any snippet of code for adding groups at run-time to a listview. I am currently listing books (and stats) without groups via the following code which is executed in a loop (one pass per book title).
The listview is set to details view. What I want to do is group the book titles by series. For example, books by Michael Connelly may be grouped by "Harry Bosch", "Jack McEvoy", "Mickey Haller", etc. I can create a new group for each new series by groupnum += 1 group = New ListViewGroup("group" & groupnum, _ System.Windows.Forms.HorizontalAlignment.Left) group.Name = "group" & groupnum group.Header = series But I cannot find how to add the group to the listview and add the new item to the associated group.
on button.click event,Dim category As New ListViewGroup(cbType.Text) If Listview.Groups.Contains(category) Then Arggh! this should work. Listview.Items.Add(lvi).Group = category
Else Listview.Groups.Add(category) Listview.Items.Add(lvi).Group = category End If
If cbType.Text was "Dog", it will add another "dog" group header every time I add an item having selected dog, when I want to add the item to the existing dog group.
I constructed a form with a listview and programatically added items and groups to it. It worked perfectly. I have now made it an MDI child form and the grouping disappears. I even removed my code and simply added groups and items through the form designer. The items display fine but not the groups.
Update: (Please vote to close) This question is unresolved, and is likely a list view bug.It can be replicated by using the example code from the MSDN link below, and adding this code after the list view initialization code:
i want to make the listview control collapsible to the groups alone. Like in Vista's My Computer, where only the group names are shown and then we click on the group to expand it
I am currently using VB 2008 and there is a form I'm using which contains a listview control. I am dynamically filling the listview with groups and items. After I fill it up, it is supposed to look like this:
[CODE]...
Each item is specific for each group. The problem I have is that when I maximize the form to full size, and everything expands, the items change positions into something like this:
[CODE]...
How can I make the listview keep the items in the "row" view always, instead of the "column" view whether I maximize or not?
I have a question regarding radio buttons. I am creating a little prog that has three separate radio button groups. After selecting one button in each group, I would like a text box to display a value. The text box value will be a number between 50 and 350 or so.
I am unable to print the barcode value.where ever Ia m able to display the Little value.The main two functions are below.
vb.net Private Sub rfLoadtoList(ByVal iBarcode As String, ByVal iTitle As String, ByVal ImgIndex As Integer, ByVal bgColor As Color, ByVal frColor As Color, ByVal cFlag As Boolean) Dim Srnumber As Integer
I have some problem with Listview on WinForm.I'am trying to make an ListView Subitem like a hyperlink, so i using this code: [code]but the fore color doesn't change to Blue and the Error list say Property Underline is ReadOnly.And how can i detect the event when clicked on a listview subitem ?
I have a couple of images in a imagelist1. I'd like to display images in listview1 control. Once the image is selected it should display in a picturebox1. I should be able to navigate through (next/previous) pictures and I should also be able to delete pictures.
ImageList1.Images.Add(Image.FromFile(OpenFileDialog1.FileName)) not adding files!
My listview is pulling data from a database and has 2 columns... "Project Name" and "Project ID"I want to be able to double click on an item in the list and have the Project Name appear in textbox1 and Project ID to appear in textbox2... with the code I have I get something strange in the textboxes... "ColumnHeader: Text: ColumnHeader"
my code is: Private Sub ListView1_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListView1.DoubleClick
I am supposed to design and develop a program to compute the first X integer numbers of the sequence, where the X value is entered in a numeric updown Control only using values 3-150. It is supposed to display the results in a listview control that has one column. I believe that I have the code correct but I am not sure how I am supposed to add items to the column in the ListView box. I have reviewed my text and there is information on creating the listview box and adding columns but it does not show an example on adding data to the column in the listview box. I can compile it with no errors but I can't debug it.
Private Sub btnSubmit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSubmit.Click Dim fib1 As Double = 0 Dim fib2 As Double = 1 Dim counter As Double Dim result As Double result = fib1 + fib2 [Code] .....
I want to display files or folder in a ListView. Now the code is working well. The only thing is all files are display in the first row. I want the files are shown up line by line. It means the first file name is on the first row. The second file name is on the second row etc.
Private Sub BrowseButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BrowseButton.Click If FolderBrowserDialog1.ShowDialog() = Windows.Forms.DialogResult.OK Then
Account Payable Address Customer Account Receivable Address Area
If I will select Parent nodes then how I can display in ListView of particular child nodes? Also when I click on root node then how I can display only all parent nodes in ListView?
I have a form which contains two Time and Date Picker as StartDate and EndDate. I wish to search record from MS Access database within the date range (StartDate and EndDate) and then display the result in ListView.
I have learned from (jmcilhinney) that I have made a mistake somewhere, but I am newbie in VB, so please rectify the error and re-post the corrected code for me indicating the line where I have made mistake.
I'm trying to use listview control in vb.net or vb2008 express edition to display records from my database after it is being queried.I have two column headers in my listview control which are named Account# and Authorized Users. I was able to display the records from the database into the listview control but i don't know how to arrange it in a proper column where it should be displayed cause what happen is all records are being combined in one column which other records should be aligned to the other column.What I want is to display the account numbers in aligned with the Account# column header and the names should be aligned in Authorized Users column header. Here's the codes I used:
I wonder how we keep records alive in listview..i m entering data into listview from textboxes...but when i stop and again run the program i get new listview...the record i added from textboxes are not there..i want to display the records everytime i run the program.[code]...
I have a listview setup to act as my main GUI. Kind of like a copy of windows explorer. I'm trying to get it to open individual forms on the double click of each individual icon.
Here is what I have so far to display the text of each item in the listview. I'm not sure how to get it to do what I need though.
Private Sub MainListView_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles MainListView.DoubleClick Dim objDrawingPoint As Drawing.Point