473,387 Members | 1,834 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,387 software developers and data experts.

Web Browser in Windows App

I'm hoping to verify that we are on the right track. We have a windows based
application that we are developing which allows the user to fill out various
loan application forms. There are several pages for each loan application
and 20 fields for user entered data on each page. The loan applications will
also change format over time. We don't want to create a separate windows
form for each application and the layout is such that it would be difficult
to build the pages on the fly. So our design thought was to place a Web
Browser control in the windows form. Each loan application and page would be
stored in a DB as HTML. Then we would display the page allowing the user to
change the text box values, etc in a web browser control. On the click of a
button (inside the browser control or in the Window app??), we could pull the
fields out of HTML and the associated user entered values and store them in
the DB for that loan application page. Does this sound feasible? Is there a
better control to use? I'm familiar with TXText, but it's expensive and
sometimes difficult to work with. Any advice is appreciated.
Thanks.

Apr 21 '06 #1
6 1389
Thanks for your reply. I forgot to mention, they don't have an Intranet on
site and don't desire an Internet based app (because they don't want to host
it) so I think that kills the server option or ASP.NET. If you use adobe
forms, I assume you would need ADOBE plus their dev tool kit (to interface
into an application). Will what we suggested work?

"Spam Catcher" wrote:
=?Utf-8?B?TGlzYUNvbnN1bHQ=?= <li**********@online.nospam> wrote in
news:85**********************************@microsof t.com:
On the click of a
button (inside the browser control or in the Window app??), we could
pull the fields out of HTML and the associated user entered values and
store them in the DB for that loan application page. Does this sound
feasible?


I would make the WebBrowserControl call a web app. The web app will
display templates with the appropriate boxes and save the data to a
database.

This way - all saving logic is placed server side - preventing clients
from mangaling the data.

With my app - I used regular expressions to parse out custom tags within
formatted HTML. I defined my input fields as text - i.e. [text
name="Address"]. My regular expressions (ASP.NET) would parse out these
fields and dynamically generate the input form.

Here's another idea I've done before - build a plugin system. Each form
is a DLL inheriting a common interface. This allows you to build
customized forms/apps but have the ability to load it from 1 interface.

Here's an article on how to build a plugin system with VB.NET:

http://www.developerfusion.co.uk/show/4371/

So lots of ways of doing it - I've done it in ASP.NET using text parsing
+ dynamic form generation as well as using plugins and customized forms.

Text parsing allows for easier changes (no need to deploy DLLs to the
client) but has less customizability. Option #2 allows you to build
really fancy apps (in esscence each DLL is a unique app) but requires
more dev time.

P.S. Adobe also has an input form application ... you might want to look
at that as well.

Apr 21 '06 #2
Lisa,

What is it that you want to use a webbrowser. The way I read it, is a
textbox or a richtexbox more than enough. Asked in another way, what you
expect from the HTML?

Although what you want is not impossible, however needs a lot of knowledge
from HTML and VB.Net and a lot of time because the documentation goes not so
far in this. The the webbrowser does not always work as expected. It is only
an easy wrapper around IE.

In fact am I busy with something as you write (a new editor for our 2.0
website) and have past all the hard problems.

Cor

"LisaConsult" <li**********@online.nospam> schreef in bericht
news:85**********************************@microsof t.com...
I'm hoping to verify that we are on the right track. We have a windows
based
application that we are developing which allows the user to fill out
various
loan application forms. There are several pages for each loan application
and 20 fields for user entered data on each page. The loan applications
will
also change format over time. We don't want to create a separate windows
form for each application and the layout is such that it would be
difficult
to build the pages on the fly. So our design thought was to place a Web
Browser control in the windows form. Each loan application and page would
be
stored in a DB as HTML. Then we would display the page allowing the user
to
change the text box values, etc in a web browser control. On the click of
a
button (inside the browser control or in the Window app??), we could pull
the
fields out of HTML and the associated user entered values and store them
in
the DB for that loan application page. Does this sound feasible? Is
there a
better control to use? I'm familiar with TXText, but it's expensive and
sometimes difficult to work with. Any advice is appreciated.
Thanks.

