Click here to Skip to main content
15,890,438 members
Home / Discussions / C#
   

C#

 
QuestionFileDownload eventhandler not firing Pin
Jacobb Michael10-Sep-09 1:11
Jacobb Michael10-Sep-09 1:11 
Questionc# installer Pin
askhar51610-Sep-09 0:40
askhar51610-Sep-09 0:40 
AnswerRe: c# installer Pin
Keith Barrow10-Sep-09 0:55
professionalKeith Barrow10-Sep-09 0:55 
GeneralRe: c# installer Pin
askhar51610-Sep-09 17:58
askhar51610-Sep-09 17:58 
QuestionRightToLeft ListView ? Pin
Mohammad Dayyan10-Sep-09 0:02
Mohammad Dayyan10-Sep-09 0:02 
AnswerRe: RightToLeft ListView ? Pin
Nuri Ismail10-Sep-09 0:17
Nuri Ismail10-Sep-09 0:17 
QuestionCreate a floating object Pin
billy_iii9-Sep-09 23:36
billy_iii9-Sep-09 23:36 
AnswerRe: Create a floating object Pin
Nuri Ismail10-Sep-09 0:05
Nuri Ismail10-Sep-09 0:05 
You can draw on picturebox control using the Graphics object. Here is an example code fragment:

 // Create the graphics object for the picturebox
Graphics gr = pictureBox1.CreateGraphics();

// Draw a red rectangle on the center of the picturebox
Rectangle rect = new Rectangle();
rect.X = pictureBox1.ClientRectangle.X + pictureBox1.ClientRectangle.Width / 4;
rect.Y = pictureBox1.ClientRectangle.Y + pictureBox1.ClientRectangle.Height / 4;
rect.Width = pictureBox1.ClientRectangle.Width / 2;
rect.Height = pictureBox1.ClientRectangle.Height / 2;
gr.DrawRectangle(new Pen(Color.Red), rect);

.....


You can use the MouseDown, MouseMove and MouseUp events for the picture box, to make the object floating or to change its width and height with the mouse.

Regards
Nuri Ismail
GeneralRe: Create a floating object Pin
billy_iii10-Sep-09 13:50
billy_iii10-Sep-09 13:50 
AnswerRe: Create a floating object Pin
carlecomm24-Sep-09 21:33
carlecomm24-Sep-09 21:33 
AnswerRe: Create a floating object Pin
carlecomm24-Sep-09 21:39
carlecomm24-Sep-09 21:39 
QuestionCompatability problem with Transparency key Pin
Vijay Mudunuri9-Sep-09 22:48
Vijay Mudunuri9-Sep-09 22:48 
AnswerRe: Compatability problem with Transparency key Pin
stancrm9-Sep-09 22:54
stancrm9-Sep-09 22:54 
GeneralRe: Compatability problem with Transparency key Pin
Vijay Mudunuri9-Sep-09 23:48
Vijay Mudunuri9-Sep-09 23:48 
AnswerRe: Compatability problem with Transparency key Pin
carlecomm24-Sep-09 21:37
carlecomm24-Sep-09 21:37 
QuestionWhich GUI Toolkit for variable User Interfaces and Mono-Compatibility Pin
softwarejaeger9-Sep-09 22:08
softwarejaeger9-Sep-09 22:08 
AnswerRe: Which GUI Toolkit for variable User Interfaces and Mono-Compatibility Pin
Mirko19809-Sep-09 22:44
Mirko19809-Sep-09 22:44 
GeneralRe: Which GUI Toolkit for variable User Interfaces and Mono-Compatibility Pin
softwarejaeger9-Sep-09 22:53
softwarejaeger9-Sep-09 22:53 
GeneralRe: Which GUI Toolkit for variable User Interfaces and Mono-Compatibility Pin
Mirko198010-Sep-09 2:13
Mirko198010-Sep-09 2:13 
GeneralRe: Which GUI Toolkit for variable User Interfaces and Mono-Compatibility Pin
softwarejaeger10-Sep-09 2:25
softwarejaeger10-Sep-09 2:25 
AnswerRe: Which GUI Toolkit for variable User Interfaces and Mono-Compatibility Pin
carlecomm24-Sep-09 21:50
carlecomm24-Sep-09 21:50 
QuestionRichTextBox with MaximumLine Limit Pin
Anindya Chatterjee9-Sep-09 21:57
Anindya Chatterjee9-Sep-09 21:57 
AnswerRe: RichTextBox with MaximumLine Limit Pin
Eddy Vluggen9-Sep-09 22:59
professionalEddy Vluggen9-Sep-09 22:59 
AnswerRe: RichTextBox with MaximumLine Limit Pin
carlecomm24-Sep-09 21:32
carlecomm24-Sep-09 21:32 
QuestionUser Input Into Array, Need To Check Array Member If It Is Greater Then 100 Or Less Then 0 Pin
Sivyo9-Sep-09 21:21
Sivyo9-Sep-09 21:21 

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.