Click here to Skip to main content
16,005,826 members
Home / Discussions / C#
   

C#

 
GeneralRe: Way to retain focus of transparent form application. Pin
parth_patel19-Jun-09 12:24
parth_patel19-Jun-09 12:24 
QuestionConfigurationManager - how to read/write into a custom section? Pin
Zeokat19-Jun-09 7:27
Zeokat19-Jun-09 7:27 
AnswerRe: ConfigurationManager - how to read/write into a custom section? Pin
Manas Bhardwaj19-Jun-09 9:37
professionalManas Bhardwaj19-Jun-09 9:37 
GeneralRe: ConfigurationManager - how to read/write into a custom section? Pin
Zeokat19-Jun-09 9:48
Zeokat19-Jun-09 9:48 
AnswerRe: ConfigurationManager - how to read/write into a custom section? Pin
Henry Minute19-Jun-09 10:18
Henry Minute19-Jun-09 10:18 
GeneralRe: ConfigurationManager - how to read/write into a custom section? Pin
Zeokat19-Jun-09 10:34
Zeokat19-Jun-09 10:34 
QuestionReplace Function Pin
Vimalsoft(Pty) Ltd19-Jun-09 7:01
professionalVimalsoft(Pty) Ltd19-Jun-09 7:01 
AnswerRe: Replace Function Pin
musefan19-Jun-09 7:14
musefan19-Jun-09 7:14 
string username = "user1";
string password = "pass1";

string body = "something with a (username) and a (password)";

body = body.Replace("(username)", username);
body = body.Replace("(password)", password);


you saying that does not work?

you can also do...

string body = "something with a " + username + " and a " + password;


or...

string body = string.Format("something with a {0} and a {1}", username, password);



...I think your regex could have something to do with the brackets which are used in regular expression to specify a group, but I'm not sure about that

Life goes very fast. Tomorrow, today is already yesterday.

GeneralRe: Replace Function Pin
Vimalsoft(Pty) Ltd19-Jun-09 7:23
professionalVimalsoft(Pty) Ltd19-Jun-09 7:23 
GeneralRe: Replace Function Pin
Luc Pattyn19-Jun-09 7:34
sitebuilderLuc Pattyn19-Jun-09 7:34 
AnswerRe: Replace Function Pin
Luc Pattyn19-Jun-09 7:33
sitebuilderLuc Pattyn19-Jun-09 7:33 
GeneralRe: Replace Function Pin
Vimalsoft(Pty) Ltd19-Jun-09 7:36
professionalVimalsoft(Pty) Ltd19-Jun-09 7:36 
GeneralRe: Replace Function Pin
musefan19-Jun-09 7:38
musefan19-Jun-09 7:38 
GeneralRe: Replace Function Pin
Vimalsoft(Pty) Ltd19-Jun-09 7:39
professionalVimalsoft(Pty) Ltd19-Jun-09 7:39 
GeneralRe: Replace Function Pin
Luc Pattyn19-Jun-09 7:43
sitebuilderLuc Pattyn19-Jun-09 7:43 
GeneralRe: Replace Function Pin
Vimalsoft(Pty) Ltd19-Jun-09 7:48
professionalVimalsoft(Pty) Ltd19-Jun-09 7:48 
GeneralRe: Replace Function Pin
musefan19-Jun-09 7:37
musefan19-Jun-09 7:37 
GeneralRe: Replace Function Pin
Luc Pattyn19-Jun-09 7:45
sitebuilderLuc Pattyn19-Jun-09 7:45 
GeneralRe: Replace Function Pin
musefan19-Jun-09 7:51
musefan19-Jun-09 7:51 
GeneralRe: Replace Function Pin
Luc Pattyn19-Jun-09 7:57
sitebuilderLuc Pattyn19-Jun-09 7:57 
Questiondirect access to file memory Pin
sahandshokri19-Jun-09 5:52
sahandshokri19-Jun-09 5:52 
AnswerRe: direct access to file memory Pin
0x3c019-Jun-09 6:00
0x3c019-Jun-09 6:00 
AnswerRe: direct access to file memory Pin
Dave Kreskowiak19-Jun-09 10:38
mveDave Kreskowiak19-Jun-09 10:38 
GeneralRe: direct access to file memory Pin
Mark Brend9-Aug-09 3:33
Mark Brend9-Aug-09 3:33 
GeneralRe: direct access to file memory Pin
Dave Kreskowiak9-Aug-09 4:01
mveDave Kreskowiak9-Aug-09 4:01 

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.