|
Hi Experts
Please Help Me
I Have Make A .Net Window Based Software.
When I Give it To My Client After Instillation of The Software It Ask
For registration of The Software. In Client Side It Generate A Customer Key.
When Client Send Me The Customer Key either By Phone,Mobile or Mail.
I Give Him A Serial Key Against This Customer Key For each Customer It Generate
a New Customer Key Every Time. But Problem is That Suppose That The Person Whom
i am Giving The CD/DVD Or My Software Set Up He or She Give This Software To Another
Friends or Person at That Time It Generate Customer Code Also At That End the He or She Also Contact With Me To give The Serial Number. i am Giving him/her Also.
But I am Not Know He/she is Our Or Genuine Client.Then How I Check That The
Another Person is Used Origional Software or Pirated Software and Then Stop
His Services. My Software Is Window Application But After Some Periods I am Sending Him update of Software on Internet on My Web site at this Stage Help Me What is the Solution of this Problem
|
|
|
|
|
I'm desperate for a program to give me an XP style menu in Vista. I'm sure the Vista menu is great for all those lazy, ignorant people that can't be bothered to organize their start menu and end up with columns and columns of menus. However I want my XP menu back! I love the pinned shortcuts at the top left followed below by most recently used shortcuts below. My folder view is only 4 or 5 folders: Office, Studio, System, Applications are my standard folders and I arrange everything in those folders. I want to keep this, but you can't do it in Vista. You only get the option of the classic menu. Classic? More like antiquated! I've searched and searched, but I can't find anything to accomplish this. I don't understand because I'm nowhere near the only one in this position. So, I'm turning to you guys and gals for help. Anyone know of how to get an XP style menu on Vista?
Thanks in advance!
|
|
|
|
|
I think the only way you're going to get that is to replace Explorer.exe with your own version, or some 3rd aprtry replacement. Come to think of it, I haven't seen a single replacement that was 100% stable.
|
|
|
|
|
can we dynamically add row in datagrid..
after a click event.. between perticular rows...
please help...
|
|
|
|
|
dataGridView1.Rows.Add();
hmmm pie
|
|
|
|
|
himani_jha wrote: can we dynamically add row in datagrid..
Yes
himani_jha wrote: after a click event..
yes
himani_jha wrote: between perticular rows...
probably but not tried to do it
|
|
|
|
|
hopingToCode wrote: between perticular rows...
probably but not tried to do it
this.dataGridView1.Rows.Insert();
hmmm pie
|
|
|
|
|
what is visual style. from where i have to download that and activate that
...
anybody have idea...
plz help..
|
|
|
|
|
himani_jha wrote: what is visual style. from where i have to download that and activate that
it's called google..... and it tell you wonderful things!
himani_jha wrote:
anybody have idea...
yeap .. I have lots of them
himani_jha wrote: plz help..
you really know how to end your message in a way to get flame...
let the flaming begin!
|
|
|
|
|
hi,
i have a windows form project developed by devexpress tools and bind my data in access database to grid. But, i couldn't bind to grid more than one tables. i want to show the tables in one grid but not shown in master-detail view. I created a query to combine tables but in grid, no data seen. Could you help me, please.
mkn
|
|
|
|
|
If you're trying to do what I think you are, you can't do it. A grid can only be bound to a single table at a time. I would probably create another grid control for each table you want, put them all on a Panel control if you need to scroll through all the tables.
|
|
|
|
|
hi,
i want to implement expandable datagrid in which on each rows there is a + sign. on click that some rows related to that rows will be display..
plz help how to implement
|
|
|
|
|
himani_jha wrote: i want to implement expandable datagrid in which on each rows there is a + sign. on click that some rows related to that rows will be display..
plz help how to implement
I recommend using Visual Studio.
|
|
|
|
|
plz give me brief ans.
thanx in advance
plz help
|
|
|
|
|
Don't do it yet
Is that brief enough for you?
|
|
|
|
|
i m asking for help
plz help if u can
|
|
|
|
|
As a tip, anonymous univoting is considered bad form unless you can provide a reason
The reason that I replied as I did is that such a control requires very good knowledge of database structure, custom control design, SQL queries and database access. These are not easy subjects to master. If you learn these, then you may be able to develop it.
Presumably, by related rows you mean those which are primary keys linked to another table. However, in order to make something like that fully customisable, you'll want to use a delegate, which returns true if a row is related, and passes a DataTable which contains the related rows. You'll then have to deal with any results recursively in a separate method. Call this delegate for every row in the source DataTable
That's just the DataTable parsing. It doesn't deal with the access of the DataTable, or how the controls are added to the control in the right place. Do you understand now why it's considered humorous when someone who can't spell 'please' or ask a well-phrased question posts such a request? This is also why you got some sarcastic responses
|
|
|
|
|
Implemeting something like this is not for beginners. If you have experience in creating complex custom controls, then you could do this. If not, there's just way too much information to cover in a couple of forum posts.
I would highly recommend using a third party product that supports this, such as Infrgistics WinGrid.
|
|
|
|
|
i do not have that much exp. but if any body hepl me then i have confidence that i can do that...
plz...
help...
its urgent
or u can suggest me any third party product that supports this ...
plz
|
|
|
|
|
himani_jha wrote: suggest me any third party product
He already suggested one! "Infragistics WinGrid"
hmmm pie
|
|
|
|
|
You didn't bother to read my post at all, did you??
|
|
|
|
|
Yes, this is really, really basic...
Is there a 'best practices' for folder names on Web Hosting when constructing ASP pages. We are collecting basic inquiry from visitors and working with a new hosting service. .Net 2.0 / VBScript / etc. are all supported. Sample code is provided, but I am at a loss for where to store the .ASP since we have to specifiy SMTP with username and password and we DO NOT want it to become visible for others to use.
It would look a lot easier if you just move over and let me do it.
|
|
|
|
|
Go ask in the ASP forum!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
my program implements the funtionality of adding and removing the tabpages and adding the controls to the tabpages .I have three tabpages as default with the controls added to it.Now rest i addtabapges with the tabcontrols addded to it.
public partial class Form1 : Form
{
private static int pageNumber=4;
private System.Windows.Forms.CheckBox tab2CheckBox3;
private System.Windows.Forms.CheckBox tab2CheckBox2;
private System.Windows.Forms.CheckBox tab2CheckBox1;
private System.Windows.Forms.RadioButton tabRadioButton;
private System.Windows.Forms.RadioButton tab1Radio1Button1;
private System.Windows.Forms.RadioButton tab2Radio2Button2;
private System.Windows.Forms.RadioButton tab3Radio3Button3;
private System.Windows.Forms.RadioButton tab4Radio4Button4;
private System.Windows.Forms.RadioButton tab5Radio5Button5;
private System.Windows.Forms.RadioButton tab6Radio6Button6;
private System.Windows.Forms.RadioButton tab7Radio7Button7;
private System.Windows.Forms.RadioButton tab8Radio8Button8;
private System.Windows.Forms.RadioButton tab9Radio9Button9;
private System.Windows.Forms.RadioButton tab10Radio10Button10;
private System.Windows.Forms.RadioButton tab11Radio11Button11;
private System.Windows.Forms.RadioButton tab12Radio12Button12;
private System.Windows.Forms.RadioButton tab13Radio13Button13;
private System.Windows.Forms.RadioButton tab14Radio14Button14;
private System.Windows.Forms.RadioButton tabRadioButton15;
private System.Windows.Forms.RadioButton tabRadioButton16;
private System.Windows.Forms.RadioButton tabRadioButton17;
private System.Windows.Forms.RadioButton tabRadioButton18;
private System.Windows.Forms.RadioButton tabRadioButton19;
private System.Windows.Forms.RadioButton tabRadioButton20;
private System.Windows.Forms.RadioButton tabRadioButton21;
private System.Windows.Forms.RadioButton tabRadioButton22;
private System.Windows.Forms.RadioButton tabRadioButton23;
private System.Windows.Forms.RadioButton tabRadioButton24;
private System.Windows.Forms.RadioButton tabRadioButton25;
private System.Windows.Forms.RadioButton tabRadioButton26;
private System.Windows.Forms.RadioButton tabRadioButton27;
private System.Windows.Forms.RadioButton tabRadioButton28;
private System.Windows.Forms.RadioButton tabRadioButton29;
private System.Windows.Forms.RadioButton tabRadioButton30;
private System.Windows.Forms.RadioButton tabRadioButton31;
private System.Windows.Forms.RadioButton tabRadioButton32;
private System.Windows.Forms.RadioButton tabRadioButton33;
private System.Windows.Forms.RadioButton tabRadioButton34;
private System.Windows.Forms.RadioButton tabRadioButton35;
private System.Windows.Forms.RadioButton tabRadioButton36;
private System.Windows.Forms.RadioButton tabRadioButton37;
private System.Windows.Forms.RadioButton tabRadioButton38;
private System.Windows.Forms.RadioButton tabRadioButton40;
private System.Windows.Forms.RadioButton tabRadioButton41;
private System.Windows.Forms.RadioButton tabRadioButton42;
private System.Windows.Forms.RadioButton tabRadioButton43;
private System.Windows.Forms.RadioButton tabRadioButton44;
private System.Windows.Forms.RadioButton tabRadioButton45;
private System.Windows.Forms.RadioButton tabRadioButton46;
private System.Windows.Forms.RadioButton tabRadioButton47;
private System.Windows.Forms.RadioButton tabRadioButton48;
private System.Windows.Forms.RadioButton tabRadioButton49;
private System.Windows.Forms.RadioButton tabRadioButton50;
private System.Windows.Forms.RadioButton tabRadioButton51;
private System.Windows.Forms.RadioButton tabRadioButton52;
private System.Windows.Forms.RadioButton tabRadioButton53;
private System.Windows.Forms.RadioButton tabRadioButton54;
private System.Windows.Forms.RadioButton tabRadioButton55;
private System.Windows.Forms.RadioButton tabRadioButton56;
private Control control = new Control();
private System.Windows.Forms.CheckBox tab1CheckBox1;
private System.Windows.Forms.CheckBox tabCheckBox2;
private System.Windows.Forms.CheckBox tabCheckBox3;
private System.Windows.Forms.CheckBox tabCheckBox4;
private System.Windows.Forms.CheckBox tabCheckBox5;
private System.Windows.Forms.CheckBox tabCheckBox6;
private System.Windows.Forms.CheckBox tabCheckBox7;
private System.Windows.Forms.CheckBox tabCheckBox8;
private System.Windows.Forms.CheckBox tabCheckBox9;
private System.Windows.Forms.CheckBox tabCheckBox10;
private System.Windows.Forms.CheckBox tabCheckBox11;
private System.Windows.Forms.CheckBox tabCheckBox12;
private System.Windows.Forms.CheckBox tabCheckBox13;
private System.Windows.Forms.CheckBox tabCheckBox14;
private System.Windows.Forms.CheckBox tabCheckBox15;
private System.Windows.Forms.CheckBox tabCheckBox16;
private System.Windows.Forms.CheckBox tabCheckBox17;
private System.Windows.Forms.CheckBox tabCheckBox18;
private System.Windows.Forms.CheckBox tabCheckBox19;
private System.Windows.Forms.CheckBox tabCheckBox20;
private System.Windows.Forms.CheckBox tabCheckBox21;
private System.Windows.Forms.CheckBox tabCheckBox22;
private System.Windows.Forms.CheckBox tabCheckBox23;
private System.Windows.Forms.CheckBox tabCheckBox24;
private System.Windows.Forms.CheckBox tabCheckBox25;
private System.Windows.Forms.CheckBox tabCheckBox26;
private System.Windows.Forms.CheckBox tabCheckBox27;
private System.Windows.Forms.CheckBox tabCheckBox28;
private System.Windows.Forms.CheckBox tabCheckBox29;
private System.Windows.Forms.CheckBox tabCheckBox30;
private System.Windows.Forms.CheckBox tabCheckBox31;
private System.Windows.Forms.CheckBox tabCheckBox32;
private System.Windows.Forms.CheckBox tabCheckBox33;
private System.Windows.Forms.CheckBox tabCheckBox34;
private System.Windows.Forms.CheckBox tabCheckBox35;
private System.Windows.Forms.CheckBox tabCheckBox36;
private System.Windows.Forms.CheckBox tabCheckBox37;
private System.Windows.Forms.CheckBox tabCheckBox38;
private System.Windows.Forms.CheckBox tabCheckBox39;
private System.Windows.Forms.CheckBox tabCheckBox40;
private System.Windows.Forms.CheckBox tabCheckBox41;
private System.Windows.Forms.CheckBox tabCheckBox42;
private System.Windows.Forms.CheckBox tabCheckBox43;
private System.Windows.Forms.CheckBox tabCheckBox44;
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.TabPage tabPage2;
private System.Windows.Forms.TabPage tabPage3;
private System.Windows.Forms.TabPage tabPage4;
private System.Windows.Forms.RadioButton tab3RadioButton2;
private System.Windows.Forms.RadioButton tab3RadioButton1;
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Label tab1Label1;
private System.Windows.Forms.Button tab1Button1;
List<tabpage> _cache = new List<tabpage>();
public Form1()
{
InitializeComponent();
this.tabControl1.Selected += new TabControlEventHandler(tabControl1_Selected);
}
private void InitializeComponent()
{
this.tab2CheckBox3 = new System.Windows.Forms.CheckBox();
this.tab2CheckBox2 = new System.Windows.Forms.CheckBox();
this.tab2CheckBox1 = new System.Windows.Forms.CheckBox();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tab1CheckBox1 = new System.Windows.Forms.CheckBox();
this.tabCheckBox2 = new System.Windows.Forms.CheckBox();
this.tabCheckBox3 = new System.Windows.Forms.CheckBox();
this.tabCheckBox4 = new System.Windows.Forms.CheckBox();
this.tabCheckBox5 = new System.Windows.Forms.CheckBox();
this.tabCheckBox6 = new System.Windows.Forms.CheckBox();
this.tabCheckBox7 = new System.Windows.Forms.CheckBox();
this.tabCheckBox8 = new System.Windows.Forms.CheckBox();
this.tabCheckBox9 = new System.Windows.Forms.CheckBox();
this.tabCheckBox10 = new System.Windows.Forms.CheckBox();
this.tabCheckBox11 = new System.Windows.Forms.CheckBox();
this.tabCheckBox12 = new System.Windows.Forms.CheckBox();
this.tabCheckBox13 = new System.Windows.Forms.CheckBox();
this.tabCheckBox14 = new System.Windows.Forms.CheckBox();
this.tabCheckBox15 = new System.Windows.Forms.CheckBox();
this.tabCheckBox16 = new System.Windows.Forms.CheckBox();
this.tabCheckBox17 = new System.Windows.Forms.CheckBox();
this.tabCheckBox18 = new System.Windows.Forms.CheckBox();
this.tabCheckBox19 = new System.Windows.Forms.CheckBox();
this.tabCheckBox20 = new System.Windows.Forms.CheckBox();
this.tabCheckBox21 = new System.Windows.Forms.CheckBox();
this.tabCheckBox22 = new System.Windows.Forms.CheckBox();
this.tabCheckBox23 = new System.Windows.Forms.CheckBox();
this.tabCheckBox24 = new System.Windows.Forms.CheckBox();
this.tabCheckBox25 = new System.Windows.Forms.CheckBox();
this.tabCheckBox26 = new System.Windows.Forms.CheckBox();
this.tabCheckBox27 = new System.Windows.Forms.CheckBox();
this.tabCheckBox28 = new System.Windows.Forms.CheckBox();
this.tabCheckBox29 = new System.Windows.Forms.CheckBox();
this.tabCheckBox30 = new System.Windows.Forms.CheckBox();
this.tabCheckBox31 = new System.Windows.Forms.CheckBox();
this.tabCheckBox32 = new System.Windows.Forms.CheckBox();
this.tabCheckBox33 = new System.Windows.Forms.CheckBox();
this.tabCheckBox34 = new System.Windows.Forms.CheckBox();
this.tabCheckBox35 = new System.Windows.Forms.CheckBox();
this.tabCheckBox36 = new System.Windows.Forms.CheckBox();
this.tabCheckBox37 = new System.Windows.Forms.CheckBox();
this.tabCheckBox38 = new System.Windows.Forms.CheckBox();
this.tabCheckBox39 = new System.Windows.Forms.CheckBox();
this.tabCheckBox40 = new System.Windows.Forms.CheckBox();
this.tabCheckBox41 = new System.Windows.Forms.CheckBox();
this.tabCheckBox42 = new System.Windows.Forms.CheckBox();
this.tabCheckBox43 = new System.Windows.Forms.CheckBox();
this.tabCheckBox44 = new System.Windows.Forms.CheckBox();
this.tabRadioButton = new System.Windows.Forms.RadioButton();
this.tab1Radio1Button1 = new System.Windows.Forms.RadioButton();
this.tab2Radio2Button2 = new System.Windows.Forms.RadioButton();
this.tab3Radio3Button3 = new System.Windows.Forms.RadioButton();
this.tab4Radio4Button4= new System.Windows.Forms.RadioButton();
this.tab5Radio5Button5 = new System.Windows.Forms.RadioButton();
this.tab6Radio6Button6 = new System.Windows.Forms.RadioButton();
this.tab7Radio7Button7 = new System.Windows.Forms.RadioButton();
this.tab8Radio8Button8 = new System.Windows.Forms.RadioButton();
this.tab9Radio9Button9 = new System.Windows.Forms.RadioButton();
this.tab10Radio10Button10 = new System.Windows.Forms.RadioButton();
this.tab11Radio11Button11 = new System.Windows.Forms.RadioButton();
this.tab12Radio12Button12 = new System.Windows.Forms.RadioButton();
this.tab13Radio13Button13 = new System.Windows.Forms.RadioButton();
this.tab14Radio14Button14 = new System.Windows.Forms.RadioButton();
this.tabRadioButton15 = new System.Windows.Forms.RadioButton();
this.tabRadioButton16 = new System.Windows.Forms.RadioButton();
this.tabRadioButton17 = new System.Windows.Forms.RadioButton();
this.tabRadioButton18 = new System.Windows.Forms.RadioButton();
this.tabRadioButton19 = new System.Windows.Forms.RadioButton();
this.tabRadioButton20 = new System.Windows.Forms.RadioButton();
this.tabRadioButton21 = new System.Windows.Forms.RadioButton();
this.tabRadioButton22 = new System.Windows.Forms.RadioButton();
this.tabRadioButton23 = new System.Windows.Forms.RadioButton();
this.tabRadioButton24 = new System.Windows.Forms.RadioButton();
this.tabRadioButton25 = new System.Windows.Forms.RadioButton();
this.tabRadioButton26 = new System.Windows.Forms.RadioButton();
this.tabRadioButton27 = new System.Windows.Forms.RadioButton();
this.tabRadioButton28 = new System.Windows.Forms.RadioButton();
this.tabRadioButton29 = new System.Windows.Forms.RadioButton();
this.tabRadioButton30 = new System.Windows.Forms.RadioButton();
this.tabRadioButton31 = new System.Windows.Forms.RadioButton();
this.tabRadioButton32 = new System.Windows.Forms.RadioButton();
this.tabRadioButton33 = new System.Windows.Forms.RadioButton();
this.tabRadioButton34 = new System.Windows.Forms.RadioButton();
this.tabRadioButton35 = new System.Windows.Forms.RadioButton();
this.tabRadioButton36 = new System.Windows.Forms.RadioButton();
this.tabRadioButton37 = new System.Windows.Forms.RadioButton();
this.tabRadioButton38 = new System.Windows.Forms.RadioButton();
this.tabRadioButton40 = new System.Windows.Forms.RadioButton();
this.tabRadioButton41 = new System.Windows.Forms.RadioButton();
this.tabRadioButton42 = new System.Windows.Forms.RadioButton();
this.tabRadioButton43 = new System.Windows.Forms.RadioButton();
this.tabRadioButton44 = new System.Windows.Forms.RadioButton();
this.tabRadioButton45 = new System.Windows.Forms.RadioButton();
this.tabRadioButton46 = new System.Windows.Forms.RadioButton();
this.tabRadioButton47 = new System.Windows.Forms.RadioButton();
this.tabRadioButton48 = new System.Windows.Forms.RadioButton();
this.tabRadioButton49 = new System.Windows.Forms.RadioButton();
this.tabRadioButton50 = new System.Windows.Forms.RadioButton();
this.tabRadioButton51 = new System.Windows.Forms.RadioButton();
this.tabRadioButton52 = new System.Windows.Forms.RadioButton();
this.tabRadioButton53 = new System.Windows.Forms.RadioButton();
this.tabRadioButton54 = new System.Windows.Forms.RadioButton();
this.tabRadioButton55 = new System.Windows.Forms.RadioButton();
this.tabRadioButton56 = new System.Windows.Forms.RadioButton();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.tabPage4 = new System.Windows.Forms.TabPage();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.tab1Label1 = new System.Windows.Forms.Label();
this.tab1Button1 = new System.Windows.Forms.Button();
this.tab3RadioButton2 = new System.Windows.Forms.RadioButton();
this.tab3RadioButton1 = new System.Windows.Forms.RadioButton();
this.tabControl1.SuspendLayout();
this.SuspendLayout();
//
// tabControl1
//
tabPage1.Controls.Add(this.tab2CheckBox1);
tabPage2.Controls.Add(this.tab1Label1);
tabPage2.Controls.Add(this.tab1Button1);
tabPage3.Controls.Add(this.tab3RadioButton2);
tabPage3.Controls.Add(this.tab3RadioButton1);
//design of all the controls did not provide coz lack of space
this.Name = "Form1";
this.Text = "TabPages";
this.tabControl1.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
private void tab1Button1_Click(object sender, System.EventArgs e)
{
// Inserts the code that should run when the button is clicked.
}
void tabControl1_Selected(object sender, TabControlEventArgs e)
{
if (e.TabPage != null)
{
if (_cache.Contains(e.TabPage))
{
_cache.Remove(e.TabPage);
}
_cache.Add(e.TabPage);
}
}
private void button1_Click(object sender, EventArgs e)
{
TabPage page = new TabPage("TabPage" + pageNumber.ToString());
AddControlsToTabPage(page);
this.tabControl1.TabPages.Add(page);
pageNumber++;
this.tabControl1.SelectedTab = page;
}
private void AddControlsToTabPage(TabPage page)
{
page.Controls.Add(this.tab1CheckBox1);
page.Controls.Add(this.tabCheckBox2);
page.Controls.Add(this.tabCheckBox3);
page.Controls.Add(this.tabCheckBox4);
page.Controls.Add(this.tabCheckBox5);
page.Controls.Add(this.tabCheckBox6);
page.Controls.Add(this.tabCheckBox7);
page.Controls.Add(this.tabCheckBox8);
page.Controls.Add(this.tabCheckBox9);
page.Controls.Add(this.tabCheckBox10);
page.Controls.Add(this.tabCheckBox11);
page.Controls.Add(this.tabCheckBox12);
page.Controls.Add(this.tabCheckBox13);
page.Controls.Add(this.tabCheckBox14);
page.Controls.Add(this.tabCheckBox15);
page.Controls.Add(this.tabCheckBox16);
page.Controls.Add(this.tabCheckBox17);
page.Controls.Add(this.tabCheckBox18);
page.Controls.Add(this.tabCheckBox19);
page.Controls.Add(this.tabCheckBox20);
page.Controls.Add(this.tabCheckBox21);
page.Controls.Add(this.tabCheckBox22);
page.Controls.Add(this.tabCheckBox23);
page.Controls.Add(this.tabCheckBox24);
page.Controls.Add(this.tabCheckBox25);
page.Controls.Add(this.tabCheckBox26);
page.Controls.Add(this.tabCheckBox27);
page.Controls.Add(this.tabCheckBox28);
page.Controls.Add(this.tabCheckBox29);
page.Controls.Add(this.tabCheckBox30);
page.Controls.Add(this.tabCheckBox31);
page.Controls.Add(this.tabCheckBox32);
page.Controls.Add(this.tabCheckBox33);
page.Controls.Add(this.tabCheckBox34);
page.Controls.Add(this.tabCheckBox35);
page.Controls.Add(this.tabCheckBox36);
page.Controls.Add(this.tabCheckBox37);
page.Controls.Add(this.tabCheckBox38);
page.Controls.Add(this.tabCheckBox39);
page.Controls.Add(this.tabCheckBox40);
page.Controls.Add(this.tabCheckBox41);
page.Controls.Add(this.tabCheckBox42);
page.Controls.Add(this.tabCheckBox43);
page.Controls.Add(this.tabCheckBox44);
page.Controls.Add(this.tabRadioButton);
page.Controls.Add(this.tab1Radio1Button1);
page.Controls.Add(this.tab2Radio2Button2);
page.Controls.Add(this.tab3Radio3Button3);
page.Controls.Add(this.tab4Radio4Button4);
page.Controls.Add(this.tab5Radio5Button5);
page.Controls.Add(this.tab6Radio6Button6);
page.Controls.Add(this.tab7Radio7Button7);
page.Controls.Add(this.tab8Radio8Button8);
page.Controls.Add(this.tab9Radio9Button9);
page.Controls.Add(this.tab10Radio10Button10);
page.Controls.Add(this.tab11Radio11Button11);
page.Controls.Add(this.tab12Radio12Button12);
page.Controls.Add(this.tab13Radio13Button13);
page.Controls.Add(this.tab14Radio14Button14);
page.Controls.Add(this.tabRadioButton15);
page.Controls.Add(this.tabRadioButton16);
page.Controls.Add(this.tabRadioButton17);
page.Controls.Add(this.tabRadioButton18);
page.Controls.Add(this.tabRadioButton19);
page.Controls.Add(this.tabRadioButton20);
page.Controls.Add(this.tabRadioButton21);
page.Controls.Add(this.tabRadioButton22);
page.Controls.Add(this.tabRadioButton23);
page.Controls.Add(this.tabRadioButton24);
page.Controls.Add(this.tabRadioButton25);
page.Controls.Add(this.tabRadioButton26);
page.Controls.Add(this.tabRadioButton27);
page.Controls.Add(this.tabRadioButton28);
page.Controls.Add(this.tabRadioButton29);
page.Controls.Add(this.tabRadioButton30);
page.Controls.Add(this.tabRadioButton31);
page.Controls.Add(this.tabRadioButton31);
page.Controls.Add(this.tabRadioButton32);
page.Controls.Add(this.tabRadioButton33);
page.Controls.Add(this.tabRadioButton34);
page.Controls.Add(this.tabRadioButton35);
page.Controls.Add(this.tabRadioButton36);
page.Controls.Add(this.tabRadioButton37);
page.Controls.Add(this.tabRadioButton38);
page.Controls.Add(this.tabRadioButton40);
page.Controls.Add(this.tabRadioButton41);
page.Controls.Add(this.tabRadioButton42);
page.Controls.Add(this.tabRadioButton43);
page.Controls.Add(this.tabRadioButton44);
page.Controls.Add(this.tabRadioButton45);
page.Controls.Add(this.tabRadioButton46);
page.Controls.Add(this.tabRadioButton47);
page.Controls.Add(this.tabRadioButton48);
page.Controls.Add(this.tabRadioButton49);
page.Controls.Add(this.tabRadioButton50);
page.Controls.Add(this.tabRadioButton51);
page.Controls.Add(this.tabRadioButton52);
page.Controls.Add(this.tabRadioButton53);
page.Controls.Add(this.tabRadioButton54);
page.Controls.Add(this.tabRadioButton55);
page.Controls.Add(this.tabRadioButton56);
}
private void button2_Click(object sender, EventArgs e)
{
if (_cache.Count > 0)
{
this.tabControl1.Selected -= new TabControlEventHandler(tabControl1_Selected);
this.tabControl1.TabPages.Remove(_cache[_cache.Count - 1]);
this.tabControl1.Selected += new TabControlEventHandler(tabControl1_Selected);
_cache.RemoveAt(_cache.Count - 1);
}
if (_cache.Count > 0)
{
this.tabControl1.SelectedTab = _cache[_cache.Count - 1];
}
}
}
}
Now problem with my program is that i have 100 controls added to tabpages ,when i click on add button
I add the tabpages with these 100 controls but only the last tabpage has these 100 controls when i
open the previous added tabpages they are empty.But, noe i want the functinality in such a way that
suppos i add infinite tabpages all those tabpages should have these same 100 controls when i open
the added tabpages, that is i need to add controls to tabpages while creating it.If u ar not clear with my requirement pls let
me know.I am going in loops i need to
find a solution to my problem pls help me out.Well, i have to find a way to add controls to the tab page wile creating tabpage.
So how do i do that can u pls help me.
Thanks in advance
|
|
|
|
|
First of all,
Way too much code for a simple question. No one would read all that. Just post the necessary code to illustrate your problem. And it's not ADO.Net related btw.
swapna chow wrote: But, noe i want the functinality in such a way that
suppos i add infinite tabpages all those tabpages should have these same 100 controls when i open
the added tabpages, that is i need to add controls to tabpages while creating it.
Anyway, how about putting the 100 controls in a single collection List<Control> , for example, and in form Load event (for example) iterate over the tabpages and add all the controls for each tabpage.
Or even better create a custom control or a custom tabpage to hold the controls you want and add this control or page to all the tabpages you want.
You may want to handle the Selected event then to destroy the custom control/page that is no longer in selection. Be careful, you'd need to keep references somehow to your data entities.
Eslam Afifi
|
|
|
|