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


ADVERTISEMENT

Use An Instance Of A Class On Multiple Forms?

Aug 29, 2011

I don't know how to do this and I've googled this to death.

View 2 Replies

Calling Functions From One Class To Another And Using Multiple Forms?

Nov 21, 2009

The project requires a form that has textboxes for a students name and the amount of books they have read, and a label where the points they have earned for their reading is displayed. Also a seperate form with About information and yet another seperate form for summary information.

View 1 Replies

Multiple Forms - Using Data In List From Another Class

Jan 13, 2010

I am trying to develop a vb program where i am using List to store data. I want to use all datas saved in that list from another class. In Class 1, i am trying to include a method that will return my list. And form class 2, i will call that method and get that list. But code isn't working. [Code]

View 2 Replies

Forms :: Way To Return Multiple Rows Of Data To Calling Method Via Class Property?

Jan 28, 2009

I have this application which has one class. I need to return a recordset of data to the calling form. If i use Properties to return, it can only return only a single value at a time. Right now i'm returning a datareader object with one of the properties.Can anyone suggest a better way to return multiple rows of data to the calling method via Class Property?

View 1 Replies

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

Error - Base Class 'System.Windows.Forms.Panel' Specified For Class 'MenuButton' Cannot Be Different From The Base Class 'System.Windows.Forms.UserControl'

Mar 12, 2010

When I do this

Public Class cInherits : Inherits Panel

I get this: Base class 'System.Windows.Forms.Panel' specified for class 'MenuButton' cannot be different from the base class 'System.Windows.Forms.UserControl' of one of its other partial types.

How do I inherit?

View 4 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 - Parent/Child Relationships Failing When Getting Data From Parent Class With Multiple Forms Open?

Jun 24, 2009

I have a main form, and some sub forms, and each sub form can have some sub forms. When I have multiple sub forms open, and I try to get data from the parent form, it returns the data from the wrong parent form.For example I have two instances of Mainform.subform running. If I do something like this in a child form of one instance of the subform. It returns data from the other subform.

dim l = Mainform.subform.listofdata

Edit:I am using visual Studio 2008. Winforms, form designed using designer. In my mainform I am doing this

Protected Friend frmMain as Mainform
frmmain = new mainform

In frmMain I am doing this

Protected Friend frmsub as new Subform'
frmsub = new subform

[code]....

View 1 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

IDE :: Excluding Forms To Convert A Window Forms Application To Class Library Application

Jan 16, 2012

I am not able to find the Exclude Command in VB 2010 Express. I have no idea which version of Visual Studio it is working with. I've got one 217MB VB 2010 Express file and many 2008 VB Express files with one of them measuring 31 MB. There many other SQL files and .Net Files.

View 4 Replies

Forms :: Initialization Of An Array Of A Class Within A Class?

Nov 3, 2011

I have main class of Races with mulitple properties. One of those properties has been defined as another class Runners.

So I have a race with multiple runners and when I try to update the data i get an instantiation error.

For the life of me I can't get it to work.

This is what I am trying to do...

In the clsRace class I have defined :
PublicProperty clsRunner(ByVal index AsLong) As clsRunner
Get

[Code].....

View 4 Replies

Forms :: Using A Class In A Win App?

Dec 30, 2009

I am creating a win app that uses a class. Every time I try to fill a property or read a property of the class I am getting an error that there no instance of the object.

I have a web app that I am also building that I have dozens of classes in and have no problems what so ever so I am at a loss as to what the issue is. Here is my code.

Public Class clsdups
Private mintid As List(Of Integer)
Private mstrname As List(Of String)

[Code]....

View 1 Replies

Forms In Class Libs?

Oct 23, 2009

I have a solution that contains several class Libs that are called by a main windows app.

One of these libs (Utils) has a form that I display to provide feedback. It's content is controled via properties in the class as is the show/hide actions. The form is declared as "Public lfrmMsg As New frmMessage" in a module with the class project.

The first time I call the form it works fine. However after calling the hide property (calls lfrmMsg.hide) I can no longer show the form as it is disposing.

My objective is to have a single instance of this form that can be called at different times and by different classes/apps.

View 2 Replies

Forms Inheriting From A Class?

Jul 3, 2010

I've created a class called connector. By clicking on project and adding a class.And I want to inherit from that class in the forms But I get this error.

Base class '<baseclassname1>' specified for class '<partialclassname>' cannot be different from the base class '<baseclassname2>' of one of its other partial types`

what do I do?Here's the class named connect.vb:Imports MySql.Data.MySqlClient

[Code]...

View 1 Replies

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

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







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