Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How 2 drag and drop 'items' onto a screen as in visio

How 2 drag and drop 'items' onto a screen as in visio

Scheduled Pinned Locked Moved Visual Basic
helpgraphicsdesignsysadmin
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gamerPotatoe
    wrote on last edited by
    #1

    HI guys I'm working on a simple program. Its supposed to be a network simulator to simulate simple routing algorithms and it consists of a small network design module where the user can actually draw a network with nodes and connectors on the screen. I'm kinda stuck at the drawing part like I want to make a simple drawing environment like Microsoft visio, where you drag items like nodes and routers from a toolbox onto a main screen and connect them with lines that signify connections. The thing is that I've not done much in VB and I'd like some pointers on how could this be done i.e. just the drawing environment. I'm using vb6 and could really use the help.

    D 1 Reply Last reply
    0
    • G gamerPotatoe

      HI guys I'm working on a simple program. Its supposed to be a network simulator to simulate simple routing algorithms and it consists of a small network design module where the user can actually draw a network with nodes and connectors on the screen. I'm kinda stuck at the drawing part like I want to make a simple drawing environment like Microsoft visio, where you drag items like nodes and routers from a toolbox onto a main screen and connect them with lines that signify connections. The thing is that I've not done much in VB and I'd like some pointers on how could this be done i.e. just the drawing environment. I'm using vb6 and could really use the help.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      If you don't have much experience in VB, your going to have a very difficult time doing this. Your drawing environment is going to have to support Drag and Drop (medium difficulty), and your going to have to be able to walk an object hierarchy that you create by dragging and droping controls that represent network objects and links. This object heirarchy will be populated and connected by objects (controls) that you have to write that conform to a certain Interface, that you must also design. This Interface is a MUST because this is what your hierarchy is going to be built with. Each object will have "must have" properties in it that will supply the data to connect one object to the next. This is definately NOT a beginner level project. I hope your well versed in Interfaces, Object Classes, and design patterns, because you going to rely on it HEAVILY in the this project. only about 10% of the code your going to write will be for handling painting. The other 90% will be for the object classes themselves, the code to simulate each object, managing the creation and destruction of those objects, managing the heirarchy tree, ... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      G 1 Reply Last reply
      0
      • D Dave Kreskowiak

        If you don't have much experience in VB, your going to have a very difficult time doing this. Your drawing environment is going to have to support Drag and Drop (medium difficulty), and your going to have to be able to walk an object hierarchy that you create by dragging and droping controls that represent network objects and links. This object heirarchy will be populated and connected by objects (controls) that you have to write that conform to a certain Interface, that you must also design. This Interface is a MUST because this is what your hierarchy is going to be built with. Each object will have "must have" properties in it that will supply the data to connect one object to the next. This is definately NOT a beginner level project. I hope your well versed in Interfaces, Object Classes, and design patterns, because you going to rely on it HEAVILY in the this project. only about 10% of the code your going to write will be for handling painting. The other 90% will be for the object classes themselves, the code to simulate each object, managing the creation and destruction of those objects, managing the heirarchy tree, ... RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        G Offline
        G Offline
        gamerPotatoe
        wrote on last edited by
        #3

        I'm not like totally raw in VB6 I've made & used simple classes and activeX controls.. I'm just a bit rusty in VB6 thats all :). My object oriented concepts are pretty good I should say cos I'm pretty fine in VC++6. The only thing is that the restriction on this project is that its hould be in VB6. I would like to know on how to start and where to begin.

        D 1 Reply Last reply
        0
        • G gamerPotatoe

          I'm not like totally raw in VB6 I've made & used simple classes and activeX controls.. I'm just a bit rusty in VB6 thats all :). My object oriented concepts are pretty good I should say cos I'm pretty fine in VC++6. The only thing is that the restriction on this project is that its hould be in VB6. I would like to know on how to start and where to begin.

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          gamerPotatoe wrote: I would like to know on how to start and where to begin. Start by designing your object model. You don't need VB to do that. You need to design an Interface for your objects that will allow you to walk your object tree. It will also need to support your design for your network simulation. You probably be make strong use of the factory design pattern. to create your objects as you need them. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups