Click here to Skip to main content
15,887,961 members
Home / Discussions / C#
   

C#

 
GeneralRe: A C# IDE, apart from VS .NET ?? Pin
amit_mi13-May-05 3:04
amit_mi13-May-05 3:04 
AnswerRe: A C# IDE, apart from VS .NET ?? Pin
ChesterPoindexter13-May-05 3:31
professionalChesterPoindexter13-May-05 3:31 
AnswerRe: A C# IDE, apart from VS .NET ?? Pin
Uwe Keim13-May-05 9:51
sitebuilderUwe Keim13-May-05 9:51 
Generalglobal mouse hooks in .net Pin
G_Zola12-May-05 23:18
G_Zola12-May-05 23:18 
QuestionCan i hide another application? Pin
Anthony Mushrow12-May-05 22:54
professionalAnthony Mushrow12-May-05 22:54 
AnswerRe: Can i hide another application? Pin
eggie513-May-05 1:59
eggie513-May-05 1:59 
Generala pacman type game source code for c to compile on borland (bcc32) Pin
Member 195662712-May-05 22:45
Member 195662712-May-05 22:45 
GeneralRe: a pacman type game source code for c to compile on borland (bcc32) Pin
mav.northwind12-May-05 23:07
mav.northwind12-May-05 23:07 
GeneralRe: a pacman type game source code for c to compile on borland (bcc32) Pin
lgstef16-May-05 2:11
lgstef16-May-05 2:11 
GeneralRe: a pacman type game source code for c to compile on borland (bcc32) Pin
Michael P Butler12-May-05 23:13
Michael P Butler12-May-05 23:13 
QuestionHow to stop the output console from terminating, in Borland C# Builder ? Pin
sourav_bh12-May-05 21:21
sourav_bh12-May-05 21:21 
AnswerRe: How to stop the output console from terminating, in Borland C# Builder ? Pin
S. Senthil Kumar12-May-05 23:22
S. Senthil Kumar12-May-05 23:22 
GeneralRe: How to stop the output console from terminating, in Borland C# Builder ? Pin
sourav_bh13-May-05 0:10
sourav_bh13-May-05 0:10 
QuestionHow can I implement a ComboBox with ToolTip? Pin
welsrping12-May-05 20:12
welsrping12-May-05 20:12 
AnswerRe: How can I implement a ComboBox with ToolTip? Pin
pubududilena13-May-05 0:00
pubududilena13-May-05 0:00 
GeneralTristate Checkbox Pin
skrishnasarma12-May-05 18:59
skrishnasarma12-May-05 18:59 
GeneralRe: Tristate Checkbox Pin
pubududilena12-May-05 19:12
pubududilena12-May-05 19:12 
GeneralRe: Tristate Checkbox Pin
mav.northwind12-May-05 22:58
mav.northwind12-May-05 22:58 
QuestionHow to convert C# Application exe to C# code again? Pin
pubududilena12-May-05 17:12
pubududilena12-May-05 17:12 
AnswerRe: How to convert C# Application exe to C# code again? Pin
Judah Gabriel Himango12-May-05 18:45
sponsorJudah Gabriel Himango12-May-05 18:45 
GeneralRe: How to convert C# Application exe to C# code again? Pin
Priyank Bolia13-May-05 2:37
Priyank Bolia13-May-05 2:37 
GeneralRe: How to convert C# Application exe to C# code again? Pin
Dave Kreskowiak13-May-05 2:52
mveDave Kreskowiak13-May-05 2:52 
Questionhow to encode string in serialization Pin
Green Fuze12-May-05 14:36
Green Fuze12-May-05 14:36 
AnswerRe: how to encode string in serialization Pin
Stefan Prodan12-May-05 20:11
Stefan Prodan12-May-05 20:11 
Well here it is a function that i use to encode strings in XML files:
/// <summary><br />
/// Convert To Base64<br />
/// </summary><br />
/// <param name="text">clean text</param><br />
/// <param name="type">1(Unicode) 2(ASCII) 3(UTF7) 4(UTF8)</param><br />
/// <returns>Base64 string</returns><br />
public static string ToB64(string text, Int16 type)<br />
{<br />
        string rez = null;<br />
        switch (type)<br />
	{<br />
		case 1: //Unicode<br />
		rez = Convert.ToBase64String(Encoding.Unicode.GetBytes(text));<br />
		break;<br />
		case 2: //ASCII<br />
		rez = Convert.ToBase64String(Encoding.ASCII.GetBytes(text));<br />
		break;<br />
		ase 3: //UTF7<br />
		rez = Convert.ToBase64String(Encoding.UTF7.GetBytes(text));<br />
		break;<br />
		case 4: //UTF8<br />
		rez = Convert.ToBase64String(Encoding.UTF8.GetBytes(text));<br />
		break;<br />
	}<br />
	eturn rez;<br />
}

and to decode:
/// <summary><br />
/// Convert From Base64<br />
/// </summary><br />
/// <param name="text">encrypted text</param><br />
/// <param name="type">1(Unicode) 2(ASCII) 3(UTF7) 4(UTF8)</param><br />
/// <returns>clean text</returns><br />
public static string FromB64(string text, Int16 type)<br />
{<br />
	string rez = null;<br />
	switch (type)<br />
	{<br />
	case 1: //Unicode<br />
	rez = Encoding.Unicode.GetString(Convert.FromBase64String(text));<br />
	break;<br />
	case 2: //ASCII<br />
	rez = Encoding.ASCII.GetString(Convert.FromBase64String(text));<br />
	break;<br />
	case 3: //UTF7<br />
	rez = Encoding.UTF7.GetString(Convert.FromBase64String(text));<br />
	break;<br />
	case 4: //UTF8<br />
	rez = Encoding.UTF8.GetString(Convert.FromBase64String(text));<br />
	break;<br />
	}<br />
	return rez;<br />
}

AnswerRe: how to encode string in serialization Pin
StealthyMark13-May-05 4:38
StealthyMark13-May-05 4:38 

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.