what wrong with the code above ??? it doesnt load the picture !!!!Code:strText = String.Replace(strText, "[IMG", "<img src=", false); strText = String.Replace(strText, "[/IMG]", "", false); strText = String.Replace(strText, "]", ">", false);
Professional Software Development Tools
what wrong with the code above ??? it doesnt load the picture !!!!Code:strText = String.Replace(strText, "[IMG", "<img src=", false); strText = String.Replace(strText, "[/IMG]", "", false); strText = String.Replace(strText, "]", ">", false);
the tags look ok
are you allowing your app to get through your firewall ?
Open your eyes to Narcissism, Don't let her destroy your life!!
have a look error1 and error2...
error1 : trying to load the picture
error2 : couldnt load the picture
and i am using that code
strText = String.Replace(strText, "[IMG]", "<img src=", false);
strText = String.Replace(strText, "[/IMG]", "", false);
strText = String.Replace(strText, "]", ">", false);
TextFile.WriteFromString("C:\\temp_preview.html"," <HTML>"..strText.."</HTML>",false);-- write the html file
File.OpenURL("C:\\temp_preview.html", SW_SHOWNORMAL);-- show the preview
Last edited by GoOgLe; 03-27-2007 at 12:08 AM.
any help please !!!!!![]()
ok i said the tags look ok i was wrong
strText = String.Replace(strText, "[/IMG]", "", false);
should be
strText = String.Replace(strText, "[/IMG]", ">", false);
you are replacing the tag with nothing
Open your eyes to Narcissism, Don't let her destroy your life!!
thanks alot alot alot Rizlauk
i have another question ;
how can i keep the text selected after i add the code so i can add more code without selecting again ???
iv already given you the code to do that, but you chose not to use it
download my bbcoder app and use it to add some tags, see how it works
this is the code template you will need to have the same effect
http://www.indigorose.com/forums/sho...4&postcount=11
Open your eyes to Narcissism, Don't let her destroy your life!!
i have downloaded it Rizlauk much better looking than i sent u...
i used ur code now and it worked...
thanks alot