Tables and Response.Redirect WIN forms equivalents

G

Guest

I am taking an ASP.NET application offline (into a windows forms app) and I
was wondering if anyone can help me in two particular areas.

1 - On the web, Response.Redirect directs you to a different web form.
However, in windows, all I can find is Form.Show, which opens a form in a new
window. Is there a way to move between forms in windows and stay within the
same application window.

2 - Most of the content in my ASP application is loaded dynamically, and I
use an HTML table to load text, images, and other media. Is there a similar
control in windows? I havent found anything besides a datagrid, and the only
application I've ever used a datagrid for is a message board-type app.

Any help on either front would be greatly appreciated, as both of these
problems are causing some down time in my development

Thanks in advance!
 
B

Bob Powell [MVP]

There aren't any good analogues for the ASP+ / web based application in
Windows Forms.

You could create user controls that represent your various form pages and
instead of doing Response.Redirect your application would remove one control
and dynamically substitute another.

There is nothing in Windows Forms that really equates to tables or repeaters
unless you roll your own.

The DataGrid is designed for tabular data such as datasets and XML and they
don't allow the flexibility that you have in say a repeater which can have
as complex a layout as you like for each row.

The two application philosophies are totally different. You'll have to think
differently on the application.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top