Click here to Skip to main content
15,888,270 members
Home / Discussions / C#
   

C#

 
AnswerRe: How do I get a list of all windows user groups Pin
Nathan Minier20-Jun-14 3:08
professionalNathan Minier20-Jun-14 3:08 
QuestionC# Windows Forms App Pin
Zeyad Jalil16-Jun-14 19:33
professionalZeyad Jalil16-Jun-14 19:33 
AnswerRe: C# Windows Forms App Pin
Eddy Vluggen17-Jun-14 7:15
professionalEddy Vluggen17-Jun-14 7:15 
AnswerRe: C# Windows Forms App Pin
Swinkaran17-Jun-14 13:39
professionalSwinkaran17-Jun-14 13:39 
Question[Wp8.1] How to save the RenderTargetBitmap to png? Pin
Lãng Khách15-Jun-14 23:08
Lãng Khách15-Jun-14 23:08 
AnswerRe: [Wp8.1] How to save the RenderTargetBitmap to png? Pin
BobJanova16-Jun-14 0:34
BobJanova16-Jun-14 0:34 
GeneralRe: [Wp8.1] How to save the RenderTargetBitmap to png? Pin
Lãng Khách16-Jun-14 1:17
Lãng Khách16-Jun-14 1:17 
Questionc# - duplicate tabpage Pin
Member 1026763014-Jun-14 22:46
Member 1026763014-Jun-14 22:46 
hi i want to develop a mini messaenger in xmpp with conversation tabpage, Emotion panel.
i can duplicate tabpage by clicking " Add " button in my form. when i duplicate 2,or ... tabpage . and when i click show panel, panel dont visible in my current tabpage and visible in other tabpage(in last tabpage), i uploaded my project :

http://www.megafileupload.com/en/file/541739/tabpage-rar.html[^]
help me to slove problem



C#
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace tabpage
{
    public partial class Form1 : Form
    {
        private System.Windows.Forms.Panel pan;
        private System.Windows.Forms.Button bt;
        private System.Windows.Forms.PictureBox im1;
        private System.Windows.Forms.PictureBox im2;
        private System.Windows.Forms.PictureBox im3;
        private System.Windows.Forms.TabPage tp;


        public Form1()
        {
            InitializeComponent();
        }

        private void duplicate()
        {


            this.pan = new System.Windows.Forms.Panel();
            this.bt = new System.Windows.Forms.Button();
            this.im1 = new System.Windows.Forms.PictureBox();
            this.im2 = new System.Windows.Forms.PictureBox();
            this.im3 = new System.Windows.Forms.PictureBox();
            this.tp = new System.Windows.Forms.TabPage();
            //
            pan.Location = new Point(201, 6);
            pan.Size = new Size(140, 146);
            pan.BackColor = Color.Gray;
            pan.Visible = false;
            //
            bt.Location = new Point(235, 158);
            bt.Text = "show";
            this.bt.Click += new System.EventHandler(this.bt_Click);
            //
            im1.Size = new Size(25, 25);
            im1.Location = new Point(3, 3);
            im1.Image = Properties.Resources._16_circle_green;
            im1.SizeMode = PictureBoxSizeMode.CenterImage;
            //
            im2.Size = new Size(25, 25);
            im2.Location = new Point(30, 3);
            im2.Image = Properties.Resources.delete__166_;
            im2.SizeMode = PictureBoxSizeMode.CenterImage;
            //
            im3.Size = new Size(25, 25);
            im3.Location = new Point(57, 3);
            im3.Image = Properties.Resources.down;
            im3.SizeMode = PictureBoxSizeMode.CenterImage;

            //

            tp.Controls.Add(pan);
            tp.Controls.Add(bt);
            pan.Controls.Add(im1);
            pan.Controls.Add(im2);
            pan.Controls.Add(im3);
            tabControl1.Controls.Add(tp);

        }
        private void bt_Click(object sender, System.EventArgs e)
        {
            if (bt.Text == "show")
            {
                pan.Visible = true;
                bt.Text = "hide";
            }
            else if (bt.Text == "hide")
            {
                pan.Visible = false;
                bt.Text = "show";
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            duplicate();
        }
    }
}
http://i58.tinypic.com/6hnuhg.png[<a href="http://i58.tinypic.com/6hnuhg.png" target="_blank" title="New Window">^</a>]


modified 15-Jun-14 5:25am.

AnswerRe: c# - duplicate tabpage Pin
OriginalGriff14-Jun-14 23:40
mveOriginalGriff14-Jun-14 23:40 
Questioni set combobox data source value and cleare item also but just add a new item combo list is add new list in old list my code is Pin
Member 1066930114-Jun-14 21:11
Member 1066930114-Jun-14 21:11 
AnswerRe: i set combobox data source value and cleare item also but just add a new item combo list is add new list in old list my code is Pin
OriginalGriff14-Jun-14 21:51
mveOriginalGriff14-Jun-14 21:51 
GeneralRe: i set combobox data source value and cleare item also but just add a new item combo list is add new list in old list my code is Pin
Member 1066930114-Jun-14 23:08
Member 1066930114-Jun-14 23:08 
GeneralRe: i set combobox data source value and cleare item also but just add a new item combo list is add new list in old list my code is Pin
OriginalGriff14-Jun-14 23:39
mveOriginalGriff14-Jun-14 23:39 
GeneralRe: Not Refresh combo box item list Or Just say Not clear itemlist Pin
Member 1066930115-Jun-14 0:17
Member 1066930115-Jun-14 0:17 
GeneralRe: Not Refresh combo box item list Or Just say Not clear itemlist PinPopular
Mycroft Holmes15-Jun-14 0:22
professionalMycroft Holmes15-Jun-14 0:22 
GeneralRe: Not Refresh combo box item list Or Just say Not clear itemlist Pin
Member 1066930115-Jun-14 1:00
Member 1066930115-Jun-14 1:00 
GeneralRe: Not Refresh combo box item list Or Just say Not clear itemlist Pin
OriginalGriff15-Jun-14 1:07
mveOriginalGriff15-Jun-14 1:07 
GeneralRe: Not Refresh combo box item list Or Just say Not clear itemlist Pin
Mycroft Holmes15-Jun-14 14:02
professionalMycroft Holmes15-Jun-14 14:02 
AnswerRe: i set combobox data source value and cleare item also but just add a new item combo list is add new list in old list my code is Pin
AshishvermaMCA15-Jun-14 20:25
AshishvermaMCA15-Jun-14 20:25 
Question[C #] Doubt How to make a chat list using Network API Pin
Member 916415114-Jun-14 13:00
Member 916415114-Jun-14 13:00 
AnswerRe: [C #] Doubt How to make a chat list using Network API Pin
Wes Aday14-Jun-14 13:30
professionalWes Aday14-Jun-14 13:30 
QuestionMemory performance and foreach vs for Pin
Super Lloyd14-Jun-14 6:57
Super Lloyd14-Jun-14 6:57 
AnswerRe: Memory performance and foreach vs for Pin
Kornfeld Eliyahu Peter14-Jun-14 9:26
professionalKornfeld Eliyahu Peter14-Jun-14 9:26 
GeneralRe: Memory performance and foreach vs for Pin
harold aptroot14-Jun-14 9:33
harold aptroot14-Jun-14 9:33 
GeneralRe: Memory performance and foreach vs for Pin
Kornfeld Eliyahu Peter14-Jun-14 10:21
professionalKornfeld Eliyahu Peter14-Jun-14 10:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.