• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# PictureBox类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中PictureBox的典型用法代码示例。如果您正苦于以下问题:C# PictureBox类的具体用法?C# PictureBox怎么用?C# PictureBox使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



PictureBox类属于命名空间,在下文中一共展示了PictureBox类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Button

        public Button(String label, EMode mode = EMode.BackgroundLabel, Boolean shortCutMode = DEFAULT_SHORTCUT_MODE)
            : base()
        {
            Mode = mode;

            if (Mode == EMode.BackgroundLabel)
            {
                BackgroundTextures = new Dictionary<EState, Texture>()
                {
                    { EState.Normal, Create.Texture("ButtonBackgroundN") },
                    { EState.MouseOver, Create.Texture("ButtonBackgroundO") }
                };

                Background = new PictureBox(GetCurrentTexture());
            }

            else if (Mode == EMode.LabelEffect)
            {
                Mode = EMode.LabelEffect;
                ClickOffset = DEFAULT_LABEL_CLICKOFFSET;
            }

            Label = new Label(label);
            AddWidget(Label);

            State = EState.Normal;

            ShortCutMode = shortCutMode && label != null;

            if (label != null && Label.Text.Length > 0)
                ShortCutKey = WindowEvents.KeyCodeFromString(Label.Text[0].ToString());
        }
开发者ID:eickegao,项目名称:Blazera,代码行数:32,代码来源:Button.cs


示例2: MainForm

	public MainForm ()
	{
		// 
		// _richTextBox
		// 
		_richTextBox = new RichTextBox ();
		_richTextBox.Dock = DockStyle.Top;
		_richTextBox.Height = 300;
		_richTextBox.TabIndex = 0;
		Controls.Add (_richTextBox);
		// 
		// _pictureBox
		// 
		_pictureBox = new PictureBox ();
		_pictureBox.BackColor = Color.White;
		_pictureBox.BorderStyle = BorderStyle.Fixed3D;
		_pictureBox.Dock = DockStyle.Bottom;
		_pictureBox.Height = 300;
		Controls.Add (_pictureBox);
		// 
		// MainForm
		// 
		AutoScaleBaseSize = new Size (5, 13);
		ClientSize = new Size (400, 600);
		Location = new Point (150, 100);
		StartPosition = FormStartPosition.Manual;
		Text = "bug #81915";
		Load += new EventHandler (MainForm_Load);
	}
开发者ID:mono,项目名称:gert,代码行数:29,代码来源:MainForm.cs


示例3: AiDemo

    public AiDemo(Control paramGameController, Form paramPongGameForm)
    {
        pongGameForm = paramPongGameForm;
        gameController = paramGameController;
        picBoxAI1 = new PictureBox();//
        picBoxAI2 = new PictureBox();//Initializes the PictureBoxes
        picBoxBall = new PictureBox();//

        gameTime = new Timer();//Initializes the Timer

        gameTime.Enabled = true;//Enables the Timer
        gameTime.Interval = iGameTimeInterval;//Set the timer's interval

        gameTime.Tick += new EventHandler(gameTime_Tick);//Creates the Timer's Tick event


        pongGameForm.StartPosition = FormStartPosition.CenterScreen;//opens the form in center of the screen

        picBoxAI1.Size = sizePlayer;//sets the size of the picturebox
        picBoxAI1.Location = new Point(picBoxAI1.Width / 2, pongGameForm.Height / 2 - picBoxAI1.Height / 2);//sets it's location (centered)
        picBoxAI1.BackColor = Color.Blue;//fills the picturebox with a color
        gameController.Controls.Add(picBoxAI1);//adds the picture box to the form

        picBoxAI2.Size = sizeAI;
        picBoxAI2.Location = new Point(pongGameForm.Width - (picBoxAI2.Width + picBoxAI2.Width / 2), pongGameForm.Height / 2 - picBoxAI1.Height / 2);
        picBoxAI2.BackColor = Color.Red;
        gameController.Controls.Add(picBoxAI2);

        picBoxBall.Size = sizeBall;
        picBoxBall.Location = new Point(pongGameForm.Width / 2 - picBoxBall.Width / 2, pongGameForm.Height / 2 - picBoxBall.Height / 2);
        picBoxBall.BackColor = Color.Green;
        gameController.Controls.Add(picBoxBall);
    }
