C# - Mvc.net Multiple Forms Childaction?

Oct 1, 2010

I have 2 forms on a page, they are included in the masterpage like so:

Html.RenderAction("Form1", "Controller")
and
Html.RenderAction("Form2", "Controller")

[code].....

View 3 Replies


ADVERTISEMENT

Application That Has Multiple Front Ends Developed Using Windows Forms / WPF / ASP / Compact Framework Mobile Forms

Apr 9, 2010

I have the requirement to create an application that has multiple front ends developed using Windows Forms, WPF, ASP and Compact Framework Mobile Forms.I would like to be able to create a series of obejct representing the business logic and have this logic accessible from the various front ends available. My first thought was to use remoting as I'd like to be able to pass the business objects back and forth between client and server but the compact framework doesn't support remoting and also transferring a full framework business object to a compact framework business object doesn't seem possible.My next thought was to use web services but again the passing of business objects seems to be very hard to accomplish. Without doing this I would have to create individual web methods for each business operation.

Finally my next option is to use sockets and write the whole client/server logic within some classes and expose them to the UI/Business layer. My only problem with this is it is not scaleable should the number of clients increase dramatically whereas using remoting or web services I can host the solution via ASP.Net.Does anybody have an ideas on the best way forward for this or even have any input on how they would write an application that required a windows form, wpf, asp website and mobile device GUI all of which want to use the same business logic?

View 3 Replies

Forms :: Multiple Forms, Closing Events And Sub Routines?

May 25, 2010

I have googled high and low to find an answer to this but I must be searching wrong.I have an application which has a listview displaying some items that are stored in a SQL Compact database. I am using a second form to add new items to this list directly into the database.When the second form closes I want to call the sub in my first form to refresh the list from the database.

How can I get it to fire the form1 sub routine on the close event of form2

View 3 Replies

Multiple Forms Program Needs To Open Successive Forms Somehow?

Nov 3, 2009

i was doing a fair amount of programming many years ago, like 10 it feels like, so I'm sorely not up to date on how my newly downloaded Visual Basic Express expects me to communicate with it.I am writing a program that pulls a cell from a database after the user has gone through several forms to determine which cells they want. When I write it like that, it doesn't sound very efficient, but I've designed it this way for usability.Here's where I have a problem: Should I store the path the user takes in a string, an array, what?

Here's an example:Someone wants baseball stats and trivia. They run my program, main form pops up, they select National League button, the NL Form pops up. Now the way my program is set up right now, is there are two ListBoxes on the form, one is populated, and as the user selects a Team from ListBox1, it jumps to ListBox2. Once they've selected all the teams they want info for, they click a button Next.

What I now need the program to do is show the next form "Team: name" once for each team, and insert the name of the team on the form in the appropriate label which I'll have blank. This form will also do the Listbox thing except the first listbox will populated with Topics like HR Stats, Pitching Stats, Coach History, etc.

View 1 Replies

Forms :: Maintaining Multiple Forms Positioning?

Jul 26, 2010

Launch a dialogue window from the main form, and then another dialogue window from that dialogue window. If you close the second dialogue window and call dispose the main form vanishes under any other open windows. This doesn't happen by closing a dialogue window normally, but I am attempting (rightly or wrongly) to stop memory useage creeping up by disposing of it.

So, the question is - what method can be employed to maintain the position of the windows?

View 4 Replies

Forms :: Multiple Forms Open And Close

Apr 16, 2009

I have two forms frmMain and frmNew, and one module modMain. In modMain I hold public variables which are needed for application. My question is how to open and close those two forms when needed? I ask this because if i set frmMain as startup form, then when closed, application will end, and one of those two forms will always be displayed. Also if I set frmNew as startup form, then when I close this form, application will also end. Is there a way to do this from module or something so my application won't end after closing and opening any of those two forms?

View 2 Replies

Forms :: Retaining Data Across Multiple Forms

Sep 8, 2010

VB.NET newbie here... I have an vb.net windows application set up. It has multiple forms, about 6 in all. There's a main menu form, and then 5 other forms to collect data. The user will collect data on each form and bounce back and forth between forms. How do I get the forms to retain the data that has been entered into the text boxes and/or other controls on the forms? For example, they might fill out a few textboxes on a form, but then need to go to a different form and fill something out... and then back to the previous form. Right now, when they come back to the form, all the data previously entered in to the text boxes is gone.

View 1 Replies

Forms :: Write Code With Multiple Forms?

Apr 17, 2009

I am trying to write code with multiple forms. The first screen is splash screen then is supposed to close and have a calculations screen. In the timer of the splash screen I wrote the following code

Option Explicit On
Option Strict On
Public Class uiHinsbrookSplashScreen

[code]....

This opens the second screen, but when I Hit Exit on the Second Screen The first screen is still open. What do I need to do next?

View 2 Replies

