Click here to Skip to main content
15,903,817 members
Home / Discussions / C#
   

C#

 
GeneralPOP3 C# client having authentication problems when trying to retrieve emails from POP3 server Pin
silentweedhopper17-Sep-03 22:03
silentweedhopper17-Sep-03 22:03 
GeneralRe: POP3 C# client having authentication problems when trying to retrieve emails from POP3 server Pin
Steve S18-Sep-03 2:29
Steve S18-Sep-03 2:29 
GeneralRe: POP3 C# client having authentication problems when trying to retrieve emails from POP3 server Pin
MeisterBiber20-Sep-03 11:22
MeisterBiber20-Sep-03 11:22 
GeneralHaving trouble scrolling a RichTextBox Pin
Anonymous17-Sep-03 17:52
Anonymous17-Sep-03 17:52 
GeneralRe: Having trouble scrolling a RichTextBox Pin
J. Dunlap17-Sep-03 18:16
J. Dunlap17-Sep-03 18:16 
GeneralOh, OnPaintBackground! Pin
Arun Bhalla17-Sep-03 12:53
Arun Bhalla17-Sep-03 12:53 
GeneralRe: Oh, OnPaintBackground! Pin
leppie18-Sep-03 7:07
leppie18-Sep-03 7:07 
GeneralRe: Oh, OnPaintBackground! Pin
Arun Bhalla18-Sep-03 7:12
Arun Bhalla18-Sep-03 7:12 
GeneralRe: Oh, OnPaintBackground! Pin
leppie18-Sep-03 7:36
leppie18-Sep-03 7:36 
GeneralDataGrid binding issues Pin
james-cxx17-Sep-03 12:35
james-cxx17-Sep-03 12:35 
GeneralRe: DataGrid binding issues Pin
Braulio Dez19-Sep-03 2:17
Braulio Dez19-Sep-03 2:17 
GeneralC# Wrapper Variant SafeArray Pin
Member 301660717-Sep-03 11:16
Member 301660717-Sep-03 11:16 
GeneralPermanent Line on form Pin
pahluwalia17-Sep-03 10:27
pahluwalia17-Sep-03 10:27 
GeneralRe: Permanent Line on form Pin
Arjan Einbu17-Sep-03 21:07
Arjan Einbu17-Sep-03 21:07 
GeneralTyped Dataset default value Pin
mthead17-Sep-03 9:29
mthead17-Sep-03 9:29 
GeneralSerializing objects. Pin
kalla17-Sep-03 9:21
kalla17-Sep-03 9:21 
GeneralRe: Serializing objects. Pin
rak17-Sep-03 20:24
rak17-Sep-03 20:24 
GeneralRe: Serializing objects. Pin
kalla12318-Sep-03 5:39
kalla12318-Sep-03 5:39 
GeneralDIB Sections and Pixel Formats in C# Pin
Dave Kerr17-Sep-03 8:01
Dave Kerr17-Sep-03 8:01 
GeneralCustom Control OnPaint() Problem Pin
Douglas Troy17-Sep-03 6:35
Douglas Troy17-Sep-03 6:35 
I've created a custom control as follows (basic info):

Derives from System.Windows.Forms.Control

Styles set to(true): ResizeRedraw, AllPaintingInWmPaint, UserPaint, DoubleBuffer, SupportsTransparentBackColor, ContainerControl

In the OnPaint handler I draw the control out ...

When I change or set the Background color, it appears the control is being painted OUTSIDE the shape I have drawn (e.g., if I set the background color to Red, I can see a red rectangle with my custom shape drawn 'over it').

I realize this is some kind of region or clipping issue that I have not properly set ... I've been messing with the OnPaintBackground handler, but have not been able to overcome this issue.

Additionally, I have downloaded several custom drawn controls from CP and reviewed the code, and it appears that many of these controls suffer this same or similar problem.

As an overview, here's what I want to do: I am drawing a custom control that is an irregular shape (not a rectangle), that I want to be able to specify various background colors. The colors should (1) not bleed outside the bounding shape and (2) those edges beyond the outside of my control should be transparent when the control is layed over another object of a different color (if that makes sense).

This is my first custom C# control so I'm suffering a tad from lack of working knowledge with the framework and language (although thus far, it's not stopped me until now ... dang-it. D'Oh! | :doh: )

TIA,

D.

GeneralRe: Custom Control OnPaint() Problem(Modified) Pin
Mazdak17-Sep-03 7:48
Mazdak17-Sep-03 7:48 
GeneralRe: Custom Control OnPaint() Problem(Modified) Pin
Douglas Troy17-Sep-03 8:51
Douglas Troy17-Sep-03 8:51 
GeneralSMS via UCP in C# Pin
User 31295917-Sep-03 5:24
User 31295917-Sep-03 5:24 
GeneralSetting Left Margin when printing... Pin
.gonad17-Sep-03 5:04
.gonad17-Sep-03 5:04 
GeneralRe: Setting Left Margin when printing... Pin
.gonad17-Sep-03 5:34
.gonad17-Sep-03 5:34 

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.