开发者ID:h3rska,项目名称:.NetPongGame,代码行数:33,代码来源:AiDemoAlgorithms.cs


示例4: constructGrid

 public void constructGrid(PictureBox thePictureBox, Map theMap)
 {
     this.thePictureBox = thePictureBox;
     this.theMap = theMap;
     thePictureBox.Invalidate();
     thePictureBox.Paint += new PaintEventHandler(paintGrid);
 }
开发者ID:Beansy,项目名称:NickLevelDesigner,代码行数:7,代码来源:Drawer.cs


示例5: GameUIManager

        public GameUIManager()
        {
            UIMain uiMain = LKernel.GetG<UIMain>();

            //This mess gets the height and width of the window for centering UI entities.
            uint uheight, uwidth, colorDepth;
            int height, width;
            RenderWindow window = LKernel.GetG<RenderWindow>();
            window.GetMetrics(out uwidth, out uheight, out colorDepth);
            width = (int)uwidth;
            height = (int)uheight;

            inGameUI = uiMain.GetGUI("ingame gui");
            itembox = inGameUI.GetControl<PictureBox>("itembox");
            //itembox.Top = (height / 2);
            //itembox.Bottom = (height / 2);
            //itembox.Left = (width / 2);
            //itembox.Right = (width / 2);

            itemimage = inGameUI.GetControl<PictureBox>("itemimage");
            //itemimage.Top = (height / 2);
            //itemimage.Bottom = (height / 2);
            //itemimage.Left = (width / 2);
            //itemimage.Right = (width / 2);
        }
开发者ID:CisciarpMaster,项目名称:PonyKart,代码行数:25,代码来源:GameUIManager.cs


示例6: mnuInventory

        public mnuInventory(string name, Enums.InvMenuType menuType, int itemSelected)
            : base(name)
        {
            base.Size = new Size(315, 360);
            base.MenuDirection = Enums.MenuDirection.Vertical;
            base.Location = new Point(10, 40);

            itemPicker = new Widgets.MenuItemPicker("itemPicker");
            itemPicker.Location = new Point(18, 63);

            lblInventory = new Label("lblInventory");
            lblInventory.AutoSize = true;
            lblInventory.Font = FontManager.LoadFont("PMDCP", 48);
            lblInventory.Text = "Inventory";
            lblInventory.ForeColor = Color.WhiteSmoke;
            lblInventory.Location = new Point(20, 0);

            picPreview = new PictureBox("picPreview");
            picPreview.Size = new Size(32, 32);
            picPreview.BackColor = Color.Transparent;
            picPreview.Location = new Point(255, 20);

            lblItemNum = new Label("lblItemNum");
            //lblItemNum.Size = new Size(100, 30);
            lblItemNum.AutoSize = true;
            lblItemNum.Location = new Point(182, 15);
            lblItemNum.Font = FontManager.LoadFont("PMDCP", 32);
            lblItemNum.BackColor = Color.Transparent;
            lblItemNum.ForeColor = Color.WhiteSmoke;
            lblItemNum.Text = "0/" + ((MaxInfo.MaxInv - 1) / 10 + 1);

            lblVisibleItems = new Label[10];
            for (int i = 0; i < lblVisibleItems.Length; i++) {
                lblVisibleItems[i] = new Label("lblVisibleItems" + i);
                //lblVisibleItems[i].AutoSize = true;
                lblVisibleItems[i].Size = new Size(200, 32);
                lblVisibleItems[i].Font = FontManager.LoadFont("PMDCP", 32);
                lblVisibleItems[i].Location = new Point(35, (i * 30) + 48);
                //lblVisibleItems[i].HoverColor = Color.Red;
                lblVisibleItems[i].ForeColor = Color.WhiteSmoke;
                lblVisibleItems[i].AllowDrop = true;
                lblVisibleItems[i].DragDrop += new EventHandler<DragEventArgs>(lblVisibleItems_DragDrop);
                lblVisibleItems[i].MouseDown += new EventHandler<MouseButtonEventArgs>(lblVisibleItems_MouseDown);
                lblVisibleItems[i].Click += new EventHandler<SdlDotNet.Widgets.MouseButtonEventArgs>(inventoryItem_Click);
                this.AddWidget(lblVisibleItems[i]);
            }

            this.AddWidget(picPreview);
            this.AddWidget(itemPicker);
            this.AddWidget(lblInventory);
            this.AddWidget(lblItemNum);

            mode = menuType;
            currentTen = (itemSelected - 1) / 10;
            DisplayItems(currentTen * 10 + 1);
            ChangeSelected((itemSelected - 1) % 10);
            UpdateSelectedItemInfo();
        }
