How resize a ListBox?

With .net I want to make a ListBox that populates according to a file. The populating goes well, but I can’t go down properly in the ListBox. It goes beyond the height of my window, the problem probably comes from the fact that I’m using the height of the DockPanel. How can I avoid this… Read More How resize a ListBox?

how to clear listbox of previous selected radio button from the window after selecting another radio button using tkinker

I am an absolute beginner in programming and to Python. I am trying to create a gui using tkinter. In this program, I want click any radio button and see the list of software name. Here is the code: import gspread from oauth2client.service_account import ServiceAccountCredentials from pprint import pprint as pp scope = ["https://spreadsheets.google.com/feeds",’https://www.googleapis.com/auth/spreadsheets’,"https://www.googleapis.com/auth/drive.file","https://www.googleapis.com/auth/drive"%5D creds… Read More how to clear listbox of previous selected radio button from the window after selecting another radio button using tkinker

Multiple Listbox filters with select all at Linq

I have 2 listbox like below. I want to filter the list from the listbox parameters, forexample segment A and All Status. What should I write into the ALL value in the Listbox? <select class="form-select form-select-solid" name="Segment"> <option value="???">All</option> <option value="A">Segment A</option> <option value="B">Segment B</option> <option value="C">Segment C</option> </select> <select class="form-select form-select-solid" name="Status" > <option… Read More Multiple Listbox filters with select all at Linq

Invalid cast error occurs in calculating elements in the listbox

I am trying to calculate the median value from Listbox data in C#. However, occurs invalid cast exception occurs in foreach statement as below (in bold) : foreach (string item in ListBox1.Items) can anyone help me how to fix this error? will be highly appreciated. Thank you. System.InvalidCastException: Unable to cast object of type ‘System.Int32’… Read More Invalid cast error occurs in calculating elements in the listbox