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
Related
In my datagridview, I need to create multiple checkboxes in some cases, like that :
After a lot of searches, I found this : Multiple CheckBox controls in a DataGrid cell. Is it possible to do the same in VB.NET (I use Visual Studio 2022) ?
Thanks.
I want to add control to user GUI that would represent excel like table but I cannot find additional control that would do that. Control like that would be used for easier data entry.
I believe that VBA has control like that and I am missing something obvious.
Does anyone know where to activate control like that?
If you have VB6 installed then, this should work:
Microsoft Flex Grid Control
However, if you do not have (vb6) then, another option is to create one yourself by dynamically adding controls to your UserForm (such as a textbox) and then tracking those object. It would take some work, but it would be an option.
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.
Hi I am looking to create controls at run time but with a bit more complexity:
I have collection of controls that I want to duplicate at runtime and then access, say:
2 text boxes
2 labels
1 Button
What is the best way of grouping them for easy access? Can I create a class that makes these items and then I just make a new class every time I want make a new set of controls?
The best option is designing an UserControl and create it at runtime all the times you need.
Designing an UserControl allows you to include that textboxes, labels, button and group them like you want.
Check this at MSDN:
Creating a Windows Form User Control
VB 2008 .NET 3.5
I have a custom "Shipment" object that contains a list of "ShippingRate" objects. This list of "ShippingRates" is accessible through a property "Shipment.PossibleShippingRates." That property simply returns a copy of the list of "ShippingRate" for that particular Shipment.
My UI layer receives a list of "Shipment" objects from the BLL. This list is databound to a datagridview, and shows details relevant to the Shipment such as Shipping Address, etc.
I want to bind the "Shipment.PossibleShippingRates" property to a combobox, such that when the user changes the grid row, the combobox reflects the "PossibleShippingRates" for that "Shipment."
In addition, I need a way to store the "ShippingRate" they selected from the combobox for later use.
I have tried a few ideas, but none of them work properly. Any ideas on how to do this?
Wouldn't the simplest solution be to tie a TextChanged or SelectedIndexChanged event to any/all fields in the datagrid that need to trigger a refresh of the combobox?