Open Two Different Forms From A MsgBoxYesNo?

Jun 9, 2011

I am trying to open two different forms depending on if I click yes or no from a message box. The code runs but both yes and no open the same form. Is it possible to open two different forms? My code is posted below.

Both open Form3 when clicked. mbrown686886 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

[Code]...

View 2 Replies


ADVERTISEMENT

Forms :: Cannot Open Half Of Forms In Designer View

Sep 1, 2011

I have no idea what I have done wrong here, so I'll just attach my project as a zip file and see if any of you are kind enough to look into it for me.I am reasonably experienced in C#.NET but having trouble using VB.NET for a school assignment.I cannot open half of my forms in designer view because "To prevent possible data loss before loading the designer, the following errors must be resolved".

View 1 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 :: 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 :: Resize And Already Open Window To Automatically Accomodate A New Open Window?

Feb 24, 2009

if you guys have used office 2003 or better( i am sure all) then you would have seen that when the help window open it causes the active windows say of MS WORD to change accordingly so that this help windows fits with it along the right side and this functionality i want to implement in my VB windows application and have no idea how to do it Also i have seen this feature in GOOGLE DESKTOP GADGETS...

i want to implement that when my application opens which ever is the active window( of any application) snaps to the left and allows my application to fir in the right hand side i am developing my application in VS 2005 using Visual Basic.

View 1 Replies

Forms :: Forms To Open As Part Of A "bigger" Program?

Mar 2, 2010

I would like my forms to open as part of a "bigger" program, where there is a screen that fills the monitor and inside this screen is my form, centered. When a new form is opened, only the new form will be displayed...it will not be form on top of form.It would look similar to the screen in the following link, except the form inside the bigger screen would not have the minimize, maximize, or close buttons.I am just wondering if there is a property in VB.NET forms that will allow this to happen.

View 8 Replies

Close Forms And Open Other Ones?

May 20, 2012

I want to close form and open another one without termination of the application, when I try to open second form and close first one the application terminate.[code]...

View 2 Replies

Make Two Forms Open Next To Each Other?

Oct 1, 2010

i want to make two forms open next to each other. So when button 1 is pressed form1 and from6 will open. I know how to make them open but i want form1 to be on the left and form6 on the right with atleast one inch in between them.

View 4 Replies

Open Different Forms Through Menu?

Nov 23, 2010

i have to open different forms thru menu. Whenever i am opening new from the current form should be minimized and new form should be visible and when closing the new form the old one should be viewed again. First level of menu to new form works fine but when i am using form to another form minimize works fine but i need to view in normal mode again fails to view. How can i do this?

Main.WindowState = FormWindowState.Normal [Which is not working]

i am using this code to view. To minimize i have used Me.WindowState = FormWindowState.Minimized control.

View 3 Replies

Open Forms In Same Window?

Oct 22, 2010

I would like to hava an application in which I have several buttons on the main scream. Each button will open new screens (or forms) but I'd like them to open it in the same screen as the main form not in a new one.

View 3 Replies

Shortcuts To Open Forms E.G. F1?

Feb 1, 2010

i want to know to create a shortcut that will open another Form.

View 2 Replies

Treeview To Open Forms In MDI?

May 28, 2010

I am using a treeview as a menu to open forms. Currently, I have a Select Case statement to determine what the node text is, then the form opens.With many forms, Im not too certain that a Select Case statment is the way to go.

View 12 Replies

Forms :: Open A Windows Form From Another?

May 10, 2010

I have two windows forms,say frm1 and frm2. I have to open frm2 from frm1 and frm1 from frm2.when one form opens other hide. But the the problem is that everytime when i open the form new object of the form is created which increase the memory usage of the application.What should be the efficient way to switch from one window form to another in vb.net.

View 2 Replies

Forms :: Open Form To Add New Record?

Jun 8, 2010

I have a form which has has a bound data source (generated automatically by VB - table adapter, binding source etc).How do I use the Form.Show method to open the form ready to enter a new record. Is there a simple way of doing this?

View 4 Replies

Forms :: Open Link In Opened Tab?

Feb 2, 2010

I have multiple tabs opened in 'any browser' and one of it is titled 'LAME', how can i make links open(by buttons) in that tab? I have a simple form with two buttons,

Button one:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Process.Start("http://www.google.nl/sub1")
End Sub

[code]....

View 2 Replies

Forms :: Opening An App Over All Other Open Windows?

