VS 2008 Run A Procedure Of FORM1 In Load Event Of FORM2?

Mar 18, 2012

i need to pass on some variables from FORM1 in to a procedure in form load event of FORM2 to say in another way i need to run a procedure (which uses variables of FORM1) which is derived in FORM1 class and in FORM2 load event

View 3 Replies


ADVERTISEMENT

How To Force Form Load Event On Form2 From Click Event On Form1

Nov 16, 2010

I'm trying to execute different code depending on the button clicked (button 4 or 5) on Form1, but when I click on button5 to activitae the code on the Form2's Load event everything is Ok, but when I click the back button to return to Form 1 and click on the Button4 to activate the code on the Form2's Load event again, it doesn't active the Form's Load event, is there a way to form the form load event every time I access it from Form1? [code]

View 7 Replies

VB 2008 Close Form1 Load Form2?

Sep 19, 2009

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

Form2.Show()
Me.Close()
End Sub

i have this code on my MDI parent and on button click i would like Parent to close and form2 to load/show.yet with current code when i click button it closes all the app and doesnt load from2

View 3 Replies

VS 2008 : Load Form1 And Form2 At The Same Time?

Jun 21, 2012

What im trying to do is load form1 and form2 at the same time.I have a setting called hideform2.So when i run both forms at the start up i want to get it so when they click on a close button and form 2 hides.I want it so when they run the application again it dosent show form2 anymore?

View 5 Replies

Load Form2 When Button Clicked On Form1?

Mar 16, 2009

That's all I want to do but I get errors when I do this:

Form2.show ()
Me.close ()

Using VB2008

View 8 Replies

Load Form2 And Pause Form1 - VbModal Underlines When Try To Use It

Nov 1, 2010

I have tried to use Form2.show vbModal but "vbModal" underlines with a blue error line. I have a second form I wish to pop up and get some data before Form1 code continues. I will have a button or some other means to close the form then I wish Form2 to take that response and go...

View 9 Replies

Load Form2 Instead Of Form1 When Press The Play Button?

Nov 24, 2009

I have 2 forms

1. Form1
2. Form2

It always loads Form1 but never Form2 when i press the play button.How can i make it load Form2 instead of Form1 when i press the play button?

View 1 Replies

Load Form2 On Top Of Form1 Everytime No Matter Location?

May 25, 2009

How can i get form2 to to load exactly center of form1 or a location within the form when i get form2 to show, no matter the location of form1.[code]...

View 10 Replies

Method - Form2 Has An Id That Form1 Passes In Order To Load Information From

Jun 9, 2011

Someone told me that i should stick with method #2, form2 has an id that form1 passes in order to load information from.

method #1

CODE:

method # 2

CODE:

View 7 Replies

Raise A PictureBox.MouseClick Event On Form1 From Form2?

Apr 19, 2009

This seems as though it should be simple to do... Form2 wants to execute Form1's picturebox33 event

Form2 has the following code:'delegate pointer to pass args to form1.picturebox33 event

Public Event ExecuteSpellCorrectionSearch(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs)

[Code]...

View 4 Replies

VS 2008 Form Load Event And Sub Procedure?

May 20, 2011

I try to run a custom sub procedure from the form load event. It keeps crashing. I believe it is because all of the controls are not loaded and the sub procedure makes use of some controls. How can I make sure everything is loaded before the sub procedure is run?

View 10 Replies

Pass Data From Form2 To Form1 When Form2 Is Closing

Nov 29, 2009

Last one day I could not manage to pass data from one form2 other form.

When I am opening Form2 from Form1, I can pass data from Form1 to Form2.

When I am closing Form2, I want to pass data from Form2 to Form1 which is still open when I close form2.

I try to use shared textbox, but I understand that this is nt supported.

View 11 Replies

Forms :: Form Variable Value Blank / Null When Move From Form1 To Form2 And Back To Form1

Oct 27, 2009

In my window application, Form1 variable eg. Public str as string. value blank/null when move to Form2 and Back to Form1. How to maintain Form1 varable's value when back to Form1 In vb.net if any one know, reply me soon

View 2 Replies

VS 2008 - Run Sub Created In Form1 From Form2

Mar 17, 2009

I am in the process of creating an excel add-in. I have created a subroutine inside one form. Using a second form, I would like to run the subrountine if the "OK" button is clicked. How do I make this public subroutine availiable between forms?

View 2 Replies

VS 2008 Accessing Form1 From Form2?

Sep 25, 2011

I'm my original post here and the code in post #1HTML why doesn't this work? i get an error on the underlined section.

View 7 Replies

VS 2008 Use From Variant In Form1 In Form2?

Aug 2, 2010

I have a simple problem and I believe that the solution is with module using but I could not resolve it yet. Here is the scene:In Form1 I have a variant that gets its value from the selections of a listbox. The code is:OPtext) in Form2 because this selection from Listbox (in Form 1) should also trigger some events in Form 2. I tried to use a module and declare the variant using Public. I did this and I now can use the variant in Form 2. But the value selected in Form1 does not come to Form 2.

View 7 Replies

Forms :: Navigate From Form1 To Form2. And Then Close Form1?

Feb 16, 2009

I have got 2 forms ----- form1 and form2

i wanted to navigate from form1 to form2. and then close form1

i did the following code.

-sub form1 _ page load
dim form as new form2
form.show()
me.close
-end sub

i also tried -- form1.close() and form1.dispose() but all in vain