Apr 22 '06 #3
Hello,

I think this solution is possible. The webbrowser control ( in VS.NET 2005)
has a property named "Document" which is a HTMLDocument object. It can call
its GetElementById method to get the elements in the web page, for example,
a TextBox or a Dropdown Box.

Any, you may also take a look at InfoPath in MS Office solution:

http://www.microsoft.com/office/info...o/default.mspx

It is alos a flexible solution when user need to fill multiple forms and
submit to database.

Regards,

Luke Zhang
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Apr 24 '06 #4
Yes, I will have a server, but they do not run IIS, so I wont have the
ability to Submit asp pages.

"Spam Catcher" wrote:
=?Utf-8?B?TGlzYUNvbnN1bHQ=?= <li**********@online.nospam> wrote in
news:87**********************************@microsof t.com:
Thanks for your reply. I forgot to mention, they don't have an
Intranet on site and don't desire an Internet based app (because they
don't want to host it) so I think that kills the server option


You'll need a server anyways right? Where are you going to save the data
to?

or
ASP.NET. If you use adobe forms, I assume you would need ADOBE plus
their dev tool kit (to interface into an application). Will what we
suggested work?


Yes you need their dev tools + server + reader.

Apr 24 '06 #5
I wanted to use a web browser, because I have the form which will prompt the
user for values and I would like to retrieve the values which the user
entered. I don't believe that I could do that with a text box or rich text
box unless I developed the forms using labels. For instance Application may
have field Enter premium: [Text box to enter premium]. I don't want to put
this as a label and text box on the form because it may be on Page 1 of the
application this year and page 2 next year or it may appear this year and be
completely gone next year. I don't want to create a new form for each year.
I thought placing it in HTML would allow this versatility without as much
maintenance from year to year. Make sense?

When you say that the webbrowser control does not work as expected, is that
with straight HTML or ASP or ?. Just curious what types of roadblocks you
have run into.

Thanks.

Apr 24 '06 #6
Lisa,

I still don't see it, did you ever thought about just a datagrid?

Cor
Apr 24 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

22
by: Theo | last post by:
Question for the group The authentication system for the site Im working on seems to function properly and all is good. A session keeps track of everything and a cookie is used to accept or deny...
2
by: PK | last post by:
Hello, I am looking for help on the following. I'm trying to create a custom browser toolbar button that will do a few things. One that I'm trying to do at the moment is just simply return the...
13
by: Kai Grossjohann | last post by:
It seems that Ctrl-N in Mozilla opens a new empty browser window. That's fine, I don't need to do anything about it. But Ctrl-N in IE appears to clone the current window. Is there a way to...
16
by: Java script Dude | last post by:
To all Mozilla JS Guru's (IE dudes welcome), I have spent the last three years developing complex DHTML applications that must work in IE 5.5sp2+ but I use Mozilla 1.3+** to do all my...
20
by: msa | last post by:
Hi there, First off, let me say that I know that launching to full screen is a bad idea. I would never do it given the choice, but I must follow orders from my boss, the boss that desparately...
33
by: randau | last post by:
Linking to a Targeted Browser Window I'd like to open reference links to other web sites in a separate browser window from the browser window hosting my own web site pages. The Link Target...
5
by: David Baker | last post by:
Hi all I am very new to ASP.Net. I am trying to create a sniffer for our program. We want our users to click our sniffer and hopefully the sniffer will check their computer against our...
4
by: Peter Larsen | last post by:
Hi, I want to be able to show a file browser embedded on a form - a browser which is similar to the browser you get by SHBrowseForFolder(). Is that possible ? Thank you in advance. BR Peter...
5
by: jeremy | last post by:
I have an ASP.Net 2.0 application running on Windows Server 2003. The application displays properly in Internet Explorer, however, when I use a browser control embedded in a .net form, I get an...
0
by: etnaelk | last post by:
Hi all, I have a real bugger of a problem that I just haven't been able to figure out. I am working on writing my own proxy server in C# using TcpListener, TcpClient, HttpWebRequest/Response and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.