I attached my project along with the post.....In my project u can add picutrebox by a Comandbutton click and draw line with another Comandbutton click in VB runtime.......I am facing problem in my project moving line co-ordinate with picturebox moving by mouse move event.....Is it possible???
My Problems are
1. The connector appeared on line connector button loose its connections when the next picturebox appeared on AddPicBox click.
2. The line coordinate donot update moving with picture box when there are more than one connection.
I knew this problems are arised in my PicArray_MouseMove event.Most of the guy having vast knowledge ...i hope they easily fix up it........
Sorry it took so long but i didn't understand alot of the code so i decided to make my own version. It uses the line function to draw lines etc so it doesn't require as much controls on the form. Hope it helps
Last edited by Andrew G; Jan 26th, 2006 at 07:52 PM.
U r own version is near around what i want....but still have some problem like when add lineconnector it start adding two box from one side to another side of a picturebox....but i need the lineconnetor add two picture box from buttom side of the picture box to the top side of the another picture box........One more question if i use another button which can remove a link between two Picbox...then i know i need to track the line....could u tell where i i can track it??....Thank for ur co-operation......at least i get an idea from ur code
Ok i've tried to fix it up again. I've uploaded it in my previous post
When it removes the line, it doesn't remove it but makes it drawn from the center box to the center box, so its basically still drawn except that it can't be seen. This will create a problem if you have hundreds of lines as the loop may slow down, but for a couple of lines it should be fine.
Last edited by Andrew G; Jan 26th, 2006 at 07:54 PM.
I alraedy fix it.............Now i am facing problem to remove line between two picturebox and also remove a specific picturebox by button like remove line and remove picturebox.....May be I have a lot of line......another question is it pissible to preapar a connections list among the picturebox.U can get better explanation my que on the attchement file?????If i fix up my problem with ur code i think it will be more easier for me......