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

C#

 
QuestionMDI Applications?? Pin
HahnTech6-Dec-05 9:33
HahnTech6-Dec-05 9:33 
QuestionWindows Media Player EndOfStream Pin
sasdav6-Dec-05 9:33
sasdav6-Dec-05 9:33 
AnswerRe: Windows Media Player EndOfStream Pin
jawad marji6-Dec-05 22:33
jawad marji6-Dec-05 22:33 
GeneralRe: Windows Media Player EndOfStream Pin
sasdav7-Dec-05 2:10
sasdav7-Dec-05 2:10 
QuestionNon Rectangular Form Pin
Sabry19056-Dec-05 8:00
Sabry19056-Dec-05 8:00 
AnswerRe: Non Rectangular Form Pin
Pablo Hernandez Valdes6-Dec-05 9:15
Pablo Hernandez Valdes6-Dec-05 9:15 
GeneralRe: Non Rectangular Form Pin
Sabry19056-Dec-05 23:27
Sabry19056-Dec-05 23:27 
GeneralRe: Non Rectangular Form Pin
Pablo Hernandez Valdes7-Dec-05 4:29
Pablo Hernandez Valdes7-Dec-05 4:29 
Maybe it didn't work because the BackColor must be set to the color you want to make transparent, if not it does nothing at all. In my computer it works fine with this. If it still doesn't work please tell me and I'll try to send you my full code.

If you want to do something like this using regions, for example, if you want a triangular window you can do

System.Drawing.Drawing2D.GraphicsPath gp=new System.Drawing.Drawing2D.GraphicsPath(new Point[]{new Point(0,0),new Point(200,0),new Point(100,200)},new byte[]{(byte)PathPointType.Start,(byte)PathPointType.Line,(byte)PathPointType.Line});<br />
  this.Region=new Region(gp);


Now you get a triangular window. You can intersect, join, complement different regions to obtain more complex shapes and even use non polygonal regions with bezier curves (PathPointType.Bezier). With a litte effort you can make a region that conform to your bitmap and use it for the form.

Any problems please let me know.


Pablo Hernandez Valdes
GeneralRe: Non Rectangular Form Pin
Sabry19057-Dec-05 4:52
Sabry19057-Dec-05 4:52 
QuestionClosing a Webform by clicking the close button Pin
TheMajorRager6-Dec-05 7:50
TheMajorRager6-Dec-05 7:50 
AnswerRe: Closing a Webform by clicking the close button Pin
[Marc]6-Dec-05 8:52
[Marc]6-Dec-05 8:52 
AnswerRe: Closing a Webform by clicking the close button Pin
enjoycrack6-Dec-05 9:15
enjoycrack6-Dec-05 9:15 
AnswerRe: Closing a Webform by clicking the close button Pin
Dave Kreskowiak6-Dec-05 10:24
mveDave Kreskowiak6-Dec-05 10:24 
QuestionHow to launch multiple threads Pin
Oskar Emil6-Dec-05 7:27
Oskar Emil6-Dec-05 7:27 
AnswerRe: How to launch multiple threads Pin
mcljava6-Dec-05 11:43
mcljava6-Dec-05 11:43 
GeneralRe: How to launch multiple threads Pin
Oskar Emil7-Dec-05 7:16
Oskar Emil7-Dec-05 7:16 
QuestionHow to get all properties of system_comobject(like word 2003) using reflection ? Pin
caiter6-Dec-05 5:58
caiter6-Dec-05 5:58 
QuestionBinding a ds to a textbox control Pin
steve_rm6-Dec-05 5:55
steve_rm6-Dec-05 5:55 
Questiononly get one field when import csv to datagrid Pin
tabulation6-Dec-05 5:41
tabulation6-Dec-05 5:41 
QuestionInteger formatting in C# appending &quot;st&quot;, &quot;nd&quot;, rd&quot; or &quot;th&quot; to an int. Pin
tsramkumar6-Dec-05 5:08
tsramkumar6-Dec-05 5:08 
AnswerRe: Integer formatting in C# appending &amp;amp;quot;st&amp;amp;quot;, &amp;amp;quot;nd&amp;amp;quot;, rd&amp;amp;quot; or &amp;amp;quot;th&amp;amp;quot; to an int. Pin
J4amieC6-Dec-05 5:47
J4amieC6-Dec-05 5:47 
QuestionStatusbar Icon - Display Issue Pin
mcljava6-Dec-05 4:03
mcljava6-Dec-05 4:03 
AnswerRe: Statusbar Icon - Display Issue Pin
Pablo Hernandez Valdes6-Dec-05 8:31
Pablo Hernandez Valdes6-Dec-05 8:31 
Questionusing regex to find part of a string Pin
melanieab6-Dec-05 3:52
melanieab6-Dec-05 3:52 
AnswerRe: using regex to find part of a string Pin
S. Senthil Kumar6-Dec-05 4:37
S. Senthil Kumar6-Dec-05 4:37 

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.