Advertisement
tima18

Untitled

Jun 10th, 2020
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.27 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.IO;
  7. using System.Linq;
  8. using System.Net;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. using System.Windows.Forms;
  12. using MetroFramework;
  13.  
  14.  
  15. namespace PyCharm
  16. {
  17.     public partial class Form2 : MetroFramework.Forms.MetroForm
  18.     {
  19.         public Form2()
  20.         {
  21.             InitializeComponent();
  22.             metroTabControl1.SelectedTab = metroTabPage1;
  23.         }
  24.  
  25.        
  26.  
  27.         private void metroTile1_Click(object sender, EventArgs e)
  28.         {
  29.             Hide();
  30.             FormAuthorization frm = new FormAuthorization();
  31.             frm.Show();
  32.         }
  33.  
  34.         private void metroTile2_Click(object sender, EventArgs e)
  35.         {
  36.             metroTabControl1.SelectedTab = metroTabPage2;
  37.             metroTabPage2.Enabled = true;
  38.             webBrowser1.Visible = true;
  39.             metroLabel1.Visible = false;
  40.         }
  41.  
  42.         private void Form2_Load(object sender, EventArgs e)
  43.         {
  44.             webBrowser1.Navigate("https://pythonworld.ru/samouchitel-python");
  45.             webBrowser1.ScriptErrorsSuppressed = true;
  46.             webBrowser1.Visible = false;
  47.            
  48.  
  49.         }
  50.     }
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement