© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
2 replies
madsc0tt

Combo box values

I am trying to create a Windows Form App.

I am trying to work out a cost when someone selects a value.

Basically I want them to select a value and have a cost associated with that value.

Does anyone know how to make it so an item in a combo box has text and then also a integer value associated with it so I can use it to work out the total cost.

For example I am trying to make it so different types of insurance have different values.

None - I want this to have 0 cost
Basic - I want this to have 10 cost
Full - I want this to have 25 cost

I have tried using chat gpt but it isn't working for me I cant get what im looking for
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ combo box null reference
C#CC# / help
16mo ago
Hiding items in combo box?
C#CC# / help
4y ago
❔ Database to Combo Box linking without using SQL??
C#CC# / help
3y ago
❔ WPF derived combo box doesn't show up in namespace
C#CC# / help
3y ago