lele2008
New member
I've got a number of controls (labels) that i added at runtime to a windows form. Clicking on one of them saves its position ( x and y coordinates) onto a stack which is then saved in a text file. This text file can be accessed later to repopulate the stack and show which labels are being referenced from the stack by disabling them on the form but how do i do it?
My code for repopulating the stack with coordinates is:
Dim sr As StreamReader
Dim logPath As String = (pathName)
Dim locStack As New Stack
For i = 1 To locStack.Count
sr = File.OpenText(logPath)
sr.ReadLine()
sr.Close()
Next
My code for repopulating the stack with coordinates is:
Dim sr As StreamReader
Dim logPath As String = (pathName)
Dim locStack As New Stack
For i = 1 To locStack.Count
sr = File.OpenText(logPath)
sr.ReadLine()
sr.Close()
Next