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. One more problem

One more problem

Scheduled Pinned Locked Moved Visual Basic
help
2 Posts 1 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.
  • L Offline
    L Offline
    llandyw
    wrote on last edited by
    #1

    I am using a richtextbox in my project, and want to be able to drag files into it. While I can get a file and get it to load, the file object is also inserted into the control. There appears to be no handled property on the DragEventArgs of the DragDrop event for the richtextbox. I've been back and forth through the docs and nothing I've tried seems to work.

    L 1 Reply Last reply
    0
    • L llandyw

      I am using a richtextbox in my project, and want to be able to drag files into it. While I can get a file and get it to load, the file object is also inserted into the control. There appears to be no handled property on the DragEventArgs of the DragDrop event for the richtextbox. I've been back and forth through the docs and nothing I've tried seems to work.

      L Offline
      L Offline
      llandyw
      wrote on last edited by
      #2

      Also noticed something else re: richtextbox. Tried setting up a reverse find. Seems that no matter what I did, the find always started at the end. I used instance.Find(theText, startPos, RichTextBoxFinds.Reverse) And while it would find theText, it would always find the same text, last one in the box. I could put a starting position between 2 known locations of theText, and it would make no difference. In the end, I put the text into a string, then did an InstrRev to get the location, then set the SelectionStart and SelectionLength accordingly, and it works. But it should work using the .find!

      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