Switching Between Windows Forms A Few Unclear Instances [VB2010]

Sep 27, 2010

I am making a visual basic game. And in the game I have a few instances where I want to call open a window (let's save to save the user's preferences) from a form, then I want to go from that form to another one.

Example:

The user has completed the new game page. I have the users choices in a host of string, integer, and boolean variables. Now I want to use a generic saving screen I made with a progress bar. When I open up the saving box, I want to close or hide the new game setup menu (whichever I need to do). Then when it is done saving I want the Saving bar to return and cause the new game form to open the actual game form and close itself.

So I guess my question is this: What is a reliable(or correct) way to poll for a return in form to signal it to go ahead with execution?

Second:

This is similar to the first question. Instead of keeping the first form open when I use the saving form; is there a way I can save the name of a page I want the saving bar to go to once it's done?

I want the user to enter their prefered username before they start a new game for the first time. So I poll the saved username setting I have and if it equals "username" I want the Username entry form I made to pop up, but once it's done I want it to immediately call the new game screen. I also want to use this username entry form on the options screen so that the user can change their accepted name at anytime; but I want this screen to return back to the options screen.

What is the accept way to do this? Is it done through stacks? (form information -> stack : load new page : Do stuff: load stack value -> goto)

Finally:

Do I have to keep a window open (not close it) to access the variables that I have defined in it, and have stored values too? Does this apply to hiding too?

View 1 Replies


ADVERTISEMENT

Switching Between Different Forms

May 2, 2012

I have some forms in my application and need to switch between them. I dont want to open another form over other form, in short I want the user to get a feel that he is working on one form only. Right now I am doing something like this but this is not what I want

[Code]....

View 2 Replies

Switching Between Forms In VB?

Aug 16, 2011

In my project, I want the abiliity to switch between forms without closing them. What is the best way to do this? I have a "Login Splash Form" that you sign into, and then a Main Menu Form opens in Full Screen. I want this form always to stay open with the ability to open up other forms from this main menu screen as needed.

View 3 Replies

Switching Between Windows With Vba?

Jan 8, 2012

I am currently working on transferring data between minitab and excel and have everything working out fairly well. I am having trouble getting back to minitab (I can get the initial program to run with the shell commmand). I have tried appactivate, and windows commands but I am not having any luck.

View 1 Replies

Switching From 32 To 64 Bit Windows 7?

Sep 6, 2010

Having had to replace my old computer, one can virtually only get 64 bit Win7 in UK.All my old Visual Studio 2008 + other components installed OK but when I tried to build and run a prgramme that still runs happily on the old machine, I get the following error message

System.TypeInitializationException was unhandled
Message=The type initializer for 'mydata.Colin' threw an exception.
Source=mydata
TypeName=mydata.Colin
StackTrace:

[Code]...

The programme is called mydata and Colin is my User name. Anybody got any idea what is wrong and how to correct it. I have tried to run it in Visual Basic 2010 Express and get the same error.

Hopefully VB2012 will have Gigs of error messages that mere mortals can understand!

View 8 Replies

Switching Between Forms Lags Computer?

May 10, 2010

So the program I have is an overlay for a bit of software that has a main Video out. Whenever I go between forms the video freezes for a tiny bit but is noticeable. I am using the following to go between forms,

vb
Form6.WindowState = FormWindowState.Maximized
Form6.Show()
Me.WindowState = FormWindowState.Minimized
Me.Hide()

Is there a better way to cause less work for the form, making there be no lag at all?

View 1 Replies

VS 2010 Switching Forms & Close Events?

Jul 20, 2011

The problem I'm having is with the .close() event. Basically I've created the below code to prompt the user when closing the form they are currently viewing.

