Click here to Skip to main content
15,907,392 members
Home / Discussions / C#
   

C#

 
AnswerRe: count specific character in string Pin
Guffa24-Oct-06 22:58
Guffa24-Oct-06 22:58 
Questionhow to use the printDialogBox? Pin
quiteSmart24-Oct-06 20:11
quiteSmart24-Oct-06 20:11 
AnswerRe: how to use the printDialogBox? Pin
Nader Elshehabi24-Oct-06 22:03
Nader Elshehabi24-Oct-06 22:03 
GeneralRe: how to use the printDialogBox? Pin
quiteSmart24-Oct-06 22:43
quiteSmart24-Oct-06 22:43 
QuestionHow can I add the assembly Microsoft.Office.Interop.Outlook? Pin
OctopusThu24-Oct-06 19:26
OctopusThu24-Oct-06 19:26 
AnswerRe: How can I add the assembly Microsoft.Office.Interop.Outlook? Pin
OctopusThu24-Oct-06 19:36
OctopusThu24-Oct-06 19:36 
QuestionCustom Draw TreeView problem - Painted "+" got overriden Pin
DiegoValdevino24-Oct-06 19:18
DiegoValdevino24-Oct-06 19:18 
QuestionCustom UserControl shape problem... Pin
Kasic Slobodan24-Oct-06 16:08
Kasic Slobodan24-Oct-06 16:08 
I have a UserControl and when Iam not using this.Region to form a custom shape for my UserControl everything is ok except that in the upper left and right corner you can see a cotrol background.

See here: http://img87.imageshack.us/my.php?image=goodjo2.jpg

When I put this piece of code:

region.Intersect(gp);
this.Region = region;


Where the gp looks like:

gp.AddArc(0, 0, 20, 20, 180, 90); // prva kriva
gp.AddArc(this.Width - 21, 0, 20, 20, 270, 90); // druga kriva
gp.AddLine(this.Width - 1, 20, this.Width - 1, this.Height - 1); // desna linija
gp.AddLine(this.Width - 1, this.Height - 1, 0, this.Height - 1); // donja linija
gp.CloseFigure();


In other words, those darker blue lines (borders) of the UC, I get this ugly looking corners in upper left and right corners and no right and bottom line.

See here: http://img291.imageshack.us/my.php?image=badid4.jpg

My question is, how can I set an Region to my UC without this 'stuff' around upper left and right corners and with right and bottom lines?

I hope you understand.
AnswerRe: Custom UserControl shape problem... Pin
Kasic Slobodan27-Oct-06 7:31
Kasic Slobodan27-Oct-06 7:31 
QuestionApplication.Exit(); not working in the form constructor, why? Pin
AngryC24-Oct-06 14:57
AngryC24-Oct-06 14:57 
AnswerRe: Application.Exit(); not working in the form constructor, why? Pin
Nader Elshehabi24-Oct-06 15:22
Nader Elshehabi24-Oct-06 15:22 
GeneralRe: Application.Exit(); not working in the form constructor, why? Pin
AngryC24-Oct-06 16:31
AngryC24-Oct-06 16:31 
GeneralRe: Application.Exit(); not working in the form constructor, why? Pin
EricT.25-Nov-10 7:27
EricT.25-Nov-10 7:27 
QuestionSearch for statements in CS files. Pin
Alex Iagovsky24-Oct-06 14:34
Alex Iagovsky24-Oct-06 14:34 
AnswerRe: Search for statements in CS files. Pin
Nader Elshehabi24-Oct-06 15:29
Nader Elshehabi24-Oct-06 15:29 
GeneralRe: Search for statements in CS files. Pin
Alex Iagovsky25-Oct-06 3:19
Alex Iagovsky25-Oct-06 3:19 
QuestionForms Pin
m.m._200724-Oct-06 14:07
m.m._200724-Oct-06 14:07 
AnswerRe: Forms [modified] Pin
Nader Elshehabi24-Oct-06 15:40
Nader Elshehabi24-Oct-06 15:40 
AnswerRe: Forms Pin
phenix-burn24-Oct-06 15:42
phenix-burn24-Oct-06 15:42 
QuestionSocket class Poll method and POP3 client Pin
Martin Lachowicz24-Oct-06 13:00
Martin Lachowicz24-Oct-06 13:00 
QuestionCounting months between dates? Pin
rbaut24-Oct-06 12:08
rbaut24-Oct-06 12:08 
AnswerRe: Counting months between dates? Pin
Guffa24-Oct-06 12:15
Guffa24-Oct-06 12:15 
QuestionWhy doesn't the left mouse button work... [modified] Pin
new_phoenix24-Oct-06 11:19
new_phoenix24-Oct-06 11:19 
QuestionCollectionEditor and Generics Pin
Jamie Nordmeyer24-Oct-06 10:43
Jamie Nordmeyer24-Oct-06 10:43 
QuestionNeed to access value from app.config file Pin
Shilpa124-Oct-06 10:21
Shilpa124-Oct-06 10: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.