Results 1 to 7 of 7

Thread: Challenging Coding

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Location
    Bangalore
    Posts
    172

    Thumbs up 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

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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."
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Location
    Bangalore
    Posts
    172

    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

    Quote 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."

  4. #4
    Hyperactive Member BrandonTurner's Avatar
    Join Date
    Sep 2001
    Location
    East Lansing, Michiagn
    Posts
    268

    Re: Challenging Coding

    just look at how the IDE creates the controls using the designer, it is really rather simple.

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Location
    Bangalore
    Posts
    172

    Re: Challenging Coding

    ok
    Thank you
    also please link me to programmers who help me out for my runtime project

    Quote 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.

  7. #7
    Fanatic Member
    Join Date
    May 2001
    Posts
    837

    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
  •  



Click Here to Expand Forum to Full Width