469,293 Members | 1,335 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,293 developers. It's quick & easy.

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 4481
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 CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.