Click here to Skip to main content
15,901,861 members
Home / Discussions / C#
   

C#

 
AnswerRe: opacity of a mdichild Pin
Peace ON4-May-10 23:42
Peace ON4-May-10 23:42 
GeneralRe: opacity of a mdichild Pin
reza assar4-May-10 23:57
reza assar4-May-10 23:57 
GeneralRe: opacity of a mdichild Pin
Henry Minute5-May-10 1:31
Henry Minute5-May-10 1:31 
AnswerRe: opacity of a mdichild Pin
Peace ON5-May-10 1:35
Peace ON5-May-10 1:35 
QuestionCRC error control Pin
toto_20104-May-10 23:02
toto_20104-May-10 23:02 
AnswerRe: CRC error control Pin
toto_20105-May-10 0:25
toto_20105-May-10 0:25 
AnswerRe: CRC error control Pin
Eddy Vluggen5-May-10 1:00
professionalEddy Vluggen5-May-10 1:00 
QuestionI have a little problem with my application. Pin
Alex Manolescu4-May-10 21:41
Alex Manolescu4-May-10 21:41 
Hello,
i have a little problem with my application. I'll try to describe as simple and organised as I can.

Objective:
I have two user controls in my main form. I've linked them with a simple line that updates (refresh the form) when one of the user controls was moved.
I want the user of my application to move (with the mouse) one of the user controls, that I've created, in the main form.
The user controls are added directly to the main form like this: this.Control.Add(uc1);.

Problem:
The problem is when the user move one of the user controls.
The refresh/redraw of the form loses the line partialy or absolute. Sometimes the line is visible, sometimes it isn't.
I have NO PROBLEM with the algorithm. It's a simple 2D line. I draw the line in the Paint event of the main form.

Observations:
1. I've tryed to draw on a panel, the result was the same.
2. I've tryed setting the DoubleBuffered property to TRUE, the result was the same.
3. I've observe that pictureBox control donsen't have this problem. I've tested with a simple "line tracking the mouse" application and seen that there is no problem when redrawing.

So my next question was:
- Can I draw/use/add an user control on a pictureBox control? or a better way to draw GDI+ on Windows Forms to get rid of this redrawing problem?

I've tryed to add the user controls in the pictureBox control but they didn't appear.

Thank you!
Alex M.

AnswerRe: I have a little problem with my application. Pin
OriginalGriff4-May-10 22:14
mveOriginalGriff4-May-10 22:14 
GeneralRe: I have a little problem with my application. Pin
Alex Manolescu4-May-10 22:37
Alex Manolescu4-May-10 22:37 
GeneralRe: I have a little problem with my application. Pin
OriginalGriff4-May-10 22:58
mveOriginalGriff4-May-10 22:58 
GeneralRe: I have a little problem with my application. Pin
Alex Manolescu4-May-10 23:07
Alex Manolescu4-May-10 23:07 
GeneralRe: I have a little problem with my application. Pin
Som Shekhar4-May-10 22:40
Som Shekhar4-May-10 22:40 
GeneralRe: I have a little problem with my application. Pin
Alex Manolescu5-May-10 9:14
Alex Manolescu5-May-10 9:14 
GeneralRe: I have a little problem with my application. Pin
Som Shekhar5-May-10 9:16
Som Shekhar5-May-10 9:16 
Questionread and write in file Pin
tek 20094-May-10 21:36
tek 20094-May-10 21:36 
AnswerRe: read and write in file Pin
Abhinav S4-May-10 22:19
Abhinav S4-May-10 22:19 
QuestionRe: read and write in file Pin
tek 20094-May-10 22:38
tek 20094-May-10 22:38 
AnswerRe: read and write in file Pin
Abhinav S4-May-10 23:29
Abhinav S4-May-10 23:29 
AnswerRe: read and write in file Pin
riced5-May-10 0:11
riced5-May-10 0:11 
GeneralRe: read and write in file Pin
tek 20095-May-10 3:49
tek 20095-May-10 3:49 
QuestionNeed help in regex replace method. Pin
Rohit16db4-May-10 21:15
Rohit16db4-May-10 21:15 
AnswerRe: Need help in regex replace method. Pin
OriginalGriff4-May-10 22:39
mveOriginalGriff4-May-10 22:39 
GeneralRe: Need help in regex replace method. Pin
Rohit16db5-May-10 1:40
Rohit16db5-May-10 1:40 
GeneralRe: Need help in regex replace method. Pin
OriginalGriff5-May-10 3:54
mveOriginalGriff5-May-10 3:54 

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.