Problem is that my form1 is not getting closed

View 7 Replies

VS 2008 Textbox From Form1 Put Into Web Browser On Form2?

Oct 4, 2009

Ok I have 2 text box on form 1...

Username:

TEXTBOX HERE

Password:

TEXTBOX HERE

The web browser is on form 2...

When I click login, how can I make the username text box text and the password text box text inject into the web browsers username and password text box's on the web browser ON THE OTHER FORM?

View 1 Replies

VS 2008 Passing Variable From Form1 To Form3 Via Form2?

Jan 10, 2010

IThere's a button on the toolstip that's always enabled for form2 so they are always able to search the database.When a user is on form1 and selects the link button. They are taken to form2 to select criteria to search. On Form3 they choose 1 item in the grid andcan select the Link It button on the form to link the 2 selected grid items (form1 and form3). Since form2 and form3 are available at anytime.my problem is knowing when the Link button on form1 has been chosen and after a successful link to not allow anymore links. Technically, they could pull form2 up via the toolstrip or an existing form2 window and Link as long as Form1 is on the screen but I do not want this. It's as though I need a global variable to set to True/False.

View 1 Replies

Call Menu From Form2 To Form1 Like VB 6 Do "Me.PopupMenu Form2.mymenu"?

Dec 15, 2009

I have 2 forms. On form1 i have listview on form2 i have menu. I'd like to call form2 menu from Form1 ListView1_MouseUp. I tryed to use this code

[Code]...

View 3 Replies

Label Text - When Run The Code Form1 Load Together With Form2, Label.Text Flicker Or Blinking?

May 5, 2011

I have question about Label.Text.

When run the code Form1 load together with Form2.On Form2 I have Label1.I need that Label.Text flicker or blinking.

View 5 Replies

Creating Forms And Objects Through Code In The The Load Event Of Form1?

May 22, 2011

I've been working on creating forms and objects through code in the the load event of Form1, truthfully theres a few questions I have under this one category but to start I want to create a button click event that will check what button was pressed then set that button to a variable. I want the event to treat the button that was clicked like it was that buttons click event.Here's a shortened version of my code (Lol if you can call this short):

[code]...

View 3 Replies

Forms :: Form1 Load Event - Drawings Appear For An Instant And Then Dissappear?

Mar 3, 2010

I am trying to develope a small graphics application in VB.NET. My startup form has a picture box with a background image loaded from a file. The user can click spots on the picture box and this draws some circles on it. On exit the coordinates for these spots are saved to a file.In my form load procedure I load the background image, the coordinates for the graphics(saved from the last time the program was run), and then call the drawing procedure.

The drawings appear for an instant and then dissappear. If you click the picture box the graphics re-appear.The form works fine once you do this.I guess the picture box is refreshed by the form load event and this is causing the drawings to be wiped.(I stalled the call to the drawing procedure by using a timer and this works but I am sure there is a proper way of fixing this)Is there a way of ensuring a form is fully loaded or making sure the drawing procedure occurs only when the form is fully loaded?

HERES THE
Private Sub Form2_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
Me.WindowState = FormWindowState.Maximized[code].....

View 8 Replies

Call Form2 From Form1 In Wpf

Sep 18, 2011

if in vb.net, I can call like this form2.show (), but how in wpf vb.net?

View 1 Replies

Changing Form1 From Form2

Oct 22, 2008

I am having problems making changes to form1 from form2..I tried declaring form1 on form2 Dim f1 as form1.[code]I can change form2 from form1 but not the reverse.

View 5 Replies

Form1 Related To Form2?

Nov 21, 2011

this looks like to the forum I need. I have a question on somethings. My data is pulled from a local SQL sever express. First, Form1(Customer) has has data. his customer has a vehicle in another form this form is called (Vehicle) form.I have created the customer form in a detailed form and the vehicle form on a grid design.

View 1 Replies

Form1 To Open Form2?

Mar 27, 2009

I have been converting my VB6 programmes to VB 2008, and I am beginning to regret it.According to the books that I am reading on the subject, I can call a second form from the first one. That is, when the first form code has completed, and the final line reads:

frmForm2.Show()

the second form should open and wait for input.This does not happen, the form flashes and then disappears without allowing any input, or button click.I must admit that I preferred being able to start from a module, with a Main() sub, which then read the forms, a la VB6. everything seemed to work fine then.

View 16 Replies

Form2.show End Up Behind Form1?

Apr 1, 2012

I made 2 form.

In form1 I have this:

form2.show()
form2 ends up behind form1, how can I make form2 appear in front of form1?

Form2.showdialog() will make form1 disappear until form2 is closed, that is not what I want.

View 11 Replies

IDE :: Transfer Form1 Val To Form2 ?

Jun 29, 2009

There is no session in desktop app in vb.net .i want to transfer valuse from one form to other want to transfer form 1 (TextBox1.Text) value on form2 (objuserpage.Label1.Text)

'form 1=userpage.vb
Dim objuserpage As New userpage()
' form 1 textbox TextBox1.Text[code].....

View 2 Replies

Panel To Form2 On Form1?

Mar 25, 2011

I have a panel to form2 on my form1 which displays a picture box fine. I got a peice of code that stores 5 images in an image list and works off a keypress.

When I press the Comma key the image changes to the next one. This works fine on its own but when I put it in form2 and try to put the keypress code on form1 for it to change image in the panel it doesn't work.

View 4 Replies







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