开发者ID:blastboy,项目名称:Client,代码行数:58,代码来源:mnuInventory.cs


示例7: MandelbrotView

 MandelbrotView()
 {
     PictureBox box = new PictureBox();
     box.BackColor = Color.White;
     box.Dock = DockStyle.Fill;
     box.SizeMode = PictureBoxSizeMode.CenterImage;
     box.Image = create_image();
     this.Controls.Add(box);
 }
开发者ID:finalpatch,项目名称:mandelbrot,代码行数:9,代码来源:csmandel.cs


示例8: winSkinSelector

        public winSkinSelector()
            : base("winSkinSelector")
        {
            this.Windowed = true;
            this.Size = new Size(390, 300);
            this.Location = DrawingSupport.GetCenter(SdlDotNet.Graphics.Video.Screen.Size, this.Size);
            this.TitleBar.BackgroundImageSizeMode = ImageSizeMode.StretchImage;
            this.TitleBar.BackgroundImage = SkinManager.LoadGuiElement("Skin Selector", "titlebar.png");
            this.TitleBar.CloseButton.Visible = false;
            this.Text = "Skin Selector";
            this.BackgroundImageSizeMode = ImageSizeMode.StretchImage;
            this.BackgroundImage = SkinManager.LoadGui("Skin Selector");

            picSkinPreview = new PictureBox("picSkinPreview");
            picSkinPreview.SizeMode = ImageSizeMode.StretchImage;
            picSkinPreview.Size = new System.Drawing.Size(242, 182);
            picSkinPreview.Location = new Point(DrawingSupport.GetCenter(this.Width, picSkinPreview.Width), 10);
            picSkinPreview.BackColor = Color.Green;
            picSkinPreview.BorderStyle = SdlDotNet.Widgets.BorderStyle.FixedSingle;
            picSkinPreview.BorderColor = Color.Black;
            picSkinPreview.BorderWidth = 1;

            cmbSkinSelect = new ComboBox("cmbSkinSelect");
            cmbSkinSelect.Location = new Point(10, 200);
            cmbSkinSelect.Size = new Size(this.Width - 20, 30);
            cmbSkinSelect.ItemSelected += new EventHandler(cmbSkinSelect_ItemSelected);

            btnSave = new Button("btnSave");
            btnSave.Size = new Size(100, 30);
            btnSave.Location = new Point(10, 240);
            btnSave.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 12);
            btnSave.Text = "Switch Skins!";
            btnSave.Click += new EventHandler<MouseButtonEventArgs>(btnSave_Click);

            btnFindSkin = new Button("btnFindSkin");
            btnFindSkin.Size = new System.Drawing.Size(100, 30);
            btnFindSkin.Location = new Point(110, 240);
            btnFindSkin.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 12);
            btnFindSkin.Text = "Find Skin";
            btnFindSkin.Click += new EventHandler<MouseButtonEventArgs>(btnFindSkin_Click);

            btnCancel = new Button("btnCancel");
            btnCancel.Size = new Size(100, 30);
            btnCancel.Location = new Point(210, 240);
            btnCancel.Font = Logic.Graphics.FontManager.LoadFont("tahoma", 12);
            btnCancel.Text = "Cancel";
            btnCancel.Click += new EventHandler<MouseButtonEventArgs>(btnCancel_Click);

            this.AddWidget(picSkinPreview);
            this.AddWidget(cmbSkinSelect);
            this.AddWidget(btnSave);
            this.AddWidget(btnFindSkin);
            this.AddWidget(btnCancel);

            PopulateSkinList();
        }
