In Vb.Net and VB 6 we already have seen how to create this function and now we are goint to see some methods in C sharp.
Code snippet:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
listBox1.Items.Add(”Item1“);
listBox1.Items.Add(”Item2“);
listBox1.Items.Add(”Item3“);
listBox1.Items.Add(”Item4“);
listBox1.Items.Add(”Item5“);
listBox1.Items.Add(”Item6“);
listBox1.Items.Add(”Item7“);
}
private void button1_Click(object sender, EventArgs e)
{
for (int i = [...]

H_acktivis_T



