05-10-2025, 11:52 PM
ListbocFileGraphic.7z (Size: 2.57 KB / Downloads: 98)
Hi
here a demostration about
how create a list of bidimensional points at random in a set range of values for the two dimensions X and Y
how to save data in array and in a .CSV file
how to load the .CSV file into a Listbox
how to draw on a Picturebox using data taken from .CSV file and saved into the Listbox
how to show the select point in the graphic
The application has been built using the Inform-PE v1.5.7 and then typing the code into QB64pe IDE.
It was time that i don't play with Event driven programming, so reading the thread Inform-PE, regarding the last posts I thought that it was fine to write something like a list of points and show them on the graphic surface, and showing with a different color the point selected in the listbox.
So here it is.
Help for user:
if it is the first time that you run this demo please click on Make List button. You can use this button also to generate another .CSV file until List1000.CSV (enough?). The new file will be loaded into list box and showed on the graphic on the right. All the points are yellow except that point selected in the listbox that is red. The cohordinate of the choosen point will be shown in the title of the window of the application.
If user clicks with left mouse button on Load File ,in the folder of the application, he will find the LiSTXXX.CSV files to select for loading into listbox.
![[Image: Listbox-Graphic-demo-Inform-PE.jpg]](https://i.ibb.co/1GbKFyLs/Listbox-Graphic-demo-Inform-PE.jpg)
and here the source files to compile in QB64pe having installed Inform PE. I posted in compressed file 1 because they uses less space, 2 because the procedure for attachment refuses to add .FRM file.
Thanks for looking at it
Welcome feedbacks

