473,372 Members | 859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 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 4643
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

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

Similar topics

13
by: mr_burns | last post by:
hi, is it possible to change the contents of a combo box when the contents of another are changed. for example, if i had a combo box called garments containing shirts, trousers and hats, when...
1
by: Jim Heavey | last post by:
Hello, I have a web page with a <ASP:Table> control on the form. This table also has 5 DataListControls on 5 seperate <ASP:TableRow> controls. In code I am dynamically adding TableRow controls...
2
by: Dave Williamson | last post by:
When a ASPX page is created with dynamic controls based on what the user is doing the programmer must recreate the dynamic controls again on PostBack in the Page_Load so that it's events are wired...
0
by: Pascal Costanza | last post by:
Dynamic Languages Day @ Vrije Universiteit Brussel ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Monday, February 13, 2006, VUB Campus Etterbeek The VUB (Programming Technology Lab,...
13
by: salad | last post by:
Operating in A97. I didn't receive much of a response conserning Pivot tables in Access. Pivot tables are nice, but a CrossTab will work for me too. Using a Pivot table, one is actually...
0
by: Hugh Janus | last post by:
This is driving me crazy! It should be so simple! Can anyone tell me what is going wrong? All I am doing is adding a single button to a form but it fails :-( I am using VB.NET 2005 to create...
11
by: julie.siebel | last post by:
I'm working on a rather complex booking system for building European trips, in a combination of SQL/VBScript/Javascript. There are tons of query string variables that get passed back and forth...
1
by: cdmsenthil | last post by:
I have an Infragistics UltrawebGrid . Each Row in the grid is attached to a context menu using Infragistics CSOM Upon click on the menu, I am creating an Iframe dynamically which points to...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.