Results 1 to 6 of 6

Thread: Line Co-ordinate update with moving picbox

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2006
    Posts
    30

    Line Co-ordinate update with moving picbox

    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........
    Attached Files Attached Files

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Jan 2006
    Posts
    30

    Re: Line Co-ordinate update with moving picbox

    Can Anyone give me an idea how can i get rescue my problem??????

  3. #3
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Re: Line Co-ordinate update with moving picbox

    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
    Attached Files Attached Files
    Last edited by Andrew G; Jan 26th, 2006 at 07:52 PM.

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Jan 2006
    Posts
    30

    Re: Line Co-ordinate update with moving picbox

    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

  5. #5
    Frenzied Member Andrew G's Avatar
    Join Date
    Nov 2005
    Location
    Sydney
    Posts
    1,587

    Re: Line Co-ordinate update with moving picbox

    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.

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Jan 2006
    Posts
    30

    Re: Line Co-ordinate update with moving picbox

    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......
    Attached Images Attached Images
    Last edited by mun04; Jan 26th, 2006 at 10:42 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width