Guest User

Untitled

a guest
Jan 17th, 2012
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.51 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. using System.IO;
  10. using System.Net;
  11.  
  12.  
  13. namespace Projekt_Jet
  14. {
  15.  
  16.     public partial class Form1 : Form
  17.     {
  18.        
  19.         public Form1()
  20.         {
  21.             InitializeComponent();
  22.            
  23.         }
  24.  
  25.         public void button1_Click(object sender, EventArgs e)
  26.         {
  27.             CheckWhichOne();
  28.         }
  29.  
  30.  
  31.         public void CheckWhichOne()
  32.         {
  33.  
  34.             if (Blog.Text == "beeplog")
  35.             {
  36.                 beeplog_blog();
  37.             }
  38.             else if (Blog.Text == "wordpress")
  39.             {
  40.              
  41.             }
  42.             else if (Blog.Text == "tumblr")
  43.             {
  44.                
  45.             }
  46.             else
  47.             MessageBox.Show("Kein Blog zur Registerung ausgewählt");
  48.         }
  49.  
  50.         private void Blog_SelectedIndexChanged(object sender, EventArgs e)
  51.         {
  52.         }
  53.  
  54.         public string Blogname1
  55.         {
  56.             get { return Blogname.Text; }
  57.             set { Blogname.Text = value; }
  58.         }
  59.  
  60.         public void beeplog_blog()
  61.         {
  62.             webBrowser1.Navigate("http://www.beeplog.de/");
  63.             webBrowser1.Document.GetElementById("username").SetAttribute("value", Blogname.Text);
  64.             webBrowser1.Document.GetElementById("password").SetAttribute("value", Password.Text);
  65.         }
  66.  
  67.  
  68.     }
  69. }
Advertisement
Add Comment
Please, Sign In to add comment