Call A TextBox From Another Form?
Apr 25, 2011
I want Call a TextBox from another Form Example I create the TextBox on Form3 and call that TextBox on Form2.
Dim TextBoxes As List(Of TextBox) = New List(Of TextBox)
Dim tbWidth As Integer = 50
Private Sub Form3_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load[code].....
View 9 Replies
ADVERTISEMENT
Sep 22, 2010
I have a VB .NET 2010 application. I added a C# project to my solution. I tried to call the form called 'main'. However, I could not figure out a way to do that. What is the best way to do that? I Goggled, and did not find anything. Actually I noticed that my Developer converted everything to VB .NET.
View 5 Replies
Jun 3, 2011
I have two forms. Form A and Form B. Form A has a datagrid that is populated from a SQL Database Table query. When a button is pressed Form B is launched that allows you to add a record to the database table. I need for the datagrid to be refreshed and show the newly added record when I close form B and go back to the parent.
[Code]...
View 2 Replies
Aug 4, 2009
I need to know the proper way, or maybe I should say, the different ways to call another form from a parent or preceding form. I am currently using ex: formname.showdialog() to call my next form, but I am uncertain if I should be using that in every situation. [code] Whats the difference between these different methods? (ex: .showdialog() , .show() )I tried both of these to open a temporary form to retrieve a persons name from a database, so as the users progresses through my training program they can keep track of their scores.But, I also call other forms as I branch through my program, from the main page, to a secondary page, to a testing page, to a results page and then back to the secondary page
View 5 Replies
May 14, 2010
How can I disable the parent form when I call a child form?This code doesn't disable the parent form like I thought it would:
frmChild.ShowDialog()
View 2 Replies
Feb 1, 2011
I am trying to program a dialogue box to appear when the exit button from my 'Login' form is clicked. The form has three options; yes, no, cancel.
[Code]...
View 2 Replies
Sep 5, 2010
I have a small program which draws some lines with a method called: Drawlines But Now I want to call this method in the load form routine. So if the form is loaded the lines should be drawn in the picturebox. But is this possible or should the form first be loaded completely before you can call methods in that same form?
View 6 Replies
Oct 20, 2009
Could i call the child form events like (closing ,load, activate,closed) .
View 6 Replies
Dec 7, 2009
I have two form :
class form1 'parent form dim number as integer
public sub create ()
dim f2 as new form2
f2.MdiParent = me[code]....
In form2.vb how to use variable number and method test
View 3 Replies
Oct 15, 2011
im trying to do something like this
Module module1
public sub()
dim a as string[code]....
View 6 Replies
Jun 28, 2010
I have two multiline textbox call txt1 and txt2. Each line on txt1 will be filled with name while txt2 will be filled with age. I wish to loop throught both txt1 and txt2 and fill them into an arraylist using User class. I was only able to fill in the name but have no idea how to append the arraylist to add in the age.
[Code]...
View 3 Replies
Sep 23, 2011
I have to use Form.Action to redirect to a script that will be picking up values from my page. It is worth noting that this script is external.My issue is that I also want the button that is clicked and has the Action hooked up to it, to also complete some functionality in the code behind first.Is there anyway I can either :In the buttons click event handler, can I set the Form.Action and then call something such as Form.Submit?OR Set up the Form.Action in advance and then somehow have the button posting back before the action takes place.
View 5 Replies
Sep 1, 2009
I have one form called invoiice1.vb In the load event how can i call another form ? I also call some values of thatt form
View 2 Replies
May 4, 2009
I have a sub declared inside a module which accepts form as argument.
sub display(fname as form)
What I need is to call the sub form the load event of a form. I tried the following.
display(me)
But cant access the controls of the form inside the sub.
sub display(fname as form)
fname. 'no controls of the form are listed?????????????
end sub
View 3 Replies
Feb 2, 2010
I added toolstrip control into MDI form. on the parent form, creat many toolstripbutton like tbAdd, tbSave,tbEdit.When I open child form, how to call tbAdd or tbSave.. toolstripbutton on the MDI?
View 1 Replies
Jun 21, 2010
I am trying to prepare a report detailing all jobs entered into program sorted by customer and then by project name. Also produce a report for total products for all projects in database.
View 4 Replies
Jan 8, 2010
Is it possible to have a Textbox on a form that when the user inputs data, ( during Runtime )that data remains in the Textbox for good and the Textbox then becomes read only ? Is it also possible to make it so that the CD with the programme on, is in the PC when the programme is being used. Perhaps writing the Textbox data back onto the CD ?
View 1 Replies
Aug 19, 2009
I creat one WEB project, this project contain tow WEB FORM, In the first Web Form Design i have tow TextBox for Entring the date(All dataTable between this tow dates) and one Button, I want that when i press to to this Button it will load the second WEB FORM and show all the Data Table in DataGrid In this WEB FORM, So i need To call this tow TextBox value from the first WEB FORM to the second WEB FORM In Load_Page i will use this tow value in select statment. So i want to know how to call this to value from the first WEB FORM. I'am using VB.NET WEB APPLICATION.i have allrady DB in SQL .
View 4 Replies
Jul 3, 2010
I wanted to call another form, but i am getting an error.[code]...
In MainForm, I want to call and open Form1 but i get this message when i try to do this [code]...
View 6 Replies
May 27, 2009
i have a sub declared in form1 now , i want call this sub in form2i used this code but it is error :
NhatkittDataSetAndView()
This is sub i want to call in form2:
public Sub NhatkittDataSetAndView()
[code].....
View 4 Replies
Mar 17, 2012
i want to which way is better when concentration is on processing speed. i want to call a method that compute some data that method is on another form in my windows form application then what you prefer is better way 1) to call that method in another form and use returned value or create similar method in form where it is required.i want to make it's processing fast.
View 3 Replies
Nov 19, 2010
I know you can do it with form.show, but are there any other ways of doing this?
So what is the most appropriate way of doing this in vb.net?
View 6 Replies
Jun 18, 2011
I am trying to call a SetVariable command from an other form. For example, there is a movie ( called Movie ) on Form1, and a button on Form2. The button on Form2 needs to use a command like the following:
Call Movie.SetVariable("example variable", 1)
The above variable needs to be set to the movie on Form1, but I need the button to call it to be on Form2.
View 2 Replies
May 21, 2010
How do I execute below from other form? How do I code it? I need to see "Hello1".
Public Class frmMain
Private Sub frmMain_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
[code].....
View 7 Replies
Jun 21, 2010
I have so many form in different module in one solution. I already instantiate a new Form as a global variables in my parent form. Then, call the code
frm.show()
in my button1 event
View 6 Replies
Jan 11, 2010
I have a form that loads in my project and does some task on its own, then closes itself. I'm implementing a new functionality into the program where I need to call this form with an argument (to later be used as a conditional clause). If I call the form from a certain button, I want to launch the new form with an argument ("automatedTicket") and I will then use this argument as a conditional test in the code of the form.where, in the ACCEPTING form do I put the argument declaration?
basically i need to do something like:
ServiceTicket.Show(False) 'false for being a manual ticket (click of button)
ServiceTicket.Show(True) 'true for being automated (no user intervention)
then in the ServiceTicket form, where do I put that I'm expecting one argument? and where do I declare that argument name (automatedTicket)?
View 8 Replies
Nov 23, 2011
I have defined a function on one form. I need to call that function again on another form. is there any way i can do it without redefining the function again and again?
View 12 Replies
Feb 26, 2011
I have a login form with the code below[code]...
When i run this code and click OK, i get an error at f.show which says'Object reference not set to an instance of an object.'
How do i go about it so that i can get a smooth login an access my MDI form?
View 2 Replies
Jun 21, 2010
I have a Form1 with a method called OrdreUpdate2 I try to run thad method from another form by using the command Form1.Ordreupdate2 in a buttonclick.
But nothing happens..What am I missing here?
View 1 Replies
Feb 15, 2010
I have a month calendar on my form. under it's DateSelected Event I do a bunch of stuff. Now I want to call this event from another form. How can I do this?
Private Sub MonthCalendar1_DateSelected(ByVal sender As Object, ByVal e As System.Windows.Forms.DateRangeEventArgs) Handles MonthCalendar1.DateSelected
....
End Sub
View 4 Replies