Click here to Skip to main content
15,887,083 members

Comments by Naeem Shah (Top 6 by date)

Naeem Shah 29-Mar-21 6:39am View    
when u choose ARGB Color from ColorDialog it will return colorName like this
Color [A=255, R=128, G=0, B=255] same issue i faced that's why i created my own method to convert argb int number into array
Naeem Shah 29-Mar-21 6:36am View    
please look at question in question string is "Color [A=255, R=128, G=0, B=255]"
and you testing on this string "[A=255, R=15, G=0, B=255]" definetly it will give u exception
Thanks
Naeem Shah 20-Feb-21 8:23am View    
i accepted thanks for your kind answer
Naeem Shah 20-Feb-21 7:05am View    
i never tried your answer but still up vote for your and thanks for your kind help
Naeem Shah 20-Feb-21 6:56am View    
i am accepting your answer but update your loop because your approach almost correct but need some changes in loop and thanks for sharing this its help me to achieve my goal
for (int i = ndx - 1; i < str.Length; i--)
{
ndx = ndx - 1;
// left for you to write
// if the character at ndx is white-space then ???
if (char.IsWhiteSpace(str[i]))
{
return str.Insert(ndx, nlstr);
}
//ndx = i;
}