Consulting

Results 1 to 9 of 9

Thread: drag and drop images/dwg files in vb.6

  1. #1
    VBAX Contributor
    Joined
    May 2008
    Location
    bangalore
    Posts
    199
    Location

    drag and drop images/dwg files in vb.6

    i am having png and dwg files with same names...from vb code i will be filtering the files and displayingthe png images..as thumbnail..

    what i want is drag and drop the file to dwg viewer then related autocad file should open...

    i am looking for drag and drop option...with vb.6

    in my requirement i will be dragging png file but in coding i will be calling respected dwg files...

    a sample screen shot i have attached ....

  2. #2

    Welcome Back

    Hey there.

    So I see you are continueing the last project we worked on. What do you have so far? How about posting your project?

    Scott
    You don't understand anything until you learn it more than one way. ~Marvin Minsky

    I never teach my pupils; I only attempt to provide the conditions in which they can learn. - Albert Einstein

  3. #3
    VBAX Contributor
    Joined
    May 2008
    Location
    bangalore
    Posts
    199
    Location
    hi scott

    my last project which we have worked for thumbnail its on hold for time being ..

    in this project i am displaying png image and i want to drag that image to autocad so that required autocad file will open..

    i am attaching the code which i am using to display png images in vb.6 as thumbnail

    http://www.esnips.com/web/imageviewer/

    download it from here
    .
    Last edited by shamsam1; 10-21-2008 at 10:42 PM.

  4. #4
    VBAX Contributor
    Joined
    May 2008
    Location
    bangalore
    Posts
    199
    Location
    hi scott....

    any update on drag and drop....

  5. #5

    No Update

    Good Morning.

    Sorry about the delay. I've been fairly busy lately and haven't had the chance to look too much at it.

    From what I downloaded and saw, you are trying to use a Custom Control for this. Have you implemented the Control into your project yet? Would you post that project instead of the Custom Control's example? Overall, I think that this method is going to be more complicated than continueing the last project I helped with.

    Scott
    You don't understand anything until you learn it more than one way. ~Marvin Minsky

    I never teach my pupils; I only attempt to provide the conditions in which they can learn. - Albert Einstein

  6. #6
    VBAX Contributor
    Joined
    May 2008
    Location
    bangalore
    Posts
    199
    Location
    hi scott

    i cannot share the code..as i still dotn have full code with me..i can only send u screen short..what i am trying to do..
    with csv with as database i am loading some detials in comboboxs based on slection i am dispaying png images (png)images as thumbnails..then i want to drag any thumb nail picture to dwg viewer (still dotnhave free version of dwg viewer we can use autocad2007 also) then particular dwg drawing should open..

    i have attached a sample jpg image

  7. #7
    Good Afternoon.

    When you do have the available code, go ahead and post it so that we can better help you. Without a more information and the working book, it's harder to see what you're doing versus what will work. No reason to code a bunch that doesn't do what you want.

    Scott
    You don't understand anything until you learn it more than one way. ~Marvin Minsky

    I never teach my pupils; I only attempt to provide the conditions in which they can learn. - Albert Einstein

  8. #8
    Moderator VBAX Master Tommy's Avatar
    Joined
    May 2004
    Location
    Houston, TX
    Posts
    1,184
    Location
    Hi shamsam1,

    I am thinking that you already have the path to the dwg file with the path to the png file right?
    I am also thinking that once you have this information, when you are dragging the png file over the acad window you would be able to "release" this file and on the mouse up event tell acad to open this drawing.

    You could imbed the model window in your form. This will take a long time to load.

    As Demosthine said if you post some code that you are working on it will help us help you. Otherwise we would think you just want us to do it for you.

  9. #9
    VBAX Contributor
    Joined
    May 2008
    Location
    bangalore
    Posts
    199
    Location
    thanks tommy...

    this week i am be pasting the code...only 60% of coding we are able to finish...
    will be pasting the code shortly

Posting Permissions

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