I need to create a software that manages a bank account. I created 2 forms. Form one (Form1 "in reality is KlientetForm") has 5 textboxes, 6 buttons and a listbox. Form twoo (Form2 "in reality is GjendjaForm") has 3 textboxes (the same name as in Form1), 2 listboxes and 3 buttons. I created the program that it can save the data in text file. I can read the data from Form1 and show the details in listbox. When i select a row in a listbox the items are shown in textboxes.
My question is how to show the content of a row if I select it from Form1 in textboxes in Form2. Here are some code I made to show the details in Form1.
If something is inaccessable due to protection level they are usually set to private and means they are NOT set to public. If a textbox on form1 is set to private it mean that the textbox can only be seen by form1 but NOT form2 and like wise for a textbox on form2 this is set to private and not public.
In design view go to the properties off all your textboxes and change their "Modifiers" property to say "public". This will make the textbox accessable and solve your "inaccessible" issue.
Try putting a break point in a the position in your code where data is frist read from the file to see if it actually reads the data, then press F11 to step through the code and hover over your variables to try and see where the code is going wrong.