Click here to Skip to main content
15,887,083 members
Home / Discussions / C#
   

C#

 
GeneralRe: sample application to customize combo box with multi selection an check box in winform Pin
OriginalGriff18-Apr-19 6:34
mveOriginalGriff18-Apr-19 6:34 
QuestionHow store all TabPage items in c# Pin
Richi38117-Apr-19 22:58
Richi38117-Apr-19 22:58 
AnswerRe: How store all TabPage items in c# Pin
OriginalGriff17-Apr-19 23:34
mveOriginalGriff17-Apr-19 23:34 
AnswerRe: How store all TabPage items in c# Pin
#realJSOP18-Apr-19 2:18
mve#realJSOP18-Apr-19 2:18 
GeneralRe: How store all TabPage items in c# Pin
Richi38125-Apr-19 20:29
Richi38125-Apr-19 20:29 
AnswerRe: How store all TabPage items in c# Pin
Gerry Schmitz18-Apr-19 6:09
mveGerry Schmitz18-Apr-19 6:09 
AnswerRe: How store all TabPage items in c# Pin
BillWoodruff18-Apr-19 20:48
professionalBillWoodruff18-Apr-19 20:48 
GeneralRe: How store all TabPage items in c# Pin
Richi38125-Apr-19 21:39
Richi38125-Apr-19 21:39 
Thank you for understanding Smile | :)

I try to explain the problem clearly.
In application I have ListBox (only IP adress all PLC for communication).
You can add and remove PLC IP addresses to the ListBox.
-TabPages are created when Ip address is added to ListBox.
-the mentioned code treats duplicate ip addresses when creating a new Tabpages.
-After removing Ip from the listbox, the Tabpages with that ip address will be removed.
- Is there any other aleternate to treat the same Tabpages (because there cannot be 2 plc with the same Ip address)?

I want to store TabPage with Texbox values (location, color, visile etc. are not essential).

TabPages being created have a fixed structure like as:

// tabPage1
    //
    this.tabPage1.BackColor = System.Drawing.SystemColors.Control;
    this.tabPage1.Controls.Add(this.textBox5);
    this.tabPage1.Controls.Add(this.textBox4);
    this.tabPage1.Controls.Add(this.textBox3);
    this.tabPage1.Controls.Add(this.textBox2);
    this.tabPage1.Controls.Add(this.textBox1);
    this.tabPage1.Controls.Add(this.labPlcIpAddress);
    this.tabPage1.Location = new System.Drawing.Point(4, 22);
    this.tabPage1.Name = "tabPage1";
    this.tabPage1.Size = new System.Drawing.Size(384, 292);
    this.tabPage1.TabIndex = 3;
    this.tabPage1.Text = "Plc1";
    //
    // textBox5
    //
    this.textBox5.Location = new System.Drawing.Point(111, 153);
    this.textBox5.Name = "tb_SQLName";
    this.textBox5.Size = new System.Drawing.Size(188, 20);
    this.textBox5.TabIndex = 11;
    this.textBox5.Text = "name edited SQL column";
    //
    // textBox4
    //
    this.textBox4.Location = new System.Drawing.Point(111, 116);
    this.textBox4.Name = "tb_SqleditColumn";
    this.textBox4.Size = new System.Drawing.Size(188, 20);
    this.textBox4.TabIndex = 10;
    this.textBox4.Text = "SQL column name for editing";
    //
    // textBox3
    //
    this.textBox3.Location = new System.Drawing.Point(111, 67);
    this.textBox3.Name = "textBox3";
    this.textBox3.Size = new System.Drawing.Size(188, 20);
    this.textBox3.TabIndex = 9;
    this.textBox3.Text = "Query for update SQL database";
    //
    // textBox2
    //
    this.textBox2.Location = new System.Drawing.Point(111, 40);
    this.textBox2.Name = "textBox2";
    this.textBox2.Size = new System.Drawing.Size(188, 20);
    this.textBox2.TabIndex = 8;
    this.textBox2.Text = "Query for Select from SQL database";
    //
    // textBox1
    //
    this.textBox1.Location = new System.Drawing.Point(111, 13);
    this.textBox1.Name = "textBox1";
    this.textBox1.Size = new System.Drawing.Size(188, 20);
    this.textBox1.TabIndex = 7;
    this.textBox1.Text = "Here is IP of plc";
    //


Now it's obviously ?
AnswerRe: How store all TabPage items in c# Pin
BillWoodruff26-Apr-19 4:09
professionalBillWoodruff26-Apr-19 4:09 
QuestionHow to handle PCB components layout in designing LED switching power supply? Pin
Pcbindex17-Apr-19 19:57
Pcbindex17-Apr-19 19:57 
AnswerRe: How to handle PCB components layout in designing LED switching power supply? Pin
OriginalGriff17-Apr-19 20:05
mveOriginalGriff17-Apr-19 20:05 
Questionlast 3 numbers Pin
_Q12_17-Apr-19 12:04
_Q12_17-Apr-19 12:04 
AnswerRe: last 3 numbers Pin
Gerry Schmitz17-Apr-19 13:05
mveGerry Schmitz17-Apr-19 13:05 
GeneralRe: last 3 numbers Pin
_Q12_17-Apr-19 13:36
_Q12_17-Apr-19 13:36 
AnswerRe: last 3 numbers Pin
Luc Pattyn17-Apr-19 13:11
sitebuilderLuc Pattyn17-Apr-19 13:11 
AnswerRe: last 3 numbers Pin
#realJSOP18-Apr-19 2:04
mve#realJSOP18-Apr-19 2:04 
AnswerRe: last 3 numbers Pin
BillWoodruff18-Apr-19 20:57
professionalBillWoodruff18-Apr-19 20:57 
QuestionWCF Pin
Member 1406752317-Apr-19 4:12
Member 1406752317-Apr-19 4:12 
AnswerRe: WCF Pin
#realJSOP17-Apr-19 4:25
mve#realJSOP17-Apr-19 4:25 
QuestionReferencing Dynamic Control Array Data Pin
Member 1427108416-Apr-19 12:11
Member 1427108416-Apr-19 12:11 
AnswerRe: Referencing Dynamic Control Array Data Pin
Member 1427108416-Apr-19 15:38
Member 1427108416-Apr-19 15:38 
SuggestionRe: Referencing Dynamic Control Array Data Pin
Richard Deeming17-Apr-19 1:07
mveRichard Deeming17-Apr-19 1:07 
AnswerRe: Referencing Dynamic Control Array Data Pin
BillWoodruff16-Apr-19 16:29
professionalBillWoodruff16-Apr-19 16:29 
AnswerRe: Referencing Dynamic Control Array Data Pin
OriginalGriff16-Apr-19 21:22
mveOriginalGriff16-Apr-19 21:22 
QuestionJson formatting using an object in c# Pin
ATLDev15-Apr-19 11:52
ATLDev15-Apr-19 11:52 

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.