Click here to Skip to main content
15,887,175 members
Home / Discussions / C#
   

C#

 
AnswerRe: Howto write text into a picturebox on runtime Pin
Christian Graus13-Jul-09 14:25
protectorChristian Graus13-Jul-09 14:25 
QuestionPathGradientBrush and irregular shapes Pin
JimLaVine13-Jul-09 10:54
JimLaVine13-Jul-09 10:54 
AnswerRe: PathGradientBrush and irregular shapes Pin
Christian Graus13-Jul-09 10:59
protectorChristian Graus13-Jul-09 10:59 
AnswerRe: PathGradientBrush and irregular shapes Pin
Luc Pattyn13-Jul-09 11:25
sitebuilderLuc Pattyn13-Jul-09 11:25 
AnswerRe: PathGradientBrush and irregular shapes Pin
Henry Minute13-Jul-09 12:02
Henry Minute13-Jul-09 12:02 
Questiongetting specific string error? [modified] Pin
maifs13-Jul-09 10:46
maifs13-Jul-09 10:46 
AnswerRe: getting specific string error? Pin
Luc Pattyn13-Jul-09 10:57
sitebuilderLuc Pattyn13-Jul-09 10:57 
AnswerRe: getting specific string error? Pin
Christian Graus13-Jul-09 10:57
protectorChristian Graus13-Jul-09 10:57 
Issues

1 - the code is a mess
2 - it won't work
3 - it's hard to read

Do you not know how to use the debugger ? The error message is telling you what is wrong, what is the issue ?

maifs wrote:
if (char.IsLetterOrDigit(str,count+1) && countComment==2)
{
strTemp2 += str.Substring(count+1).ToUpper();
}



Why do you use -1 AND +1 ? What if +1 is out of range ( wait, isn't that what the error message says ? )

This needs a lot of work. I'd read a C# book to learn some basics, then rewrite it using regex and the split method of the string class.

Christian Graus

Driven to the arms of OSX by Vista.

Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

QuestionGraphics.MeasureString accuracy Pin
tasoss13-Jul-09 10:16
tasoss13-Jul-09 10:16 
AnswerRe: Graphics.MeasureString accuracy Pin
Christian Graus13-Jul-09 10:39
protectorChristian Graus13-Jul-09 10:39 
GeneralRe: Graphics.MeasureString accuracy Pin
tasoss13-Jul-09 10:47
tasoss13-Jul-09 10:47 
GeneralRe: Graphics.MeasureString accuracy Pin
Christian Graus13-Jul-09 10:58
protectorChristian Graus13-Jul-09 10:58 
GeneralRe: Graphics.MeasureString accuracy Pin
tasoss13-Jul-09 11:58
tasoss13-Jul-09 11:58 
AnswerRe: Graphics.MeasureString accuracy Pin
Luc Pattyn13-Jul-09 10:46
sitebuilderLuc Pattyn13-Jul-09 10:46 
QuestionAccessing a mapped drive in windows service Pin
mark_me13-Jul-09 9:48
mark_me13-Jul-09 9:48 
AnswerRe: Accessing a mapped drive in windows service [modified] Pin
Paladin200013-Jul-09 10:22
Paladin200013-Jul-09 10:22 
GeneralRe: Accessing a mapped drive in windows service Pin
mark_me13-Jul-09 11:18
mark_me13-Jul-09 11:18 
GeneralRe: Accessing a mapped drive in windows service [modified] Pin
Paladin200014-Jul-09 9:10
Paladin200014-Jul-09 9:10 
AnswerRe: Accessing a mapped drive in windows service Pin
darkelv13-Jul-09 19:24
darkelv13-Jul-09 19:24 
GeneralRe: Accessing a mapped drive in windows service Pin
mark_me14-Jul-09 7:21
mark_me14-Jul-09 7:21 
QuestionOpenCV Project ? Pin
Mohammad Dayyan13-Jul-09 8:42
Mohammad Dayyan13-Jul-09 8:42 
AnswerRe: OpenCV Project ? Pin
Henry Minute13-Jul-09 8:46
Henry Minute13-Jul-09 8:46 
GeneralRe: OpenCV Project ? Pin
Mohammad Dayyan13-Jul-09 8:51
Mohammad Dayyan13-Jul-09 8:51 
GeneralRe: OpenCV Project ? Pin
Henry Minute13-Jul-09 9:01
Henry Minute13-Jul-09 9:01 
GeneralRe: OpenCV Project ? Pin
0x3c013-Jul-09 9:10
0x3c013-Jul-09 9:10 

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.