hmmm ok i see, can you give some example code that can dragdrop some rectangle over the panel ( windows form component)
[ sorry if my english bad, or not polite, i am indonesian, can't speak english better ]
It's a fair bit of code, I can't just whip it up for you. The core thing to understand, is to get your rectangles drawing in a paint event, and to have the ability to change the location of one ( or create a new one ), based on mouse events. I'd start with a List<Rectangle> and a Paint event that draws the rectangles. Then I'd write the code to get mouse events, and draw a rect. Then I'd write the bit that finds a rect based on a click, and moves it.
Feel free to ask questions any step of the way, but I'm afraid I am unable to jsut write all that for you. If you ask specific questions as you go, I'll be more than happy to help any way I can
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
my problem is that when i open a site there is CAPTCHA i have 2 retrieve it buut it ha no reference number only reference site and when u enter that reference site and click it always changes . so i want a code that when i send the URL the captcha along with it should also be obtained.iam working in BOT technology
I am new to C# and need some help with FileStream and BufferedStream . I am building a XML editor using SharpDevelop, the editor will be used to encrypt and decrypt files (custom zip files which are XML, and pictures). Only one person should have access to these files at a time and we want to make sure that everything is cleaned up after someone opens the file. Right now I am sure a FileStream to do all of this, I decrypt the file to a folder using SharpZipLib the files are then loaded into the XML editor, once the person closes the file it then takes that folder encrypts all the files and delete the temp folder I was using.
I got a window that is 25px in height, and want it to dock to the screen bottom (so the height is 25px, and the width is 100%), it's because I'm making a RSS newsticker, and want it to slide at the bottom of the screen.
Since the code I gave you uses the Height of the object, you need to set the height before executing that line.
this.Height = 22; //this done first
this.Width = Screen.PrimaryScreen.Bounds.Width; //moved here to keep height and width in the same code locations
this.Location = new Point(0, Screen.PrimaryScreen.WorkingArea.Height - this.Height);