Forms :: Multiple Forms Within A Class?

May 13, 2010

I'm still learning vb.net, so I'm not terribly familiar with all the terminology, otherwise I would have searched a little harder before posting. I'm working on a program where the user can add various forms to a MDI parent.I would like each of the child forms to be part of the same array, all of the child forms will be of various types.Some forms may display a textbox, some forms may contain a graph, some forms may contain an image, etc.[code]

View 7 Replies

Forms :: Work With Multiple Forms In .net?

Dec 15, 2009

i've been working with multiple forms. here's the situation.. i have 2 forms form1 and form2 every time i show the form2 from the cmd Bttn in form1 then i close and reopen it again it always prompts me with disposal error.

View 3 Replies

.net - Given A Large Number Of Objects, Create Multiple Forms In Designer For Them Or Use Code To Create The Forms?

Dec 29, 2010

If I have a large number of classes, each similar to the other in certain aspects (they all share a common base class, but each does things differently), and I need to create Windows forms for each to allow easy changing of their values through a GUI? Create one matching form for each object in VS' forms designer, Or Use code to create the forms dynamically at runtime.

#2 makes the most sense to me, because a lot of these objects will share very common features of the form, notably "Ok" and "Cancel" buttons. But one object might need to draw a textbox on the form while another might need to draw a combobox. Not to mention, if I want to put icons on the "Ok" and "Cancel" buttons, I'd have to do this for each copy of the form in designer, and that sounds like it could get out of hand quickly.But is drawing forms through code sane? VS' forms designer is pretty sophisticated and designed to make life easier. Am I wise to consider ignoring its functionality and diving into the trench warfare of forms design through code? Or are there examples of automating form creation based on an existing object's properties?

View 1 Replies

Checkbox In Multiple Forms?

Oct 20, 2009

I have a secondForm that determines whether a checkbox.checked = true/false and I want the firstForm to verify whether the secondForms checkbox.checked = true/false in a function

View 1 Replies

Forms For Multiple Resolutions?

Jul 24, 2006

How would I go about designing something that will work on many different resolutions? For example, i have my monitor on a very high resolution, and when i work on my projects, the actual controls (buttons, text boxes ,whatnot) are in the top left quarter of my screen, because the program will have to be deployed on 800x600 machines.

Is there anyway to make it so it will stretch and look appropriate on different resolutions?

View 4 Replies

Getting Multiple Startup Forms?

Mar 27, 2009

I'm using Visual Studio 2008 in vb.net. When I run my application both forms display even though I have a startup form selected in my application. If I select the first form I created the correct window is displayed, but when I select the other form to be my startup both are displayed.

View 3 Replies

How To Make Multiple Forms

Jun 25, 2011

I have been working for a while on this. I am trying to figure out how to make multiple forms .Such as a login form that leads to a second form. [code]

View 13 Replies

Managing Multiple Forms?

Apr 15, 2010

I am a beginner programmer, and taking my first course in VB.NET in college. I am writing a program that teaches the user step by step to solve a rubiks cube. One problem I am having is how to manage the 20 forms that make up my program. Currently, when the user procedes to the next step, I make the current form invisible, and show the next form.

ex. Nextbutton click
form2.show()
me.visible = false

[code].....

View 6 Replies

Multiple Forms In One Application?

Jul 28, 2009

Is it possible to make an app where, for example, I will make one form which will have buttons linking to a number of other forms which take the place of the first form?To use a bad example to illustrate what I mean, where it will be like reaching the load game screen in Pokemon on Gameboy; I have multiple options that will all lead me to a new form (in the same window).

View 1 Replies

Multiple Forms With The Same Code?

Aug 26, 2010

I have a working form that shows the product flow in a manufacturing plant.For various reasons,I need to create another form that is a duplicate of the original, but rotated 180 degrees.All of the underlying code to fill and handle events on the two forms will be identical.I don't want to have to duplicate and manage two sets of code to handle both forms.What is the best way to handle this?

View 16 Replies

Multiple Forms, Variables And So On?

Oct 24, 2011

i would like to say i am a novice programmer, in year 12. I am designing a small game for my HSC and one of my forms is getting very cluttered with controls and code. To resolve this cluttering, i have had the idea to create new forms for some aspects of the game (such as different game modes and so on). However, in order for that to happen i have to drag some variables of the new form to the old form, (these variables would be just booleans or integers to say whether you lost a game or won a game or something that would carry on to the main form.)

[Code]...

View 1 Replies

Multiple Monitors With Forms?

Jan 16, 2012

have a question. The scenario is this Main monitor (17 inch) is used for POS system.Will have at least 2 more monitors (50 inch tvs used for digital menu)I want the main pos program to be able to set what is written there (easy on a form) but have different forms to ALWAYS go onto one of the tvs (they would be plugged in via VGA).

