15,887,083 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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;
}
Naeem Shah
28-Jan-21 7:50am
View
updated my answer and thanks for your good sugesstion
Show More