Olah Direktori di C#

Desain Form




Source Code
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Olah_Directori
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (Directory.Exists(“c:\\COBA”))
{
MessageBox.Show(“Directory Exist “);
}
else
{
Directory.CreateDirectory(“c:\\COBA\\COBA LAGI”);
MessageBox.Show(“Directory created ! “);
}
}
private void button2_Click(object sender, EventArgs e)
{
Directory.Move(“c:\\COBA\\COBA LAGI”, “c:\\PINDAH COBA\\UJI COBA”);
MessageBox.Show(“Directori moved “);
}
private void button3_Click(object sender, EventArgs e)
{
Directory.Delete(“c:\\PINDAH COBA”,true);
MessageBox.Show(“Direcoti deleted “);
}
}
}

Tidak ada komentar:

Posting Komentar

Profile Page Screen - Flutter UI

Profile Page Berikut ini adalah contoh  source code untuk Design Profile Page menggunakan flutter,  sebelumnya jangan lupa untuk membua...