I have read some examples but I havent seen anything with different size monitors.How can i ensure that the main program runs on the 17 inch screen while the 2 forms of the menu will display on tv1 and tv2 and the same tv each time?

View 3 Replies

Multiple Panels Instead Of Forms?

Mar 3, 2009

To save from using several different forms in programs. I'd like to make just a few panels to represent each one. Then when I need to display one I just set it to visible or not visible.

For example, a quiz program. The 1st 10 questions are on one panel, the 2nd 10 are on a 2nd panel. They are both identical except different questions.

The problem is, when I try to put them both on the form, they have to be in different areas or else one will go inside the other. How can I keep several panels on one form without them going inside each other, in other words how can I keep them separate?

View 13 Replies

Passing Var Multiple Forms

Jan 28, 2010

I have a "Open File" menu on form1 that reads the user input data from the selected file, stores them into variables, passes on the var. to my form2 and loads up my form2 with the user input data. My code works But when I close my form2 and button click form1 to open form2, I still see the same input data I want all my text boxes to be blank.

View 8 Replies

Using A Variable Between Multiple Forms

Apr 20, 2009

I want to create a variable to be used by multiple forms, so I created a module that looks like this:[code]I expected the title of that specific form to be "(Name)'s Settings"But instead, it just says "'s Settings," as if the variable had never been assigned a value.

View 4 Replies

Using Multiple Windows Forms?

Jun 24, 2011

I created a Shipping calculator for my project. I am almost done, it is just on my Form3 code, I am having trouble retrieving information from Form2 and place it in a listbox. I was able to retrieve information from Form1 successfully, but nothing from Form2.

FORM1
Public Class Form1
Dim Total As Double 'Variable to hold the total

[Code].....

View 3 Replies

Using VB To Fill Multiple Web Forms?

Nov 28, 2011

My next project is this:

I have a customer service center where each person must fill out the same data on 3 different web forms for each phone call. All 3 browser windows are open at the same time. (we are forced to use IE at this time)

The fields on each form are the same, but may be in a different order or called something different, but the data is ultimately the same.

Submitting to these web pages through POST is NOT an option. It must be done in macro-like style.

The hard part about this for is getting VB to focus each window one-at-a-time and then filling in the form values.

How can this be done? After focusing windows, is there a way to get VB to fill in each form field?

View 1 Replies

Working With Multiple Forms

Oct 4, 2010

I am currently making a book shopping cart. look at the pictures to get an idea.(main is the first form "file books" is when the second printbook opens and user selects. The application has four books and calculating the subtotal of them. The user can choose to buy any ammount of books. The "Add book to Cart" button calls the module1 Module1.main1()

And this is the module1 code ( I tryed using a select case)

Module Module1
Public Sub main1()
Dim Print As Decimal

[Code].....

View 7 Replies

Working With Multiple Forms?

Feb 18, 2009

I have a couple of questions regarding the use of multiple forms within a single project.I'm currently using a button to load a second form so that the user can select different options and then load those options from the first form.Basically, I have a check box on form2 and I want form1 to be able to know if it is checked. I thought I could just use:

if CheckBox1.Chcked = True Then
Etc.
End If

But, when I do, I get an error saying it can't identify the object I'm referencing.Also, when I open the second box and I click my "OK" or "Cancel" button, the page reloads and then I must press it a second time for it to actually close.This is the code I'm using on my first form:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim frmDialogue As New frm2Toolest
frmDialogue.ShowDialog()
If frmDialogue.ShowDialog() = DialogResult.OK Then

[code]....

The second form that has the buttons:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click
Me.DialogResult = DialogResult.OK
End Sub

[code]....

View 11 Replies

All Of Listboxs On Multiple Forms Are Blank?

Jan 30, 2011

I am working on a project that uses multiple forms, each with a listbox for output. I had everything working fine and decided to do some final tweaking. I added some comments and changed each forms FormBorderStyle to (Fixed3D) from (Sizeable). When I did a final test run, all of my listboxes come up blank... I went back and reverted FormBorderStyle to (Sizeable) from (Fixed3D).

All of my listboxs, on multiple forms, are still blank.

View 4 Replies

C# - Using A Single DataSource On Multiple .NET Forms

Sep 16, 2010

My program has two forms which get data from the same data source. After binding controls to tables and fields on both forms, I noticed each form has it's own apparently duplicate DataSet. Is it standard practice for each form to have its own DataSet even though they use the same ConnectionString and connect to the same database at the same time?

View 1 Replies

Can't Simultaneously Instantiate Multiple Forms?

May 5, 2010

I used different backgroundworkers to instantiate some 'heavy' forms thinking that it will reduce the time to instantiate them if I did them at once but it looks like I am wrong since it is still taking about 43 seconds to load all of them. Am I missing something or do you have a tip on how I can speed up their instantiation?

View 15 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved