Discussion Locked

Dynamic html form generation

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Is it possible to generate html form from visual basic form fields like values stored in database.
for e.g in database there are fields stored with type as textbox and properties like top=200,left=3000 etc.

1 reply

by funlurn

Hello,

I have tried to generate html pages using following logic.

1) Storing left and top co-ordinates of lables, buttons etc. form items into database table. To generate vb form, one need to carefull on placing form items line by line.

2) By using stored co-ordinates, html page is generated. Here table width is considered by calculating maximum fields in a row and as per that

are generated.

3) Fields which have +-100 co-ordinates are displayed in single line.

for eg. if two fields have top as 1000 and 1050 then they will be displayed on single line.

This helped to generate html form with same fields in VB form.

This discussion is closed to new replies.