ZerG
Welcome to the Official Lineage2 ZerG Forum!
Latest topics
» Anyone!
Mon Jul 10, 2017 6:31 pm by Giovanni Anale

» dragon-network.net
Fri Dec 16, 2016 5:18 am by MaLijaa

» Hunting old Videos
Sat Nov 05, 2016 2:00 pm by DarkStorm

» Daily Video
Wed Oct 26, 2016 10:27 pm by TyLeR

» Video funny Only for Ro
Wed Mar 02, 2016 9:22 pm by Ion

» L2 Azure
Tue Feb 16, 2016 4:21 am by BrainDamage

» Hai
Thu Nov 26, 2015 4:14 pm by M3phy

» Server for some fun
Thu Nov 26, 2015 4:04 pm by BrainDamage

» L2Classic
Fri Nov 13, 2015 8:20 am by TyLeR

Who is online?
In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest

None

[ View the whole list ]


Most users ever online was 57 on Sat Apr 27, 2013 7:30 pm
Gallery


Panic! At The Disco: Death Of A Bachelor

...

View previous topic View next topic Go down

...

Post  Behemoth on Tue Dec 27, 2011 11:56 am

dont delete this spam pls i have exam programing and i will write the programs here so i can read them on the exam


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 WindowsFormsApplication3
{
public partial class Form1 : Form
{
int xm, xk;
public Form1()
{
xm = 400;
xk = 140;
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
Graphics p = CreateGraphics();
SolidBrush boja = new SolidBrush(Color.Black);
SolidBrush boja1 = new SolidBrush(Color.Orange);
p.FillRectangle(boja, 20, 60, 120, 40);
p.FillRectangle(boja, 20, 90, 35, 50);
p.FillRectangle(boja, 60, 100, 6, 15);
p.FillEllipse(boja1, xm, 20, 10, 150);
}

private void button2_Click(object sender, EventArgs e)
{

timer1.Enabled = true;

}

private void timer1_Tick(object sender, EventArgs e)
{


Rectangle Clearkursum = new Rectangle(xk, 65, 20, 10);
Graphics kursum;
kursum = CreateGraphics();
Invalidate(Clearkursum);
xk += 5;
SolidBrush boja3 = new SolidBrush(Color.Silver);
kursum.FillEllipse(boja3, xk, 65, 20, 10);

if (xk == xm + 20)
{

timer1.Enabled = false;
}

}

private void Form1_Load(object sender, EventArgs e)
{

}


}
}
avatar
Behemoth

Age : 25
Location : Macedonia
Number of posts : 118

Back to top Go down

Re: ...

Post  Behemoth on Tue Dec 27, 2011 11:57 am

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;
using System.IO;
namespace Izbroi_Bukvi_A
{
public partial class Form1 : Form
{
string ImeNaDat=null;
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
string SodrzinaNaDat = null;
int Counter = 0;
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
ImeNaDat = openFileDialog1.FileName;
SodrzinaNaDat = File.ReadAllText(ImeNaDat);
for (int i = 0; i < SodrzinaNaDat.Length; i++)
{
if (SodrzinaNaDat.Substring(i, 1) == textBox1.Text) Counter++;
}
MessageBox.Show(Counter.ToString());
}
}
}
}


-------> Baraj Bukva
avatar
Behemoth

Age : 25
Location : Macedonia
Number of posts : 118

Back to top Go down

Re: ...

Post  Behemoth on Tue Dec 27, 2011 11:58 am

chesma..


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 Чешма
{
public partial class Form1 : Form
{
private int yy = 53;
private int ss = 10;
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
timer1.Enabled = !(timer1.Enabled);
if (button1.Text == "почни") button1.Text = "запри"; else button1.
";
}
private void timer1_Tick(object sender, EventArgs e)
{
Rectangle ClearKapka = new Rectangle(95, yy, 7, 7);
Graphics Kapka, Bara;
Kapka = CreateGraphics();
Invalidate(ClearKapka);
yy += 5;
Kapka.DrawEllipse(Pens.Blue, 95, yy, 5, 7);
if (yy > 125)
{
Bara = CreateGraphics();
Bara.FillEllipse(Brushes.Blue, (int)(95 - ss / 2), 130, ss+
ss += 1;
yy = 53;
}
}
private void Form1_Click(object sender, EventArgs e)
{
Graphics Chesma = null;
Chesma = CreateGraphics();
Chesma.Clear(SystemColors.Control);
Chesma.FillRectangle(Brushes.Black, 20, 20, 80, 20);
Chesma.FillRectangle(Brushes.Black, 20, 40, 20, 100);
Chesma.FillRectangle(Brushes.Black, 90, 40, 10, 10);
Chesma.Dispose();
}
private void Form1_Load(object sender, EventArgs e)
{
}
}
}
avatar
Behemoth

Age : 25
Location : Macedonia
Number of posts : 118

Back to top Go down

Re: ...

Post  Behemoth on Tue Dec 27, 2011 12:02 pm

Clock..........

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 button1_Click(object sender, EventArgs e)
{
ctlClock1.ClockBackColor = Color.RoyalBlue;
ctlClock1.ClockForeColor = Color.SandyBrown;
}

private void button2_Click(object sender, EventArgs e)
{
ctlClock2.ClockBackColor = Color.Pink;
ctlClock2.ClockForeColor = Color.Yellow;
}

private void Form1_Load(object sender, EventArgs e)
{

}
}
}
avatar
Behemoth

Age : 25
Location : Macedonia
Number of posts : 118

Back to top Go down

Re: ...

Post  Behemoth on Tue Dec 27, 2011 12:04 pm

4. (датотеки) Да се прочита текстуална датототека и нејзината содржина да се прикаже во Text box.

private void btnCitaj_Click()
{
openFileDialog1.Filter = “Text Files | *.txt”;
if(openFileDialog1.ShowDialog() = = DialogResult.OK)
{
FileStream FS = openFileDialog1.OpenFile();
StreamReader SR = new StreamReader (FS);
txtBox1.Text = SR.ReadToEnd();
SR.Close();
FS.Close();
}
}

5. (датотеки) За даден фолдер – да се испечати листа на потфолдери кои ги содржи.

private void btnLista_Click()
{
string[] sa;
string str1;
sa=Directory.GetDirectories(@”C:\Moj”);
str1 = “”;
foreach(string s in sa)
{
str1=str1+s+”\n”;
}
MessageBox.Show(str1);
}
avatar
Behemoth

Age : 25
Location : Macedonia
Number of posts : 118

Back to top Go down

Re: ...

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum