Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

Assistance with simplifying a button to listbox script

$
0
0

I'm sure there other things close to this request, but I am really stumped on how to get it to work.

I am entirely new to this, and can't seem to find anything that works and is related to this issue.

I'm trying to do the following.

On a click event

  • Clear ListBox1 & ListBox2 -I've got this no problems-
  • Read text from "Path" + button name + ".txt"
  • send line 1 & 2 to ListBox2, then send line 3 to end of file to ListBox1

I may be over complicating it. The idea is that I don't want to use the buttons text as I want to mask the button with an Image / Icon. Also, It seemed vastly more proficient -until now- to make a generic handling script that enables me to just name the button after the text file I want to load, and not have to copy + paste + edit literally 500 blocks. 

Think anyone can point me into the right direction for a resource or solution? I don't mind learning how to do it, but all the material I've found either throws me syntax error, or isn't even close to the result I'm hoping to find. 

Cheers~ ƒeuer

PS. If this is in the wrong section forgive me, Microsoft sure has a weird way of positioning a forum post...


Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>