Using a Listbox Control and Method/Function Return Values

Опубликовано: 17 Январь 2026
на канале: rory mulcahey
536
1

In this video we will cover how to implement a switch statement, using radiobuttons in a groupbox in a basic windows form application.

Basic Steps:

Add listbox control
Populate with data
Create buttonevent and call method from event
Create new method with return value
Read listbox in method and return the value
Display stored data

C# .NET
Windows Form Application
Button Event
Visual Studio
Variable Types
Listbox
Method / Function
Return type
if else statement