473,387 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

How to generate a textbox dynamicly?

please help me!
Nov 16 '05 #1
1 1274
Hi,
you have to look to the code that Visual Studio generate for you when you
add a textbox from the toolbox and then reproduce all this statements
programmatically.
In details:

1) declaration:
private System.Windows.Forms.TextBox textbox1;

2) instance:
this.textbox1 = new System.Windows.Forms.TextBox();

3) properties:

this.textbox1.Location = new System.Drawing.Point(16, 264);

this.textbox1.Name = "txtLog";

this.textbox1.Size = new System.Drawing.Size(264, 224);

this.textbox1TabIndex = 9;

this.textbox1.Text = "";

add all properties that you need

4) add your control:

this.Controls.Add(this.textbox1);

I hope this will help you.

Fede
<ly***@citiz.net> ha scritto nel messaggio
news:OU**************@tk2msftngp13.phx.gbl...
please help me!

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: jcleonard | last post by:
Hi, I'm looking fo a solution to generate automaticaly a PDF file. My aim is to use a template define by a user and to insert dynamicly datas form SQL server in this document. Can you tell...
2
by: Stephen Tang | last post by:
Hi, I'm relatively new at this language, so I've been trying to find parallels to problems I've run into in the past. This is the hypothetical problem: I want to write a CD inventory...
0
by: mahsa | last post by:
Hi i want to add checkbox and textbox dynamicly I use this for check box but it has erro CheckBox box = new CheckBox() this.box.CheckedChanged += new System.EventHandler(this.box_CheckedChanged)...
1
by: Henke | last post by:
Hi I have a aspx-page with a panel-control. On this panel control I add user controls dynamicly with LoadControl and panel.Controls.Add(myControl). On some of the dynamicly added user controls I...
0
by: roberto | last post by:
This is basically repost of my previous (unanswered) question. What I try to do is to generate Web controls on the Page surface during design time from withing my own component; they do appear in...
0
by: | last post by:
Hello! I need to get value of dynamicly created textbox on client script. I use GetElementById("mytext") but it doesnt work. Any help appreciated. function addRowToTable() { var tbl =...
4
by: WB | last post by:
Hi, How can I generate web controls such as textboxes and drop-menus on the fly? My web application allows users to fill out PDF forms online. There are many PDF forms, and my application...
8
by: Randy | last post by:
I'm don't even know where to start on this one. I have a form where the user is allowed to add one row at a time to a table via textboxes. Imagine an order with an undefined number of items to be...
1
by: =?Utf-8?B?UGV0ZXI=?= | last post by:
I read this article: http://msdn2.microsoft.com/en-us/library/tf579hcz.aspx The example in the article is using the SqlCommandBuilder. Is it possible to generate commands automatically using...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.