Click here to Skip to main content
15,919,931 members
Home / Discussions / C#
   

C#

 
GeneralRe: String Reversal plus character replacement Pin
pmarfleet25-Jan-08 12:25
pmarfleet25-Jan-08 12:25 
GeneralRe: String Reversal plus character replacement Pin
PIEBALDconsult25-Jan-08 13:21
mvePIEBALDconsult25-Jan-08 13:21 
GeneralRe: String Reversal plus character replacement Pin
BREdwards25-Jan-08 17:31
BREdwards25-Jan-08 17:31 
GeneralRe: String Reversal plus character replacement Pin
DaveyM6925-Jan-08 22:00
professionalDaveyM6925-Jan-08 22:00 
GeneralRe: String Reversal plus character replacement Pin
DaveyM6925-Jan-08 22:40
professionalDaveyM6925-Jan-08 22:40 
GeneralRe: String Reversal plus character replacement Pin
BREdwards26-Jan-08 17:42
BREdwards26-Jan-08 17:42 
QuestionOval buttons and using transparency Pin
MikeWeber25-Jan-08 10:55
MikeWeber25-Jan-08 10:55 
GeneralRe: Oval buttons and using transparency Pin
DaveyM6925-Jan-08 12:52
professionalDaveyM6925-Jan-08 12:52 
This code came from here[^]. It needs a little work in the OnPaint as it doesn't display the text but it might help get you started...?
using System;
using System.Drawing;
using System.Windows.Forms;

namespace CustomButtons
{
    public class MyButton : Button
    {
        protected override void OnPaint(PaintEventArgs e)
        {

            Rectangle rect = new Rectangle(new Point(0, 0),

                        new Size(this.Width, this.Height));

            System.Drawing.Drawing2D.GraphicsPath myPath = new

            System.Drawing.Drawing2D.GraphicsPath(System.Drawing.Drawing2D.FillMode.Winding);

            myPath.AddEllipse(rect);

            Region myRegion = new Region(myPath);

            this.Region = myRegion;

            using (System.Drawing.Drawing2D.LinearGradientBrush brush =

                    new System.Drawing.Drawing2D.LinearGradientBrush(rect, Color.CornflowerBlue, Color.White, 45))
            {

                e.Graphics.FillEllipse(brush, 0, 0, this.Width, this.Height);

            }

        }

    }
}

GeneralRe: Oval buttons and using transparency Pin
mav.northwind25-Jan-08 21:55
mav.northwind25-Jan-08 21:55 
QuestionCan I raise an event for a class rather than an object? Pin
Clive D. Pottinger25-Jan-08 7:42
Clive D. Pottinger25-Jan-08 7:42 
GeneralRe: Can I raise an event for a class rather than an object? Pin
Ed.Poore25-Jan-08 7:45
Ed.Poore25-Jan-08 7:45 
GeneralRe: Can I raise an event for a class rather than an object? Pin
Clive D. Pottinger25-Jan-08 10:19
Clive D. Pottinger25-Jan-08 10:19 
GeneralRe: Can I raise an event for a class rather than an object? Pin
Ed.Poore25-Jan-08 12:18
Ed.Poore25-Jan-08 12:18 
AnswerRe: Can I raise an event for a class rather than an object? Pin
BoneSoft25-Jan-08 8:16
BoneSoft25-Jan-08 8:16 
GeneralRe: Can I raise an event for a class rather than an object? Pin
Clive D. Pottinger25-Jan-08 10:50
Clive D. Pottinger25-Jan-08 10:50 
GeneralRe: Can I raise an event for a class rather than an object? Pin
BoneSoft25-Jan-08 12:12
BoneSoft25-Jan-08 12:12 
GeneralRe: Can I raise an event for a class rather than an object? Pin
Clive D. Pottinger1-Apr-08 11:13
Clive D. Pottinger1-Apr-08 11:13 
GeneralRe: Can I raise an event for a class rather than an object? Pin
BoneSoft1-Apr-08 13:06
BoneSoft1-Apr-08 13:06 
GeneralRe: Can I raise an event for a class rather than an object? Pin
Ennis Ray Lynch, Jr.25-Jan-08 8:20
Ennis Ray Lynch, Jr.25-Jan-08 8:20 
GeneralRe: Can I raise an event for a class rather than an object? Pin
led mike25-Jan-08 8:27
led mike25-Jan-08 8:27 
QuestionWhats the correct way to populate the DataSource in SubReports? [modified] Pin
DeepToot25-Jan-08 7:31
DeepToot25-Jan-08 7:31 
QuestionDeploy a web service Pin
usermans25-Jan-08 6:13
usermans25-Jan-08 6:13 
GeneralRe: Deploy a web service Pin
led mike25-Jan-08 6:48
led mike25-Jan-08 6:48 
Generalimage transparent Pin
netJP12L25-Jan-08 5:34
netJP12L25-Jan-08 5:34 
GeneralRe: image transparent Pin
Ennis Ray Lynch, Jr.25-Jan-08 6:25
Ennis Ray Lynch, Jr.25-Jan-08 6:25 

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.