471,330 Members | 1,351 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

Control MetaData

Is There A Way To Change The Default Properties Of the Controls

For Example

If we place a button on on the form its default name is button1 and
if we place the next button its button2 and so on..

Instead i want it to be btn1, btn2, btn3 by default...

I know to create it by using a component class

namespace System.Windows.Forms
public class btn : System.Windows.Forms.Button

private System.ComponentModel.IContainer components = null;

protected override void Dispose(bool disposing)
if (disposing && (components != null))

private void InitializeComponent()
components = new System.ComponentModel.Container();

public btn()

public btn(IContainer container)



However I want to change this without creating a new class for it..

Is there a way to do this by editing the meta data..

if yes wats the procedure..
Thanks In Advance


Jun 27 '08 #1
0 729

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Useko Netsumi | last post: by
1 post views Thread by Brett Selleck | last post: by
1 post views Thread by Santhu | last post: by
1 post views Thread by ANDRES BECERRA | last post: by
1 post views Thread by Laurent Lequenne | last post: by
2 posts views Thread by EP | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.