开发者ID:ChaotixBluix,项目名称:PMU-Client,代码行数:56,代码来源:winSkinSelector.cs


示例9: viewItem

	public viewItem()
	{
		Text = "View item";
		ShowInTaskbar = false;
		Size = new Size(350, 350);
		StartPosition = FormStartPosition.CenterParent;

		//itemType combobox
		itemType = new ComboBox();
		itemType.Parent = this;
		itemType.DropDownStyle = ComboBoxStyle.DropDownList;
		itemType.Width = 100;
		itemType.Location = new Point(this.Width - itemType.Width - 15, 10);
		itemType.Anchor = AnchorStyles.Top | AnchorStyles.Right;
		itemType.Items.Add("_virtual.dat");
		itemType.Items.Add("dll");
		itemType.Items.Add("Text");
		itemType.Items.Add("Image");
		itemType.Items.Add("Hex");
		itemType.SelectedIndexChanged += new EventHandler(itemType_SelectedIndexChanged);

		//filesize label
		fileSize = new Label();
		fileSize.Parent = this;
		fileSize.AutoSize = true;
		fileSize.Location = new Point(10, 10);

		//picturebox
		pictureBox = new PictureBox();
		pictureBox.Parent = this;
		pictureBox.BorderStyle = BorderStyle.FixedSingle;
		pictureBox.Location = new Point(10, 40);
		pictureBox.Size = new Size(this.Width - 30, this.Height - 80);
		pictureBox.Anchor = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right;
		pictureBox.Visible = false;

		//textbox
		textBox = new TextBox();
		textBox.Parent = this;
		textBox.Multiline = true;
		textBox.ScrollBars = ScrollBars.Both;
		textBox.Location = pictureBox.Location;
		textBox.Size = pictureBox.Size;
		textBox.Anchor = pictureBox.Anchor;
		textBox.Visible = false;

		//listbox
		listBox = new ListBox();
		listBox.Parent = this;
		listBox.Location = pictureBox.Location;
		listBox.Size = pictureBox.Size;
		listBox.Anchor = pictureBox.Anchor;
		listBox.Visible = false;

		this.Load += new System.EventHandler(viewItem_Load);
	}
开发者ID:winch,项目名称:winch.pinkbile.com-c-sharp,代码行数:56,代码来源:viewItem.cs


示例10: fpv

