Custom styled ListBox with several strings - vb.net

I'm working on a VB project and I need some help with ListBox.
I need to create a ListBox which is populated by some data from a database. An alternative is of course DataGridView, but that's not what I want. I want to style my ListBox to output several strings from my database:
A title header
An icon
And some other sub-headings
This picture kind of demonstrates how I want it to look:
I have looked a bit into WPF, but I'm not sure how it's used with VB. This is a project for a VB-class I'm taking, so it's kind of mandatory that it is VB.

Related

VB.NET - How to Create Information Box

I'm creating a form that will display a long list of properties and their associated value. I'd like to display them in a sort of table-like control. Something with heading values at the top and a list of organized data underneath it. Something like these:
I realize those 2 examples aren't exactly the same but I'm flexible on what I produce as long as it gives a similar effect. My question is, how do I create a list like that? Is there a control in the Visual Studio toolbox that will produce this effect?
I'm sure there's something similar that easy to find but I can't figure out what to call that control so my searches haven't turned up anything useful.
Any help would be greatly appreciated. Thanks!
A combination of ListView and TabControl controls could be used to emulate what you're showing above. See the links for ListView and TabControl to help you get started.
Yes, there are windows form controls that provides this functionality.
For the tabbed windows use the TabControl:
For the different lists use a ListView control in the mode Details - which means a list with columns:
For the second feature, the ListView control has the Group features:
In order to group items togheter set the group for the chosen item(s):
All of this can be of course done programatically. There are good tutorials on MSDN and Channel9.

Combobox with checkbox items in vb.net

I need to create combobox containing items with checkbox. This is winform VB.NET application.
I found some options but, those are in c# and also, in separate library.
I need some simple way like some single class which allow me to create item with checkbox and iterate checked items.
can any one suggest me way ?
Thank You

What is this VB.Net script and how do I add coloring to its cells?

I am given a task where I have this VB.Net script that produces and populates a grid and I must add coloring to each grid cell.
Problem is that this freeware given to me is 5 years old and I don't know what the name of this freeware is; I was only given the source files.
I am not entirely sure of how this script works because I am a C# person so I was hoping someone on here might know the freeware's name or what its functionality is so they can explain it to me.
There seem to be 4 files in the freeware folder and below is their screenshot:
I am currently sitting and trying to understand the code for PrintDGV.vb which might or might not be useful in understanding the freeware.
I am not familiar with any of these files but here is the code for PrintDGV.vb
Looks fairly straight forward.
You pass your DataGridView control to it and it looks like it will handle the printing for you:
Call PrintDGV.Print_DataGridView(YourDataGridViewControl)
It's a shared function so you don't need to instantiate it. For coloring your cells, just set the backcolor of your grid cells and it looks like it will use that in the printing process.
To change a color of an individual cell in the DataGridView control:
YourDataGridViewControl.CurrentCell.Style.BackColor = Color.Red

visualize 2-dimensional array visual basic

I started making a very simple application where a list of names is shown in a checked-listbox.
Now I would like to add a date as a second column value. This means i have two use a two-dimensional array.
What containers could be suitable to visualize a 2 dim-array on a form?
I was thinking as an alternative I could keep it one dimensional and use a delimiter. Would there then be a method to format this date on the extreme right side of a listbox? I guess I would have to extract the date part, but I don't see how i could position it in a listbox.
I am working with VS2010 and using a windows forms project. I have no experience in VB (but some in c++), and no experience with GUI's at all.
Thanks in advance
Either the ListView in details/report mode or the DataGrid would be good. Personally I prefer the ListView when possible.

VB.NET - Duplicate existing form in FOR loop

Hey, I'm building a code editor app in VB.NET (Framework 4.0) and it opens all ".por" files into individual forms consisting of a MenuBar and TextBox (multi-line).
Currently I have 20 forms (all duplicates of the first on I designed) and if there are say 4 ".por" files in a directory, the first four will open up while the others hide.
I think it would be far more efficient by coding a new form For each item in form1's ListView...but I want the next so many to be a copy of the first form I designed since I spent a good bit on it.
Thanks in advance!
I decided to use tabs instead.
It wasn't difficult, the problem was I didn't know how to use a form I couldn't see.
By sticking to tabs and making a huge IF statement, simply making a new tab for each new file, and I'm getting used to using controls which haven't actually been created with the designer.
Just passing through a wall here...