Sadly, I am again having this issue with the same program. This time, I tried to draw some lines over several buttons using the same constructs as before. The code is triggered by clicking one button (which is outside the area of the line drawing) - the click routine creates the path (array of points) and the line is then drawn in the Paint event handler. The problem is this: the line only appears over the first button.
Not sure if it matters, but the Paint event routine is the form’s Paint event and there is an AddHandler call connecting the buttons (over which the line is to be drawn) to the event routine. If it matters, I could provide the code for this routine.
I believe that all of the necessary files are attached. Note that the Project.vb file is to allow me to use command line variables - nothing has been added yet.
Last edited by groston; Feb 3rd, 2023 at 04:55 PM.
Note that the Project.vb file is to allow me to use command line variables - nothing has been added yet.
I'm not sure why you would need an extra file for that. You can call Environment.GetCommandLineArgs anywhere in your code, or you can handle the Startup event of the application and get the commandline parameters in the handler. You can set commandline parameters in the project properties for testing in the debugger.