Sep 17, 2011

Is there any switch that will allow you to open an application over all the other currently open applications? My problem is getting Explorer to open over all the other currently open applications. Right now, it only opens in the background......

View 5 Replies

Forms :: Prevent A Form To Open Twice?

Aug 23, 2011

I am using MDI forms and I would like when a button is clicked, if the form is already open. it just puts it on top instead of opening the same form again.

View 2 Replies

Forms :: Shortcut Key To Open Form?

Jun 17, 2010

may i know is that possibleto assign the form a shortcut key like crtl 0 to load/open the form?

View 2 Replies

Forms File Save Open

Jun 18, 2009

I am doing windows application project in vb.net ,code for how to save ,open and print a file /document.i have used the below code for save but its not working fine. [[code]

View 1 Replies

Get Forms To Open In The Same Place Each Time?

Feb 4, 2010

I have a project with various forms all of the same size. Is there a way of getting them to appear in, for example the middle of the screen each time they load, in the same position

View 2 Replies

Look At Other Forms While Dialog Form Open?

Jun 2, 2010

At one point I have a dialog form open, but in order to process it, the user might want to access information on other (open) forms. This would necessitate the ability to move/resize/scroll the other forms, but obviously everything is frozen during the dialog. I don't suppose it's possible to achieve this "semi-modal" state, where other forms can be browsed, but no other actions taken?

View 5 Replies

MySQL Connection Open For All Forms

Nov 7, 2011

In the first form I will load Tabels in the secound I want to open the DB Connection. I wrote a Class which enables me to open and close the connection

[Code]...

View 2 Replies

Open And Close Multiple Forms?

Apr 24, 2009

I have an application that has multiple forms. The "main" form within this application can be accessed from other forms. However, each time this "main" form is accessed throughout the application, a "new" instance is created, resulting in multiple instances of this form being open.

I would like to have "only" one instance of this form open at one time. If it is currently opened, I would like it to be brought to the forefront, instead of opening a new instance.

View 2 Replies

Open Two Forms At Once When Start The Program?

May 14, 2010

how to open two forms at once when you start the program but one has to be on the left of the main form and the same size

View 1 Replies

Passing Variable While The Forms Are Open?

May 22, 2011

I'm trying to pass value from form1 to form2, while both form is open.

Using New (Dim frm as new form2) only works when the form2 is not loaded yet. what if both forms already open?

PS: I don't want to use module since there will be a lot variable to pass and i don't want to maintain such large collection of variable in module.

View 4 Replies

VS 2010 Can't Open Forms On Another Computer?

Mar 19, 2012

I've copied a project from one computer to another and while I can open the project and its one module, when I try to open any of the forms, I get this error:

Quote: There is no editor available for 'C:UsersDaBoyesDesktopWattsDBForm6.vb'.

Make sure the application for the file type (.vb) is installed. I can open the forms just fine on their own--I just can't open them from within the project.

View 5 Replies

Winforms - Unload All Open Forms ?

Feb 26, 2009

In the middle of converting VB6 code to VB.NET, I need to replace the following code that intends to close all open forms remaining in the application.

'close all sub forms
For i = My.Application.OpenForms.Count - 1 To 1 Step -1[code].....

I've replaced the Unload function with Close (as indicated by TFM), but the compiler complains that OpenForms is not a member of My.Application.Where can I access the open forms?

View 4 Replies

Close Forms In Reverse Order They Open?

Apr 24, 2010

I'm developing software using vb.net. I want to do following things in my application.

View 5 Replies

Forms :: Form Does Not Open Correctly On Second Instance

Nov 13, 2010

I have a question that I hope to find a much more simpler solution to.I have two forms in my program which are named Main and Second. The Second form has several textboxs, buttons (some disabled) and comboboxes. When the Second form is opened via the Main form on the very first instance, everything works fine.

However, if I re-open the Second form after previously closing it, the disabled buttons are no longer disabled and the text controls and comboboxes show the previous values entered from the first instance which I do not want. How can I ensure that the Second form will be opened "clean" every time.

Currently I have to add instances to the onload event to do this to ensure that the form is cleared on the second instance.textbox1.text = ""textbox2.text = ""textbox3.text = ""button1.enabled = False

View 5 Replies

Forms :: Open A Browser And Automated The Controls On It

Dec 16, 2009

I have a problem where i need to write a class that will open a browser and automated the controls on it. I am struggling getting started with this.

View 2 Replies







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