|
-
Apr 24th, 2006, 05:33 AM
#1
Thread Starter
Addicted Member
Challenging Coding
i
I am c sharp programmer
i need some help ...
Requirement :
1: Read a XML File
2: From the data read from the xml created run time controls
i.e if xml have date saying <control name="TextBox",name="TBox">
i should able to create text box in the form with that name
also event handler class should be there to catch the events like xml have ADD button...when i click the add button....some of the text boxes should come.
so
first is to create controls from xml
second event hadling
inputs:
xml file
and some other file which tells whether to add or divide or other operations
HOPE U ALL GOT MY DOUBTS
Please reply
and tell me where i can get articles for runtime control creations
Thanks
-
Apr 24th, 2006, 05:38 AM
#2
Re: Challenging Coding
I recommend deleting the contents of your post on the VB.NET forum and changing the title to something like "Posted in error. Please delete."
-
Apr 24th, 2006, 06:14 AM
#3
Thread Starter
Addicted Member
Re: Challenging Coding
why?
u only told shift the post from vb to c sharp dot net...
so i wrote here again...
still i dint found the solution sir
thank you
 Originally Posted by jmcilhinney
I recommend deleting the contents of your post on the VB.NET forum and changing the title to something like "Posted in error. Please delete."
-
Apr 24th, 2006, 07:06 AM
#4
Hyperactive Member
Re: Challenging Coding
just look at how the IDE creates the controls using the designer, it is really rather simple.
-
Apr 24th, 2006, 07:38 AM
#5
Re: Challenging Coding
Because this is a C# question and belongs in the C# forum. Now you have it here the old one in the VB.NET forum should be deleted. You can't do that yourself so if you do what I suggested a moderator will see it and delete it for you.
-
Apr 25th, 2006, 07:35 AM
#6
Thread Starter
Addicted Member
Re: Challenging Coding
ok
Thank you
also please link me to programmers who help me out for my runtime project
 Originally Posted by jmcilhinney
Because this is a C# question and belongs in the C# forum. Now you have it here the old one in the VB.NET forum should be deleted. You can't do that yourself so if you do what I suggested a moderator will see it and delete it for you.
-
May 1st, 2006, 03:38 PM
#7
Fanatic Member
Re: Challenging Coding
.NET has a whole XML library that I've always had trouble using.
About creating dynamic controls you simply create an instance of the control as a regular variable, set the width/height/position properties, wire up events, and add it to the Controls collection of the form (or container such as a group box or panel).
Off the top of my head:
TextBox txt = new TextBox();
txt.Top = 100;
txt.Left = 100;
txt.Width = 200;
txt.Height = 100;
txt.TextChanged += new EventHandler(txt_TextChanged); //standard way of hooking up an event
Me.Controls.Add(txt);
The human brain cannot hold all of the knowledge that exists in this world, but it can hold pointers to that knowledge.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|