Private Sub Form_closed(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.FormClosing
If MessageBox.Show("Do you wish to exit?", "Program Name", MessageBoxButtons.YesNo) =

[code].....

View 2 Replies

Forms :: How To Remove Blue Bar Are Appearing From Switching Of One Childform Into Anather In

May 11, 2011

My application having one mdiform in that form six child forms are there.Switching of one form into anather form blur bars are appearing form at the title of every opened child form.These six child forms are opens in mdiform.how to remove the blue bars are appearing from every opened child form in mdiform.how to remove blue bar are appearing from switching of one childform into anather in mdiform using vb.net?. how to remove these blue bar.

View 1 Replies

Unclear Syntax In Procedure?

Dec 7, 2010

Currently going through Murachs beginning VB.NET adn come across some code that I am do not understand. I have attached a document of the application. If the user clicks on the future Value radio button the ReadOnly property of the Future Value text box is set to true and a CaluclateFutureValue procedure is called. If the user clicks on the Monthly Investment radio button it sets the ReadOnly property of the Monthly Investment text box to true so a user can enter a value. A CaluclateMonthlyInvestment procedure is called. The code of the procedures is as follows:

Private Sub CalculateFutureValue()
lblFutureValue.Text = _
FormatCurrency(FV(txtInterestRate.Text / 12 / 100, _

[code]......

View 3 Replies

Multiple Instances Of Forms, Same Record?

Jun 22, 2009

Good Day. Kinda banging my head against the wall on this one. I have a Mdi application with the start form(mdiparent) and form1(mdichild). On the start form, there is a textbox and a button. Heres how I want it to work:

1. value is entered into textbox and button is clicked

2. if form1 is open with that value, Bring it to the front if not, create a new instance of form1

If Not IsNothing(frmForm) Then 'If it is something
If Not frmForm.IsDisposed Then 'it's not disposed
'loop through the open form1s and compare the form1s property to the startform textbox
'if its the same, bring the form1 to the front

[code]....

View 3 Replies

2003 : Controlling Instances Of Child Forms?

Oct 24, 2010

how to have only one child form open at a time. I'm trying to close the open one from a second button on the parent form. or maybe there is some way to use the same button to close the first form and open the second.

View 3 Replies

Multithread Approach - How To Create Instances Of Forms

Jan 21, 2010

I have a program with 3 forms; each has a different role behind them. Form 1 loads when the program executes and the other 2 load by clicking on buttons from form 1. I would like to implement a multithreaded approach where even after clicking on form2 and form 3 I can still execute other form 1 options while form2 and form 3 contents execute. I read through some tutorials and still not to sure how to implement. I figured I need to create instances of the forms 2 and 3 but how to call the threads and control them? I did try a simple one and had some error concerning delegates.

View 4 Replies

Create Instances Of Forms Inside A Worker Thread?

Nov 3, 2011

I am trying to create a new instance of a form if its not allready been created the only problem is is that the instance creation is inside a worker thread.[code]...

View 2 Replies

Default Instances For Forms, Different .Net Versions And Project Templates?

Jan 11, 2011

I believe one or more versions of VB.Net did away with "default instances" for Forms.

1) Was it in the 2003 or 2005 version(s)?

2) With the more recent 2008 and 2010 verions, is it possible to use a template or

change one of the files in the project so that default Form instances are not created?

I was recently looking at some of the other .Vb files in VB.Net 2008 Express Edition.

By the way, just so you know I could install a full version of Visual Studio if need be from;

2203, 2005, 2008 or 2010

View 5 Replies

Forms :: Turn Off / Find All - Step Around Default Instances

Aug 20, 2010

I'm using Visual Studio 2008 writing a Windows Forms project and I'd like to know a way to step around 'default instances' of forms. I don't like default instances, they constantly get in my way, and working in a team it's causing some really annoying confusion about the object identity of which form is actual in focus at this moment. This means I need to go threw the entire project (big) and remove ALL references to any 'default instance' of a form. But this is difficult to do as there's no errors or anything, it basically requires me to search for every text of "MyFormType." and then checking if it's accessing a default instance and fix it like that.

It'd be nice if I could just turn it off or something so I could
1) easily find all erroneous lines of code
2) avoid the accidental use of it in the future by anyone on the team

View 1 Replies

Get VB 2002 Conversion To VB2008 To Work -- Config/manifest Error Unclear?

Feb 26, 2012

I have a VB2002 program that works. When I run it in VB2008, it updates, and runs and debugs until I shut down. When I try to start it up again from the updated SLN, or try to run the .exe in the BIN folder, I get the message "This application has failed to start because the application configuration is incorrect.

I checked the error logs and it says there is a syntax error in the first line of the vhost.manifest file in the BIN folder. The first line is the xml declaration and it includes the parameter standalone = "yes".

When I put the error message into Google I only get references to Visual C++ compiled programs running on machines without the C++ redistributable dll. That doesn't seem to apply here at all, since I have the VB 2008 express edition installed on this

View 2 Replies

Disable Alt Tab, Alt F4 And Windows In Vb2010?

Feb 23, 2012

disable the alt tab alt f4 and windoww?

View 3 Replies

Ripple Tank In VB2010 Forms?

Jun 13, 2011

I'm attempting to make a ripple tank such as this in VB 2010. I'm not trying to make it as complicated as that, at the moment I am making each wavefront from an.graphics.DrawEllipse.The problem I am having at the moment is making the ellipse expand properly. I'm using a timer to add one the the ellipse's radius on every tick. Another problem following that is how to make it continuously fire wavefronts so that more than one is on the form at a

View 4 Replies

[vb2010]make Inheriting Forms?

Feb 13, 2012

