Click here to Skip to main content
15,914,488 members
Home / Discussions / C#
   

C#

 
Questionhow to connect to sql Database in VC# 2005 Pin
Xmen Real 4-Jul-07 4:29
professional Xmen Real 4-Jul-07 4:29 
AnswerRe: how to connect to sql Database in VC# 2005 Pin
Ed.Poore4-Jul-07 6:08
Ed.Poore4-Jul-07 6:08 
QuestionDragDrop rectangle Pin
titusworld4-Jul-07 4:25
titusworld4-Jul-07 4:25 
AnswerRe: DragDrop rectangle Pin
Christian Graus4-Jul-07 4:34
protectorChristian Graus4-Jul-07 4:34 
GeneralRe: DragDrop rectangle Pin
titusworld4-Jul-07 4:42
titusworld4-Jul-07 4:42 
GeneralRe: DragDrop rectangle Pin
Christian Graus4-Jul-07 5:17
protectorChristian Graus4-Jul-07 5:17 
GeneralRe: DragDrop rectangle Pin
titusworld4-Jul-07 5:24
titusworld4-Jul-07 5:24 
GeneralRe: DragDrop rectangle Pin
Christian Graus4-Jul-07 5:37
protectorChristian Graus4-Jul-07 5:37 
You've not given any offense, not at all.

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 )
Questionc# Pin
ravilikesaboli4-Jul-07 4:22
ravilikesaboli4-Jul-07 4:22 
AnswerRe: c# Pin
Christian Graus4-Jul-07 4:29
protectorChristian Graus4-Jul-07 4:29 
AnswerRe: c# Pin
J4amieC4-Jul-07 4:50
J4amieC4-Jul-07 4:50 
QuestionQuestion about Streams Pin
RussBus4-Jul-07 4:00
RussBus4-Jul-07 4:00 
QuestionHow do i dock a window to the bottom of the screen? Pin
jafingi4-Jul-07 3:01
jafingi4-Jul-07 3:01 
AnswerRe: How do i dock a window to the bottom of the screen? Pin
Tamimi - Code4-Jul-07 3:27
Tamimi - Code4-Jul-07 3:27 
GeneralRe: How do i dock a window to the bottom of the screen? Pin
jafingi4-Jul-07 3:30
jafingi4-Jul-07 3:30 
GeneralRe: How do i dock a window to the bottom of the screen? Pin
Tamimi - Code4-Jul-07 3:37
Tamimi - Code4-Jul-07 3:37 
GeneralRe: How do i dock a window to the bottom of the screen? Pin
jafingi4-Jul-07 3:47
jafingi4-Jul-07 3:47 
GeneralRe: How do i dock a window to the bottom of the screen? Pin
Martin#4-Jul-07 4:14
Martin#4-Jul-07 4:14 
GeneralRe: How do i dock a window to the bottom of the screen? Pin
jafingi4-Jul-07 4:18
jafingi4-Jul-07 4:18 
AnswerRe: How do i dock a window to the bottom of the screen? Pin
ken.tachyon4-Jul-07 18:25
ken.tachyon4-Jul-07 18:25 
GeneralRe: How do i dock a window to the bottom of the screen? Pin
jafingi4-Jul-07 23:32
jafingi4-Jul-07 23:32 
GeneralRe: How do i dock a window to the bottom of the screen? Pin
PhilDanger5-Jul-07 4:02
PhilDanger5-Jul-07 4:02 
GeneralRe: How do i dock a window to the bottom of the screen? Pin
jafingi6-Jul-07 0:20
jafingi6-Jul-07 0:20 
GeneralRe: How do i dock a window to the bottom of the screen? Pin
PhilDanger6-Jul-07 3:04
PhilDanger6-Jul-07 3:04 
GeneralRe: How do i dock a window to the bottom of the screen? Pin
jafingi6-Jul-07 3:05
jafingi6-Jul-07 3:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.