fpv(Y a){try{
Action J=()=>{FormBorderStyle=(FormBorderStyle)(T=4-(X)(WindowState=2-WindowState)*2);BackColor=T!=0?Color.White:Color.Black;},j=()=>K("FPV by kasthack v 0.9.1.\r\nKeys:\r\nD/S/v/>/Num6/Num2/Space - next photo;\r\nA/W/^/</Num8/Num4 - previous photo;\r\nHome/H - first pic in folder\r\nEnd/E - last pic\r\nF11/Alt+Enter - fullscreen;\r\nEsc - exit fullscreen;\r\nEsc-Esc/Q - exit FPV;\r\nF1/?- show this message.","FPV:Help",0,64),k=()=>{if(K("Do U really want to delete"+G[B]+"?","Deleting",4,32)==6)try{File.Delete(G[B]);I(0);}catch{}},g=()=>A=true,h=()=>I(1),i=()=>I(-1),l=()=>I((B=0)-1),m=()=>I(B=0);
H=new Dictionary<X,Action>{{68,h},{83,h},{40,h},{39,h},{98,h},{102,h},{32,h},{65,i},{87,i},{38,i},{37,i},{104,i},{100,i},{36,m},{72,m},{35,l},{69,l},{112,j},{191,j},{46,k},{81,Application.Exit},{82,()=>I(E.Next())},{27,()=>H[(X)WindowState==2?122:81]()},{122,()=>H[-1]()},{13,()=>{if(!A)I(1);else H[-1]();}},{-1,J},{262144,g},{18,g},{111,j}};
Controls.Add(F=new PictureBox{BorderStyle=0});F.SizeMode+=4;F.Dock+=5;F.MouseDoubleClick+=(x,y)=>J();
KeyUp+=(_,e)=>A&=!((T=(X)e.KeyCode)==65||T==18);
KeyDown+=(c,b)=>{if(H.TryGetValue((X)b.KeyCode,out i))i();};
MouseWheel+=(_,e)=>I(e.Delta>0?-1:1);
G=Directory.GetFiles(D=(V=Path.GetDirectoryName(a))==""?".":V);}
catch{H[111]();T=9;return;}
B=Array.IndexOf(G,a);I(0);}}
开发者ID:old-kasthack-s-projects,项目名称:FPV,代码行数:10,代码来源:Program.cs


示例11: TextList

        public TextList(Int32 size = BlazeraLib.ExtendedBox.DEFAULT_SIZE, Boolean cursorMode = true)
            : base(size)
        {
            if (CursorMode = cursorMode)
            {
                Cursor = new PictureBox(Create.Texture("Gui_TextListSl"));
                AddWidget(Cursor);
            }

            Texts = new List<Button>();
        }
开发者ID:jpx,项目名称:blazera,代码行数:11,代码来源:TextList.cs


示例12: Pencil

        protected Pencil(Texture iconTexture)
            : base(iconTexture)
        {
            IsPainting = false;
            Mode = EMode.Normal;

            Cursor = new PictureBox(null);
            AddWidget(Cursor);

            Empty();
            ShowCursor(false);
        }
开发者ID:jpx,项目名称:blazera,代码行数:12,代码来源:Pencil.cs


示例13: HScrollBar

        public HScrollBar()
            : base()
        {
            Background = new PictureBox(Create.Texture("HScrollBar_Background"));
            BackgroundDimension = new Vector2f(BackgroundDimension.X, BackgroundDimension.Y * ScrollBar.BACKGROUND_RESIZE_FACTOR);

            ScrollCursor = new PictureBox(Create.Texture("HScrollBar_Cursor"));
            ScrollCursor.Dimension = new Vector2f(ScrollCursor.Dimension.X * ScrollBar.CURSOR_RESIZE_FACTOR, ScrollCursor.Dimension.Y * ScrollBar.CURSOR_RESIZE_FACTOR);
            AddWidget(ScrollCursor);

            RefreshCursor();
        }
开发者ID:jpx,项目名称:blazera,代码行数:12,代码来源:ScrollBar.cs


示例14: retractGear

 /// <summary>
 /// Update the Gear PictureBox status during retractation
 /// </summary>
 /// <param name="picture">The PictureBox to be update</param>
 public void retractGear(PictureBox picture)
 {
     this.gearBox = picture;
     while (this.state < 3)
     {
         Thread.Sleep(1000);
         picture.Image = this.pictures[2 - this.state];
         backgroundWorker.RunWorkerAsync();
         this.state++;
     }
     this.state = 0;
 }
开发者ID:VincentRoma,项目名称:Landing_Gears,代码行数:16,代码来源:Gear.cs