I have created a Windows Form inherited from an existing form using the Inheritance Picker: Project menu ==> Add Inherited Form.So now I have the Form-base (FrmP1) and the inherited form (FrmP2)The form works perfectly. If I open the "code" window of FrmP2 I can see only the main class:

Public Class FrmP2
End Class
I have added now a FormClosed event in P2:

[code].....

View 6 Replies

Possible Access To Windows 2003 AD From VB2010?

May 23, 2011

I am trying access Active Directory for ADD, REMOVE, and CHANGE user password from VB2010

View 3 Replies

Windows Service Application VB2010?

Feb 14, 2012

I made a program that makes backups of a database when the user runs the application, etc. But now my new work is to make it as a Windows Service, to run on the days and time that the person choose, how do I do it ? I never created something like this. I got all the code to make the backup, now the problem is to create it as a service.

This is my form to the person choose the days and the hour to the process runs and install it as a service, and when it runs to be minimizated on the windows icons near clock and date and another option on another button to make it a service too, but now to load all the time that the windows starts :s

View 10 Replies

VB 2008 (VB2010) Getting Support For Windows 7 Libraries?

Feb 22, 2010

I'm upgrading a VB6 project that uses the DriveListBox and DirListBox controls to select one or more folders. They're not available in VB 2008 except via the Compatibility DLL, so I'm thinking about using the Windows 7 Libraries concept instead. But I don't see support for libraries anywhere; does it exist in VB2008, or will it be in VB 2010?

View 1 Replies

VB2010 Command Prompt/console INSIDE Of A Windows Form?

Jun 14, 2012

Is there a way in VB to make something that will simulate an advanced command prompt inside of a Windows Form? For example, something like a greenscreen app?

View 1 Replies

Operator '*' Is Not Defined For Types 'System.Windows.Forms.VscrollBar' And 'Systems.Windows.Forms.VscrollBar

Oct 29, 2011

I am trying to use values from form1 in my project, in form2, but Im not sure how to do it. I've tried

txtboxTotal = (Form1.vsbLength * Form1.vsbWidth) * Pattern

But I get: operator '*' is not defined for types 'System.Windows.Forms.VscrollBar' and 'Systems.Windows.Forms.VscrollBar.'

View 14 Replies

Implicit Conversions From 'System.Windows.Forms.Control' To 'System.Windows.Forms.Webbrowser'

Sep 8, 2010

I have the code which checks if there is a selected tab

Private Function GetBrowser() As WebBrowser
If TabControl1.SelectedTab IsNot Nothing Then
For Each c As Control In TabControl1.SelectedTab.Controls
If TypeOf (c) Is WebBrowser Then
Return c

[Code]...

View 2 Replies

Windows Service: Multiple Instances Of The Same Service Class?

May 3, 2011

When you create a Windows Service, you create a list of the services you want to start. The default is this:

ServicesToRun = New System.ServiceProcess.ServiceBase() {New Service}

Can you have multiple instances of the same Service class (that bind to different addresses or ports), like this?

ServicesToRun = New System.ServiceProcess.ServiceBase() {New Service("Option1"), New Service("Option2")}

Or will that cause problems? Should we use two different classes instead?

View 1 Replies

Unable To Cast Object Of Type 'System.Windows.Forms.Button' To Type 'System.Windows.Forms.TextBox'

Apr 28, 2009

I have a panel with some controls in it (several textboxes, a slider, 2 buttons, and a small groupbox).. When I click a button, I want all of the textboxes within the panel to be readonly... So I have this code: [code] When I run it though, I get the following error:Unable to cast object of type 'System.Windows.Forms.Button' to type 'System.Windows.Forms.TextBox'.If I remove a button, it moves on to give me the same error but for a label..

View 4 Replies

Basic Application(windows Forms) Doesn't Exit Properly After Navigating Through Forms

Jul 9, 2010

I have a basic three form application. It doesn't seem to close after navigating through forms. If I were to open the application, and the main form is displayed. If I press the X button, the application closes fine(Goes from processes) If I were to open the application, and then navigate from the main form to another form using me.hide & form1.show, and press the red X on Form1, the application again, closes fine.

[Code]...

View 6 Replies

Forms :: Visual Studio 2010 Windows Forms App Screenupdating Property?

Jun 4, 2011

.NET developing and have a simple question, i've been stuck on this for a while and searched many forums first with no solution so i'm posting myself. In VB for excel i've used Screenupdating=false to disable the screen updating however now i'm creating a visual studio 2010 windows forms application and its not showing up as a property. Here's the code i've tried.

[Code]...

View 4 Replies

Tooltip On Windows 7 Doesn't Work VB2010 - Thecolor Doesn't Change ?

Jun 12, 2011

I am trying to change the background color of a tooltip

I am using tooltip.backgroundcolor = color.colr

No errors but thecolor doesn't change

View 5 Replies







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