hi this is srikanth i created one dynamic form in c#.net of windows application and also i put the some controlls on that upto now no problem but no one event fireing occurs for that what should i do
the follwing line code was i written ::
private void btnSignIn_Click(object sender, EventArgs e)
{
try
{
if (txtUserName.Text == "sri")
{
if (txtPassword.Text == "sri")
{
Form frm = new Form();
MessageBox.Show("hello " + txtUserName.Text.ToString());
frm.Show();
TextBox t = new TextBox();
t.Location = new Point(100, 20);
frm.Width = 778; frm.Height = 446;
LinkLabel lnknext = new LinkLabel();
LinkLabel lnkclose = new LinkLabel();
lnkclose.Text = "close";
lnknext.Text = "next";
lnknext.Font = new Font("italic", 12);
lnkclose.Font = new Font("italic", 12);
lnknext.Location = new Point(80, 60);
lnkclose.Location = new Point(200, 60);
frm.Controls.Add(t);
frm.Controls.Add(lnknext);
frm.Controls.Add(lnkclose);
MessageBox.Show(t.Text.ToString());
}
else
MessageBox.Show("invailed.......");
}
else
MessageBox.Show("invailed.......");
}
catch (Exception ex)
{
throw ex;
}
}
private void btnCancel_Click(object sender, EventArgs e)
{
Close();
}
private void lnkclose_Click(object sender, EventArgs e)
{
MessageBox.Show("****from child form..........");
Close();
}
1 1237
hi this is srikanth i created one dynamic form in c#.net of windows application and also i put the some controlls on that upto now no problem but no one event fireing occurs for that what should i do
the follwing line code was i written ::
private void btnSignIn_Click(object sender, EventArgs e)
{
try
{
if (txtUserName.Text == "sri")
{
if (txtPassword.Text == "sri")
{
Form frm = new Form();
MessageBox.Show("hello " + txtUserName.Text.ToString());
frm.Show();
TextBox t = new TextBox();
t.Location = new Point(100, 20);
frm.Width = 778; frm.Height = 446;
LinkLabel lnknext = new LinkLabel();
LinkLabel lnkclose = new LinkLabel();
lnkclose.Text = "close";
lnknext.Text = "next";
lnknext.Font = new Font("italic", 12);
lnkclose.Font = new Font("italic", 12);
lnknext.Location = new Point(80, 60);
lnkclose.Location = new Point(200, 60);
frm.Controls.Add(t);
frm.Controls.Add(lnknext);
frm.Controls.Add(lnkclose);
MessageBox.Show(t.Text.ToString());
}
else
MessageBox.Show("invailed.......");
}
else
MessageBox.Show("invailed.......");
}
catch (Exception ex)
{
throw ex;
}
}
private void btnCancel_Click(object sender, EventArgs e)
{
Close();
}
private void lnkclose_Click(object sender, EventArgs e)
{
MessageBox.Show("****from child form..........");
Close();
}
Do you know which of the events are not being fired? and the names of the respective controls!
You most probably need to register the event handlers. Let me know if you arent able to do it. And post the dynamic variables and their associated events which have to be fired.
Cheers
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Roel Wuyts |
last post by:
CALL FOR CONTRIBUTIONS
International Workshop on Revival of Dynamic Languages
http://pico.vub.ac.be/~wdmeuter/RDL04/index.html
(at OOPSLA2004, Vancouver, British Columbia, Canada, October...
|
by: Ashish Shridharan |
last post by:
Hi All
I have been trying to add a control to the header cell of
a datagrid on my ASP.NET page. These controls are defined
in the HTML as ASP.NET web controls.
They are being added into the...
|
by: paja |
last post by:
Hi
I need to use the "Slider" control. When I drag and drop this contol I get a message that the ActiveX is not licensed and cannot be used
In older version where this Slider was used...
|
by: paja |
last post by:
Hello All
I have been trying looking for Slider control required for one of the application. I have looked in default Form controls, then tried to add controls from COM components, but could not...
|
by: Materialised |
last post by:
Hi Everyone,
I apologise if this is covered in the FAQ, I did look, but nothing
actually stood out to me as being relative to my subject.
I want to create a 2 dimensional array, a 'array of...
|
by: Jakob Nielsen |
last post by:
I have implemented a container class with IList and bound it to a listbox.
Works just fine, but if i then add a new item to my list, the listbox is not
updated.
Looking at the definition for...
|
by: Pascal Costanza |
last post by:
Dynamic Languages Day @ Vrije Universiteit Brussel
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Monday, February 13, 2006, VUB Campus Etterbeek
The VUB (Programming Technology Lab,...
|
by: bearophileHUGS |
last post by:
I often use Python to write small programs, in the range of 50-500
lines of code. For example to process some bioinformatics data,
perform some data munging, to apply a randomized optimization...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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...
|
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,...
|
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: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |