471,616 Members | 1,076 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Dynamic form creation c#.net mobile application

42
hi all,
can any one help me to create dynamic forms in windows mobile application.

here in my application, i'm requesting a server response, and the server response contains directions for the GUI's . here i need to add forms, and within that form i need to add menus, labels, list etc... according to the response.

can any one help me to get this done...
Oct 23 '08 #1
2 4553
markmcgookin
648 Expert 512MB
hi all,
can any one help me to create dynamic forms in windows mobile application.

here in my application, i'm requesting a server response, and the server response contains directions for the GUI's . here i need to add forms, and within that form i need to add menus, labels, list etc... according to the response.

can any one help me to get this done...
The problem here is adding the event handlers for buttons, as you can't assign that at runtime. What you could do is create all the buttons/functions that you need and then show/hide them dependant on your server response?

Expand|Select|Wrap|Line Numbers
  1. pseudo-code:
  2.  
  3. if (response == serverResponse.TypeA)
  4. {
  5.     myFirstButton.visible = true;;
  6.     myMenu.Items.Add(MenuItem1);
  7. }
  8. else if (response == serverResponse.TypeB)
  9. {
  10.     myOtherButton.visible = true;
  11.     myMenu.Items.Add(MenuItem2);
  12. }
  13.  
Or something along those lines?
Oct 24 '08 #2
libish
42
thank you so much for that reply...
Oct 24 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

13 posts views Thread by mr_burns | last post: by
1 post views Thread by Jim Heavey | last post: by
2 posts views Thread by Dave Williamson | last post: by
reply views Thread by Pascal Costanza | last post: by
reply views Thread by Hugh Janus | last post: by
11 posts views Thread by julie.siebel | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | 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.