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


ADVERTISEMENT

.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

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

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

VS 2008 Adding A Method To All Forms Existing Forms Without Changing Their Code?

Jul 28, 2009

just wondering if it is possible to add a method to all forms in my project without having to do it on one form and Inherit all my other forms from that one

View 3 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 :: 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

Console.Write Not Working In Win Forms App?

Apr 14, 2010

I created a VB.NET Windows Forms Application in Visual Studio 2008. When I run my program from the command-line, I get no output (only the next prompt).

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Debug.Write("Foo")
Debug.Flush()

[code]....

EDIT: Can a program have a form and a console?

EDIT2: However, the output appears on the next command-line prompt. Can a Winforms application tell the command-line to wait until it's finished instead of immediately returning?

View 6 Replies

Forms :: How To Write In A Rich Textbox

Jul 4, 2010

what's the method for writing string into a richtextbox.

View 1 Replies

Forms :: Write And Read A File

Sep 16, 2009

I have search on google but i have just find this function SteamWriter. This fonction for writing work, but the script create always a new file... I want write under the last line.And with your fonction, how i can read it line by line for use in select menu.

View 3 Replies

Unable To Write To MdiChild Forms?

Apr 20, 2012

I have a main form with a number (in this case 9) mdichild forms. Some are visible, some not, but they are all very basic. When I write to a textbox in any child form during Main_Load it updates, when I write to a textbox in any child form inside its own _Load it updates. If I write to one from awhere else in code, including a sub in the form's own code, it fails to update.

All the child forms are identical but are distinctly separate forms created before compilation rather then NEW versions of a single form to avoid threading problems.Curiously this code worked once only. No edits were made and when re-ran failed after stopping it if found all the controls in some of the forms were invisibe in developer mode, restarted VS but still not there. Run app and at runtime there they were!!! Also all locked textboxes still accepting input.

[Code]...

View 9 Replies

Write A List Of All Forms To The Database?

Dec 9, 2010

I need to write a list of all my forms to the database. Not the open ones, all forms included in the project.

My.forms has no count or something and I don't know how to get them to a string.

I need this for Userrights for every form later.

View 3 Replies

Write To A Form On A Site When Two Forms Have The Same Id?

May 24, 2011

So I want to post to a site with the document.getelementbyid code. What do I do when the form I want to post too has another form with the same exact id?

View 3 Replies

Can Build Forms Visually But Cant Write Codes

Sep 29, 2009

I am new to the .net framework. I am taking an on line class. I am lost. I can build the forms visually but cant write the codes.

View 3 Replies

Console.Write From Windows Forms Application

Apr 4, 2007

I understand that I cannot use the System.Console to output information from a Windows Forms application because the standard input, output, and error streams are not run through the console in winforms apps. But I can't seem to find any documentation on where the standard input, output, and error streams are being directed to! Basically, I have a winforms app that accepts command line arguments and can be run in batch mode, however, I just want to direct some feedback to the user based on whatever method they're accessing the program. The app is used to redirect a client-server application from one server to another. In some instances, the user does it by hand (with a mouse), and other times they're doing it in batch mode (using SAS, command shell, VBScript, etc...). In those instances, I'd prefer NOT to use MessageBoxes because it will kill any processing they're doing.

View 6 Replies

Forms :: Unable To Write To Output File

Feb 6, 2007

I have been at VB.NET for a very short while now (about 1 month) and I can say without a doubt my knowledge of VB has continued to amplify from the information posted in these forums.Along with my first post I also have a question about setting an icon for my application .exe file.I have read that I need to go to Project > properties then on the Application tab there is a section to change the icon from the default to something else. However when I do this and choose the icon that I want, I get an error when I use the debug to run my application.It says "Unable to write to output file C:/... the specified image file did not contain a resource section".

View 3 Replies

DB/Reporting :: Write Into A .mdb File, Program Uses Two Login Forms?

Sep 17, 2010

this would be my first post and usually I can figure these problems out, but I am stumped so badly right now, I am writing code to write into a .mdb file, my program uses two login forms, the first reads the data base, and sees if the user name and password is correct. I got that working, my second login form is used for creating an account. This is where I am getting stuck, I have followed and looked for tutorials and I found nothing, my DB is simple, its one table, and two input fields called "Userid" and "password" this is my code to write a new account into these fields

[Code]...

View 13 Replies

Forms :: Write A Program And Set It As Default To Open .txt Files?

May 8, 2010

i want to write a program and set it as default to open .txt files so when i double click on a text file that it opens in that program and displays the text into a RichTextBox

my question is how do i display the text in the RichTextBox after opening the program through a double click on a text file?

View 6 Replies

Write A Method That Is Called From A Variety Of Forms At Load?

Nov 29, 2010

I'm trying to write a method that is called from a variety of forms at load. So with a Form1 load event I would call the following:

Dim testpoint As New Point(10, 20)
DrawVerticalStringFromBottomUp("Hello", testpoint, Me)
The DrawVerticalSTringFromBottomUp Method is as follows:

[Code]....

When I call the code at a form's load event, nothing happens. When I call it from a button click after the form has loaded it works! I know this should be called from the paint method, but that doesn't suit my purposes.

way to make this work from the form load event?

View 4 Replies

Write A Program That Fillsout The Pdf - Unable To Find The Forms Id?

Dec 1, 2009

I have a pdf here that we use @ my company.I'm trying to write a program that fillsout the pdf.i know iTextSharp exist but i can't seem to find the forms id.

View 19 Replies

Forms :: TextChanged Code And Button Click Code Not Working?

Jul 2, 2009

I have made an application in VB.NET.The Button click codes are working fine. I have made a small modification in the code. I have commented the line 'Me.Close'But still my form gets closed. I think the application is executing from elsewhere.

View 8 Replies

Write Code For Single-answer Multiple Choice Tests?

Nov 28, 2009

I am struggling to write code for single-answer multiple choice tests (i.e. Choices A, B, C, D).

View 11 Replies

Error Forms - Attempted To Read Or Write Protected Memory

May 29, 2010

When i run my projekt on my Pc , on my server then all works fine. Then i have try my project on another server, and get this error in almost. all my forms: Attempted to read or write protected memory, this is often an indication that other memory is corrupt. What to do?

View 6 Replies

Forms :: Streamwriter To Write To A Colour.txt File (already Populated With Data)

Apr 10, 2011

i need help with stream writer, i can get it read lines and stuff like that but now i need Streamwriter to write to a colour.txt file (already populated with data) and insert a line that isn't already in the file, into alph order eg combobox reads and displays list from txt file.

their is a colour thats isn't in the text file, so i would like it to take the colour from the combobox that was typed in by the user and place it into the colour.txt file in alphabetical order (these are car colours so their are 100's and 1000's per manufacturer, its not as basic as i want red blue black lol) i was able to find loads of data about streamreader but not so much about stream writer

View 4 Replies

Forms :: Write A Program That Detects The Contents Inside A Textbox?

Aug 21, 2010

I'm trying to write a program that detects the contents inside a textbox, and if empty displays a warning, and does not input anything into a rich text box. However, if something is detected, it would not display the warning and input the textbox's text into the rtb.

I got everything else, just need help with the textbox detection code.

View 3 Replies







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