
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.