Click here to Skip to main content
15,915,509 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to get points inside polygon Pin
free_soul42414-Feb-08 0:37
free_soul42414-Feb-08 0:37 
GeneralRe: How to get points inside polygon Pin
Luc Pattyn14-Feb-08 0:48
sitebuilderLuc Pattyn14-Feb-08 0:48 
Generallabel issues Pin
Harvey Saayman13-Feb-08 20:10
Harvey Saayman13-Feb-08 20:10 
GeneralRe: label issues Pin
Christian Graus13-Feb-08 20:16
protectorChristian Graus13-Feb-08 20:16 
GeneralRe: label issues Pin
Harvey Saayman13-Feb-08 20:17
Harvey Saayman13-Feb-08 20:17 
GeneralRe: label issues Pin
Martin#13-Feb-08 20:34
Martin#13-Feb-08 20:34 
GeneralRe: label issues Pin
Harvey Saayman13-Feb-08 20:40
Harvey Saayman13-Feb-08 20:40 
GeneralRe: label issues Pin
Harvey Saayman13-Feb-08 21:13
Harvey Saayman13-Feb-08 21:13 
heres what i got

public partial class StatusBar : UserControl
{
        Graphics g = new Graphics();

        public void scrollText()
        {
            if (g.MeasureString(Message, lblMessage.Font) > lblMessage.Width)
            {
                //do scroll method
            }
            else
            {
                //do nothing
            }
        }
}


the errors i get is
1) The type 'System.Drawing.Graphics' has no constructors defined
2) Operator '>' cannot be applied to operands of type 'System.Drawing.SizeF' and 'int'

i get why 2) is wrong cuz g.MeasureString() returnes 'SizeF' and im trying to compare that with int. how ever i dont get why 1) moans?

any ideas on how to rectify this?

thanx

Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
think BIG and kick ASS

AnswerRe: label issues Pin
Martin#13-Feb-08 21:19
Martin#13-Feb-08 21:19 
GeneralRe: label issues Pin
Harvey Saayman13-Feb-08 21:53
Harvey Saayman13-Feb-08 21:53 
GeneralRe: label issues Pin
Martin#13-Feb-08 22:17
Martin#13-Feb-08 22:17 
GeneralError when using delegate.... ( Error in binding the target method)... Pin
peter rankel13-Feb-08 19:42
peter rankel13-Feb-08 19:42 
GeneralRe: Error when using delegate.... ( Error in binding the target method)... Pin
Christian Graus13-Feb-08 20:12
protectorChristian Graus13-Feb-08 20:12 
QuestionDateTime formatting in "dd-MMM-yyyy"? [modified] Pin
John Sundar13-Feb-08 18:18
John Sundar13-Feb-08 18:18 
GeneralRe: DateTime formatting in "dd-MMM-yyyy"? Pin
Steve Echols13-Feb-08 18:43
Steve Echols13-Feb-08 18:43 
GeneralRe: DateTime formatting in "dd-MMM-yyyy"? Pin
John Sundar13-Feb-08 18:57
John Sundar13-Feb-08 18:57 
GeneralRe: DateTime formatting in "dd-MMM-yyyy"? Pin
Steve Echols13-Feb-08 20:15
Steve Echols13-Feb-08 20:15 
GeneralRe: DateTime formatting in "dd-MMM-yyyy"? Pin
John Sundar13-Feb-08 20:25
John Sundar13-Feb-08 20:25 
GeneralRe: DateTime formatting in "dd-MMM-yyyy"? Pin
Steve Echols13-Feb-08 21:07
Steve Echols13-Feb-08 21:07 
GeneralRe: DateTime formatting in "dd-MMM-yyyy"? Pin
John Sundar13-Feb-08 21:52
John Sundar13-Feb-08 21:52 
GeneralRe: DateTime formatting in "dd-MMM-yyyy"? Pin
Steve Echols13-Feb-08 20:22
Steve Echols13-Feb-08 20:22 
GeneralRe: DateTime formatting in "dd-MMM-yyyy"? Pin
PIEBALDconsult14-Feb-08 13:19
mvePIEBALDconsult14-Feb-08 13:19 
GeneralIncluding MSSQL in a C# application for a client. Pin
AlainMesias13-Feb-08 15:51
AlainMesias13-Feb-08 15:51 
GeneralRe: Including MSSQL in a C# application for a client. Pin
Mark Churchill13-Feb-08 16:09
Mark Churchill13-Feb-08 16:09 
GeneralRe: Including MSSQL in a C# application for a client. Pin
Not Active13-Feb-08 16:15
mentorNot Active13-Feb-08 16:15 

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.