| variables | Dim → type declaration | Dim x As Integer → int x; |
| control_flow | If/Select Case → if/switch | Select Case → switch |
| loops | For/Do/For Each → for/while/foreach | For Each → foreach |
| functions | Sub/Function → methods | ByRef → ref, Optional → default params |
| arrays | 1-based → 0-based arrays | Dim arr(1 To 5) → int[] arr = new int[5] |
| strings | VB6 string funcs → C# methods | UCase/Trim/Len → ToUpper/Trim/Length |
| file_io | Open/Close → StreamReader/Writer | FreeFile → using statement |
| error_handling | On Error → try/catch | On Error GoTo → try { } catch |
| gui_events | Event subs → event handlers | cmd_Click() → cmd_Click(object, EventArgs) |
| gui_controls | VB6 controls → WinForms | ComboBox.AddItem → Items.Add |
| form_designer | .frm code → C# InitializeComponent | VB6 form layout → C# programmatic UI |
| database | ADO → SqlClient | ADODB.Connection → SqlConnection |
| api_calls | Declare → DllImport | Declare Function → [DllImport] |
| classes | VB6 class → C# class | Property Get/Let → C# properties |
| structs | Type → struct | Public Type → public struct |
| collections | Collection → Dictionary | Scripting.Dictionary → Dictionary<K,V> |
| regex | Like → Regex | Like "[A-Z]###" → Regex.IsMatch |
| enums | VB6 Enum → C# enum | Direct mapping with values |
| events | RaiseEvent → event invocation | RaiseEvent → ?.Invoke |
| interfaces | Implements → : interface | Implements INotifyPropertyChanged → : INotifyPropertyChanged |
| modules | Module-level → static class | Public Const → public const |
| dialogs | MsgBox/InputBox → MessageBox | vbModal → ShowDialog() |
| async | DoEvents → async/await | DoEvents → Application.DoEvents() / await |
| datetime | Date functions → DateTime | Now/DateAdd/DateDiff → DateTime.Now/AddDays |
| math | Rnd → Random | Rnd → Random.Next |
| formatting | Format → ToString | FormatCurrency → .ToString("C2") |
| conversions | CStr/CInt → Convert | CStr/CInt/CDate → Convert.ToString/Int32/DateTime |
| type_checks | IsNumeric → TryParse | IsNumeric → int.TryParse |
| operators | IIf → ternary | IIf(condition, a, b) → condition ? a : b |
| networking | Winsock → TcpClient | Winsock → TcpClient/NetworkStream |
| com_interop | CreateObject → Activator | CreateObject("Word.Application") → Activator.CreateInstance |
| printing | Printer → PrintDocument | Printer.Print → e.Graphics.DrawString |
| graphics | LoadPicture → Image.FromFile | Direct mapping |
| system | SendKeys → SendKeys.SendWait | Direct mapping |
| application | App.Path → Assembly | App.Path → Application.ExecutablePath |
| entry_point | Sub Main → static void Main | With [STAThread] attribute |
| null_checks | IsNull/Nothing → null/DBNull | Is Nothing → == null |
| access_modifiers | Friend → internal | Friend → internal |