Click here to Skip to main content
15,907,687 members
Home / Discussions / C#
   

C#

 
GeneralRe: VB6 (eek!) to VB.net to C#????? Pin
Christian Graus20-Jul-05 15:53
protectorChristian Graus20-Jul-05 15:53 
GeneralRe: VB6 (eek!) to VB.net to C#????? Pin
WetRivrRat20-Jul-05 17:25
WetRivrRat20-Jul-05 17:25 
GeneralRe: VB6 (eek!) to VB.net to C#????? Pin
Christian Graus20-Jul-05 17:38
protectorChristian Graus20-Jul-05 17:38 
GeneralRe: VB6 (eek!) to VB.net to C#????? Pin
WetRivrRat20-Jul-05 17:42
WetRivrRat20-Jul-05 17:42 
GeneralRe: VB6 (eek!) to VB.net to C#????? Pin
Christian Graus20-Jul-05 17:47
protectorChristian Graus20-Jul-05 17:47 
GeneralRe: VB6 (eek!) to VB.net to C#????? Pin
WetRivrRat20-Jul-05 18:01
WetRivrRat20-Jul-05 18:01 
GeneralRe: VB6 (eek!) to VB.net to C#????? Pin
Christian Graus20-Jul-05 18:09
protectorChristian Graus20-Jul-05 18:09 
AnswerRe: VB6 (eek!) to VB.net to C#????? Pin
Dave Doknjas20-Jul-05 16:13
Dave Doknjas20-Jul-05 16:13 
You might find the following, produced with our Instant C# VB.NET to C# converter, more useful (you can download a free limited version at www.instantvb.com):

//TODO: INSTANT C# TODO TASK: Insert the following converted event handlers at the end of the 'InitializeComponent' method for forms or into a constructor for other classes:
base.Load += new System.EventHandler(Form1_Load);

private string Crypt(string Text_Renamed, string Key)
{
int KeyLen = 0;
int i = 0;
int KeyPtr = 0;
short KeyChr = 0;
short TextChr = 0;
KeyLen = Key.Length;
//INSTANT C# NOTE: The ending condition of VB 'For' loops is tested only on entry to the loop. Instant C# has created a temporary variable in order to use the initial value of Len(Text_Renamed) for every iteration:
int tempFor1 = Text_Renamed.Length;
for (i = 1; i <= tempFor1; i++)
{
TextChr = System.Convert.ToInt32(Text_Renamed[0]);
KeyChr = System.Convert.ToInt32(Key[0]);
Text_Renamed = Text_Renamed.Remove(i - 1, 1).Insert(i - 1, ((char)(TextChr ^ KeyChr)).ToString());
KeyPtr = ((KeyPtr + 1) % KeyLen);
}
return Text_Renamed;
}
private void Form1_Load(object eventSender, System.EventArgs eventArgs)
{
txtText.Text = System.Convert.ToString(System.DateTime.Now);
txtPath.Text = Support.GetPath + "\\DateTest.bin";
}


David Anton
Tangible Software Solutions
www.tangiblesoftwaresolutions.com
Home of:
Instant C#: VB.NET to C# Converter
Instant VB: C# to VB.NET Converter
Instant J#: VB.NET to J# Converter
GeneralRe: VB6 (eek!) to VB.net to C#????? Pin
Christian Graus20-Jul-05 17:41
protectorChristian Graus20-Jul-05 17:41 
GeneralRe: VB6 (eek!) to VB.net to C#????? Pin
Dave Doknjas20-Jul-05 19:24
Dave Doknjas20-Jul-05 19:24 
GeneralRe: VB6 (eek!) to VB.net to C#????? Pin
Christian Graus21-Jul-05 13:20
protectorChristian Graus21-Jul-05 13:20 
GeneralPrinting window form Pin
quangmogulasia20-Jul-05 12:57
quangmogulasia20-Jul-05 12:57 
GeneralFocus Pin
nc3b20-Jul-05 12:39
nc3b20-Jul-05 12:39 
GeneralRe: Focus Pin
Mark Greenwood20-Jul-05 18:07
Mark Greenwood20-Jul-05 18:07 
GeneralRe: Focus Pin
nc3b21-Jul-05 0:01
nc3b21-Jul-05 0:01 
GeneralRe: Focus Pin
nc3b21-Jul-05 1:15
nc3b21-Jul-05 1:15 
GeneralRe: Focus Pin
[Marc]21-Jul-05 16:10
[Marc]21-Jul-05 16:10 
GeneralRe: Focus Pin
nc3b21-Jul-05 21:21
nc3b21-Jul-05 21:21 
GeneralRe: Focus Pin
[Marc]22-Jul-05 9:29
[Marc]22-Jul-05 9:29 
QuestionHow can i find the DataRow number in DataRowCollection Pin
m.rastgar20-Jul-05 12:30
m.rastgar20-Jul-05 12:30 
GeneralTransparent Overlapping Panels Problem... Pin
rcurrie20-Jul-05 12:25
rcurrie20-Jul-05 12:25 
GeneralRe: Transparent Overlapping Panels Problem... Pin
[Marc]20-Jul-05 16:12
[Marc]20-Jul-05 16:12 
GeneralRe: Transparent Overlapping Panels Problem... Pin
rcurrie21-Jul-05 6:35
rcurrie21-Jul-05 6:35 
GeneralRe: Transparent Overlapping Panels Problem... Pin
rcurrie21-Jul-05 12:46
rcurrie21-Jul-05 12:46 
GeneralRe: Transparent Overlapping Panels Problem... Pin
[Marc]21-Jul-05 15:56
[Marc]21-Jul-05 15:56 

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.