
First of you need to go to setting>other in your blogger control panel and click on Export blog.
VB.NET, C#, Java, HTML, JQuery, Javascript, PHP, Software Reviews, Computer Tips and Tech News
<style type="text/css"> .refresh { -moz-box-shadow:inset 0px 1px 0px 0px #caefab; -webkit-box-shadow:inset 0px 1px 0px 0px #caefab; box-shadow:inset 0px 1px 0px 0px #caefab; background-color:#77d42a; -moz-border-radius:6px; -webkit-border-radius:6px; border-radius:6px; border:1px solid #268a16; display:inline-block; color:#306108; font-family:arial; font-size:15px; font-weight:bold; padding:6px 24px; text-decoration:none; text-shadow:1px 1px 0px #aade7c; }.refresh:hover { background-color:#5cb811; }.refresh:active { position:relative; top:1px; } h1 { font-family:Verdana, Arial, Helvetica, sans-serif; color:#000000; font-size:33pt } </style>After that we have a PHP function, add these codes after your css codes
<?php
function Generate() {
$var = "abcdefghijkmnopqrstuvwxyz0123456789";
srand((double)microtime()*1000000);
$i = 0;
$code = '' ;
while ($i <= 6) {
$num = rand() % 35;
$tmp = substr($var, $num, 1);
$code = $code . $tmp;
$i++;
}
return $code;
}
?>
Now finally let's call the function with these codes, just add these codes after the function(php)
<center>
<h1>
<?php
echo Generate();
?>
</h1>
<a href="index.php" class="refresh">Refresh</a>
</center>
private const int Total = 13; private String[] genre = new String[Total];Now coming to the function, we'll create a Function called LoadBookGenres(), and set set values to the arrays, adding to the listbox or combobox, by the way you can still go straightly without creating a new Function like you can set the values for the arrays, and load(sort) the array values to the listbox or the combobox in an event(ex:Form_Load).
private void LoadBookGenres() { //Assign value into Array genre[0] = "Adventure"; genre[1] = "Animals"; genre[2] = "Computers & Internet"; genre[3] = "Biography"; genre[4] = "Comics"; genre[5] = "Horror"; genre[6] = "Sports"; genre[7] = "Romance"; genre[8] = "Historical"; genre[9] = "Music"; genre[10] = "Religion"; genre[11] = "Mystery"; genre[12] = "Other"; //Sort array and fill listbox with the sorted array Array.Sort(genre); for (int i = 0; i < genre.Length; i++) { listBox1.Items.Add(genre[i]); } }NOTE : Change ListBox1 to your listbox name or your combobox name.
private void Form1_Load(object sender, EventArgs e) { LoadBookGenres(); }
using System; using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.Forms; class Round : Button { protected override void OnCreateControl() { using (var path = new GraphicsPath()) { path.AddEllipse(new Rectangle(2, 2, this.Width - 5, this.Height - 5)); this.Region = new Region(path); } base.OnCreateControl(); } }Just build the project or debug and look for a new tool in your toolbox
//if textbox1 text is admin and textbox2 text is 1234567 if ((textBox1.Text == "admin") && (textBox2.Text == "1234567")) { //then show form2 Form2 nextform = new Form2(); nextform.ShowDialog(); } else { //if username and password is incorrect show this message box MessageBox.Show("Username or Password Invalid"); }This is the code for button 2 which is a exit button
Application.Exit();Alright we are done ! I hope this is helpful !
Me.WebBrowser1.ScriptErrorsSuppressed = True'change WebBrowser1 to your webbrowser name' , here is the code for c#
this.webBrowser1.ScriptErrorsSuppressed = true;that's a snippet , thanks.
Place that javascript below head or between body tags then as you have settled your Welcome Bar , it will appear. Thanks For Reading .
public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World"); } }Thanks For Reading , Have A Great day .
public Form1() { InitializeComponent(); }The codes(kernel32)
[DllImport("kernel32")] static extern long SetVolumeLabelA(string lpRootName, string lpVolumeName);After that go to your button(rename) click codes and add these
long lab; lab = SetVolumeLabelA(textBox1.Text, textBox2.Text);Now test your project , if it didn't work for you please let me know by commenting on this post or else contact me via the contact page I hope explanations are not needed for this simple codes , Thank you.
[DllImport("wininet.dll")] private extern static bool InternetGetConnectedState(out int Description, int ReservedValue); bool IsConnectedToInternet() { bool a; int xs; a = InternetGetConnectedState(out xs, 0); return a; }What those lines of codes does is , it first adds the dll and then creates a function to use the API,So now to check the state of your internet connection let's use a if condition(;).
if (IsConnectedToInternet() == true) MessageBox.Show("Internet Is Working"); if (IsConnectedToInternet() == false) MessageBox.Show("Internet Is Not Working");Just add those lines for a event to check the internet . Thanks For Reading , Peace.
/**
* prism.js default theme for JavaScript, CSS and HTML
* Based on dabblet (http://dabblet.com)
* @author Lea Verou
*/
import java.awt.Rectangle;
import java.awt.Robot;
import java.awt.Toolkit;
import java.awt.image.BufferedImage;
import java.io.*;
import javax.imageio.*;
class Snap
{
public static void main(String args[]) throws Exception
{
Robot awt_robot = new Robot();
BufferedImage Entire_Screen = awt_robot.createScreenCapture(new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()));
ImageIO.write(Entire_Screen, "PNG", new File("Entire_Screen.png"));
}
}
import java.util.*;
/* Author : Mohamed Shimran
Blog : http://ultimateprogrammingtutorials.blogspot.com
*/
class Countries {
public static void main(String args[]) {
String[] cntry = Locale.getISOCountries();
for (String countryCode : cntry) {
Locale obj = new Locale("", countryCode);
System.out.println("Country Code = " + obj.getCountry()
+ ", Country Name = " + obj.getDisplayCountry());
}
}
}
NOTE: i was using public class but i had to remove it because my class thingy goes mad still it works actually public class is not needed.label1.Text = "X : "+e.X.ToString(); label2.Text = "Y : "+e.Y.ToString();
'creating our httpwebrequest target NOTE: you can use any websites that use to provide proxies directly Dim the_request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("http://proxy-ip-list.com") 'creating the httpwebresponce Dim the_response As System.Net.HttpWebResponse = the_request.GetResponse 'defining the stream reader to read the data from the httpwebresponse Dim stream_reader As System.IO.StreamReader = New System.IO.StreamReader(the_response.GetResponseStream()) 'defining a string to stream reader fisnished streaming Dim code As String = stream_reader.ReadToEnd 'haha here we use the regex Dim expression As New System.Text.RegularExpressions.Regex("[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}:[0-9]{1,4}") 'adding the proxies to the listbox Dim mtac As MatchCollection = expression.Matches(code) For Each itemcode As Match In mtac ListBox1.Items.Add(itemcode) NextAfter the first button we will see the second button which save.
If ListBox1.Items.Count = (0) Then MessageBox.Show("Please click grab to grab proxies and then try saving", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error) Else 'defining a streamwriter Dim S_W As IO.StreamWriter 'converting listbox items to string Dim itms() As String = {ListBox1.Items.ToString} ''defining a savefiledialog Dim save As New SaveFileDialog Dim it As Integer save.FileName = "Grabbed Proxies" save.Filter = "Grabbed Proxies (*.txt)|*.txt|ALL Files (*.*)|*.*" save.CheckPathExists = True save.ShowDialog(Me) S_W = New IO.StreamWriter(save.FileName) For it = 0 To ListBox1.Items.Count - 1 S_W.WriteLine(ListBox1.Items.Item(it)) Next S_W.Close() End IfAt last we need to add a line of code to clear the listbox which is
ListBox1.Items.Clear()