"Thanh-Nhan Le" <tn*******@yahoo.dewrote in message
news:e3**************@TK2MSFTNGP06.phx.gbl...
Is there any way to use the API function WritePrivateProfileString in NET
framework 2.0?
Yes - same as any other API function i.e. via p/invoke:
http://www.pinvoke.net/default.aspx/...ileString.html
[DllImport("kernel32.dll")]
static extern bool WritePrivateProfileString(string lpAppName, string
lpKeyName, string lpString, string lpFileName);
bool blnReturn = WritePrivateProfileString("AppName", "KeyName", "Value",
"FileName")
--
Mark Rae
ASP.NET MVP
http://www.markrae.net