示例15: fpv

 public fpv(string a)
 {
     try {
         this.Controls.Add(P = new PictureBox() { Dock = DockStyle.Fill, SizeMode = PictureBoxSizeMode.Zoom, BorderStyle = BorderStyle.None });
         P.MouseDoubleClick += new MouseEventHandler(f);
         KeyUp += new KeyEventHandler(delegate( object _, KeyEventArgs e ) { if ( ( e.KeyCode == Keys.A ) || ( e.KeyCode == ( Keys.RButton | Keys.ShiftKey ) ) ) A = false; });
         KeyDown += new KeyEventHandler(p);
         MouseWheel += new MouseEventHandler(delegate(Object _, MouseEventArgs e) {r(e.Delta>0?-1:1); });
         ClientSize = new Size(320, 220);
         D = Path.GetDirectoryName(a);
         L.Clear(); L.AddRange(Directory.GetFiles(D));}
     catch { p(null, new KeyEventArgs(Keys.F1)); }
     I = L.IndexOf(a); r(0);
 }
开发者ID:Orif,项目名称:FPV,代码行数:14,代码来源:Program.cs


示例16: Menu

        public Menu(Alignment alignment = DEFAULT_ALIGNMENT, float itemOffset = DEFAULT_MARGINS, float margins = DEFAULT_MARGINS)
            : base()
        {
            Alignment = alignment;

            Margins = margins;
            ItemOffset = itemOffset;

            MenuItems = new List<MenuItem>();

            Cursor = new PictureBox(Create.Texture("MenuSl_Main"));
            AddWidget(Cursor);

            InitBox();

            Closable = true;
        }
开发者ID:eickegao,项目名称:Blazera,代码行数:17,代码来源:Menu.cs


示例17: Main

    public static void Main()
    {
        Form fm = new Form();
        fm.Text = "サンプル";

        PictureBox pb = new PictureBox();

        Car c = new Car();
        c.Move();
        c.Move();

        pb.Image = c.img;
        pb.Top = c.top;
        pb.Left = c.left;

        pb.Parent = fm;

        Application.Run(fm);
    }
开发者ID:uwan,项目名称:C-Primer,代码行数:19,代码来源:CodeFile1.cs


示例18: kitParty

        public kitParty(string name)
            : base(name)
        {
            enabled = true;

            base.BackColor = Color.Transparent;
            picMemberMugshot = new PictureBox[PARTY_SIZE];
            for (int i = 0; i < PARTY_SIZE; i++) {
                picMemberMugshot[i] = new PictureBox("picMemberMugshot" + i);
                picMemberMugshot[i].Size = new Size(40, 40);
                picMemberMugshot[i].BorderStyle = SdlDotNet.Widgets.BorderStyle.FixedSingle;
                picMemberMugshot[i].BorderWidth = 1;
                picMemberMugshot[i].BorderColor = Color.Black;

                picMemberMugshot[i].X = 10;

                this.AddWidget(picMemberMugshot[i]);
            }
            lblMemberName = new Label[PARTY_SIZE];
            for (int i = 0; i < PARTY_SIZE; i++) {
                lblMemberName[i] = new Label("lblMemberName" + i);
                lblMemberName[i].AutoSize = true;
                lblMemberName[i].Font = Logic.Graphics.FontManager.LoadFont("PMDCP", 24);
                lblMemberName[i].ForeColor = Color.WhiteSmoke;

                this.AddWidget(lblMemberName[i]);
            }
            pgbMemberHP = new ProgressBar[PARTY_SIZE];
            pgbMemberExp = new ProgressBar[PARTY_SIZE];
            for (int i = 0; i < PARTY_SIZE; i++) {
                pgbMemberHP[i] = new ProgressBar("pgbMemberHP" + i);
                pgbMemberExp[i] = new ProgressBar("pgbMemberExp" + i);

                pgbMemberHP[i].Maximum = 100;
                pgbMemberHP[i].TextStyle = ProgressBarTextStyle.Custom;

                pgbMemberExp[i].Maximum = 100;
                pgbMemberExp[i].TextStyle = ProgressBarTextStyle.Custom;

                this.AddWidget(pgbMemberHP[i]);
                this.AddWidget(pgbMemberExp[i]);
            }
        }
开发者ID:blastboy,项目名称:Client,代码行数:43,代码来源:kitParty.cs


示例19: mnuHelpPage

        public mnuHelpPage(string name, string helpFolder, int page)
            : base(name)
        {
            this.Size = new Size(620, 420);
            this.MenuDirection = Enums.MenuDirection.Vertical;
            this.Location = new Point(10, 40);

            this.page = page;
            this.helpFolder = helpFolder;

            lblHelpPage = new Label("lblHelpTopics");
            lblHelpPage.Location = new Point(40, 5);
            lblHelpPage.Font = FontManager.LoadFont("PMDCP", 36);
            lblHelpPage.AutoSize = true;
            lblHelpPage.Text = helpFolder;
            lblHelpPage.ForeColor = Color.WhiteSmoke;

            lblPageNumber = new Label("lblPageNumber");
            lblPageNumber.AutoSize = true;
            lblPageNumber.Font = FontManager.LoadFont("PMDCP", 36);
            lblPageNumber.Text = "Page 1";
            lblPageNumber.Location = new Point(this.Width - lblPageNumber.Width - 40, 5);
            lblPageNumber.ForeColor = Color.WhiteSmoke;

            picHelpPage = new PictureBox("picHelpPage");
            picHelpPage.SizeMode = ImageSizeMode.StretchImage;
            picHelpPage.Location = new Point(50, 50);
            picHelpPage.Size = new Size(this.Width - (picHelpPage.X * 2), this.Height - picHelpPage.Y -20);
            picHelpPage.BackColor = Color.Green;

            //lstHelpTopics = new ListBox("lstHelpTopics");
            //lstHelpTopics.Location = new Point(10, 50);
            //lstHelpTopics.Size = new Size(this.Width - lstHelpTopics.X * 2, this.Height - lstHelpTopics.Y - 10);
            //lstHelpTopics.BackColor = Color.Transparent;
            //lstHelpTopics.BorderStyle = SdlDotNet.Widgets.BorderStyle.None;

            this.AddWidget(lblHelpPage);
            this.AddWidget(picHelpPage);
            this.AddWidget(lblPageNumber);

            LoadHelpPage(this.page);
        }
开发者ID:blastboy,项目名称:Client,代码行数:42,代码来源:mnuHelpPage.cs


示例20: InitializeComponent

   void InitializeComponent()
   {
      this.components = new System.ComponentModel.Container();
      this.m_SplashPictureBox = new System.Windows.Forms.PictureBox();
      this.m_Timer = new System.Windows.Forms.Timer(this.components);
      ((System.ComponentModel.ISupportInitialize)(this.m_SplashPictureBox)).BeginInit();
      this.SuspendLayout();
// 
// m_SplashPictureBox
// 
      this.m_SplashPictureBox.AutoSize = true;
      this.m_SplashPictureBox.Cursor = System.Windows.Forms.Cursors.AppStarting;
      this.m_SplashPictureBox.Location = new System.Drawing.Point(0,0);
      this.m_SplashPictureBox.Name = "m_SplashPictureBox";
      this.m_SplashPictureBox.Size = new System.Drawing.Size(112,80);
      this.m_SplashPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
      this.m_SplashPictureBox.TabIndex = 0;
      this.m_SplashPictureBox.TabStop = false;
// 
// m_Timer
// 
      this.m_Timer.Enabled = true;
      this.m_Timer.Interval = 500;
      this.m_Timer.Tick += new System.EventHandler(this.OnTick);
// 
// SplashForm
// 
      
      this.ClientSize = new System.Drawing.Size(227,172);
      this.ControlBox = false;
      this.Controls.Add(this.m_SplashPictureBox);
      this.Cursor = System.Windows.Forms.Cursors.Cross;
      this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
      this.Name = "SplashForm";
      this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
      this.TopMost = true;
      ((System.ComponentModel.ISupportInitialize)(this.m_SplashPictureBox)).EndInit();
      this.ResumeLayout(false);
      this.PerformLayout();

   }
开发者ID:ittray,项目名称:LocalDemo,代码行数:41,代码来源:SplashScreen.cs



注:本文中的PictureBox类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# PictureType类代码示例发布时间:2022-05-24
下一篇:
C# Picture类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap