Passing An Amount Back To An Other Form?

May 25, 2009

I have a CheckingAccountForm and a CheckingAccount class. I have 2 variables AmountEntered and TotalAmount. The user enters an Amount and hits the calculate button. So now I send the AmountEntered to the CheckingAccount class where it is added to the TotalAmount and I have to send the TotalAmount back to the CheckingAccountForm so it can be displayed in a textbox. Can someone give me an example on how to do that? I get the AmountEntered to the CheckingAccount Class and managed to calculate, but not sure how to get the TotalAmount back so I can display it in the GUI's TextBox for the TotalAmount.

View 3 Replies


ADVERTISEMENT

Passing Setting Value Back To Form That Had Called The Form?

Feb 1, 2010

This is what I have..Dim frmSettings As New frmOptionsfrmSettings.ShowDialog(Me)frmSettings is a settings form that you can choose the color for background of form1(Me)

View 1 Replies

Passing Data From A Form Back To A Thread

Sep 20, 2010

In a threadpooling situation is it possible for a modal form to be opened and data from that form to be passed back to the thread that opened it ?

View 1 Replies

Asp.net Mvc - Passing Record Id Into View And Then Getting Back On Form Post

Dec 9, 2011

MVC 3. VB.NET application.. I am trying to pass a id along to keep track of which record a file name needs to be saved in.. The problem is that the id is getting passed into the view but on post back to the controller it is being lost...I have hammered on this for hours now and I am stuck...

[Code]...

View 1 Replies

Multi Forms And Passing A Value From One Form Back To Another Using A Listbox

Apr 12, 2011

Im having trouble passing a value from one form back to another using a listbox... The user clicks a button in the main form to bring up an instance of another form (form2.show). In that form, the user then then selects a number 1-5 and then presses done:

[Code]...

View 2 Replies

Passing Array Form C++ DLL To VB6 Through Call Back Function?

Sep 6, 2005

I need to pass an uint8 array from C++ DLL to VB6 application but I receive always following error: "subscript out of range" if I try to work with the array 'pabyData' in my VB6 procedure. The C procedure is: typedef void (__stdcall *FUNCPTR2SendData) (const uint8_t* pabyData, uint16_t wDataLength); void SendData(const uint8_t* pabyData, uint16_twDataLength) { FUNCPTR2SendData vbFunc; vbFunc = (FUNCPTR2SendData) ptCBFPointers->p2NewDirectDataSMSEvnt; // ptCBFPointers are call back pointers, where is saved the call back address of VB6 functions vbFunc(pabyData, wDataLength); } The VB6 procedure is: Public Sub SendData(ByRef pabyData() As Byte, ByVal wDataLength As Integer

View 2 Replies

VS 2008 Login Popup Not Passing Back To Webrowser Form

Nov 23, 2010

I have created an application that I am using the VB webrowser control. The users needs to login to a site to display a particular webpage. The sites login is in a popup and what appears to be happening is the popup is launching outside my application (has IE in the title). If I enter uers/pass and try to login the information is not being passed back to my webrowser form.

View 5 Replies

Passing Back Lisbox Values When Going Back To Previous Page?

Jul 23, 2009

I have a search page with a couple of pulldowns. Dependig on the values of them I show a grid matching the searched criteria, basically a table with links the user can navigate to. My problem comes when the user wants to navigate back. At the moment I have a "Back" button which simply redirects the user to the initial search page. I think it would be a good improvement to have the values of the pulldowns filled in with the values the user selected, this way when he presses the "Back" button he would not have to restart the whole search process again.

View 5 Replies

Passing Values Back From Threads

May 8, 2009

Can anyone give me the best method of passing back a value from a Thread?I have some procedures that I have set up as threads that I'm starting at the same time.My main function then waits until the threads are done and I'm needing to get back some values that the threads have created.Is there a better way to get these values back rather than just having them set a global variable with the returned value? Also, what is the proper way to wait for a thread to to be completed?I've just got a loop waiting for the Thread. Thread State property to not be in the Running state.So if there is a more proper way to wait for the thread to end I would be interested in knowing it.

View 7 Replies

Passing A Large Text Back To The Server?

Nov 10, 2011

I have a project now where I will have a large chunk of CSV text, like 60 lines or more, and need to pass that from the client to the server. I know it would be weird with GET, but how would I store the multiline text so that I could later split it up, etc at my application?

View 2 Replies

Reset Rtb1 Back To Default ("ThreadAmountEdit=[Thread Amount]") On Button Click

Dec 6, 2011

Here is my case:I have a richtextbox called Rtb1 I have the text property for this control set to "ThreadAmountEdit=[Thread Amount]" This was set through the RichTextBox Tasks function, by clicking the control and selecting the little arrow in the top right corner. In working on my form, I edit the text "[Thread Amount]" of the rich text box to "45". What I need is to be able to reset Rtb1 back to default ("ThreadAmountEdit=[Thread Amount]")on button click.

I've tried: Rtb1.Refresh() which doesn't appear to do anything I've also tried Rtb1.ResetText() which completely clears the textbox.

View 2 Replies

VS 2005 : Add The Amount Column Of The Dgv And Display The Total Amount In The Textbox?

Jan 21, 2010

i have a datagridview binded with the datatable via its datasource property....now i want to add the Amount column of the dgv and display the total amount in the textbox,if the amount is greater than a certain value then i want the cell to coloured red so i did this code and it worked great:

Dim i, j As Integer
For i = 0 To DataGridView1.RowCount - 1
j += Me.DataGridView1.Rows(i).Cells("Amount").Value
Next

[code]....

but my problem is that i want the red colour of the cell to blinkafter every 2 seconds....how to do this?i need to handle the timer tick event for this but i am not able to do this.....

View 2 Replies

Cover X Amount Off Nautical Miles At X Amount Off Knots?

May 4, 2010

im trying to make a simple program that calculates the time it takes to cover x amount off nautical miles at x amount off knots, the code i have so far is this :

Code:Public Class Form1 Private Sub Label2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label2.Click
End Sub

Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged

[Code]...

so if i say want to cruise 29 miles at 12 knts it gives me an awnser of 2 hours 24.6 mins instead of 2 hours 25. Although i do realise that 2 hrs 24.6 is technicaly right i was wondering if anyone here could help me with getting it into the correct format?

View 4 Replies

Get Amount Of Money User Has And Doesnt Go Over Amount Hechecked

Jun 7, 2011

im trying to make a fast food program on which the user will input the amount that he has, then he will check on what he wants, by using check boxes. There are 7 different check boxes with 7 different amounts of money. I have the program somewhat finished (thanks for the people that helped me before) but theres still a couple of things that I still need to get finished but I dont know how to.I need to be able to get how much money the user has (this will be entered threw a text box, I think I accidentally messed this part up, because I cant get it to work right, (theres alreasy a permit amount of money in there and it needs to be what the user enters instead of the permit, 5.59, one) and this will be the maximum amount he can spend, then the user will check on the food he wants (and the program will add the sales tax also) then it will produce an answer saying if you have enough money or if you dont. But what im confused on is how do I get the users amount of money and make it the maximum mount he can spend and make sure it doesnt go over the amount that he has checked.[code]

View 1 Replies

Coversion Of Amount In Figures To Amount In Words

Nov 25, 2009

I am working in a point of sale system in Vb express 2008. I want to convert the Amount in Figures to Words like: How to conver the amount of $ 1,550,325.45 to Amount in words as DOLLARS: ONE MILLION, FIVE HUNDRED FIFTY THOUSAND, THREE HUNDRED TWENTY FIVE AND FORTY FIVE CENTS.

View 2 Replies

Coversion Of Amount In Figures To Amount In Words?

Nov 25, 2009

I am working in a point of sale system in Vb express 2008.I want to convert the Amount in Figures to Words like:How to conver the amount of $ 1,550,325.45 to Amount in words as DOLLARS: ONE MILLION, FIVE HUNDRED FIFTY THOUSAND, THREE HUNDRED TWENTY FIVE AND FORTY FIVE CENTS.Please advise how to code for that in Vb express.

View 5 Replies

Calculate The Amount To Save Up To A Certain Amount?

Mar 13, 2011

how to calculate the amount needed to save up to a certain amount.

Private Sub btnCalc_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnCalc.Click
Dim dblSavings As Double
Dim dblFuture As Double

[code]....

View 3 Replies

VS 2008 - Generating Random Amount Of Numbers And Letters In Form

Dec 24, 2009

I am using Visual Basics 2008 Express edition. I want my program that I am making to generate a random amount of numbers and letters in this form when I click Button1.
WM9RX-GG6J2-4WKD9-FDJWM-TYH76
Is this possible?

View 8 Replies

VS 2008 Passing A Form - Get The Error.'cmbDataTable' Is Not A Menber Of 'System.Windows.Forms.Form'?

Nov 26, 2010

I'm upgrading a project from VB6 to VB2008.I have a routine that clears a combo box, named 'cmbDataTable' which could be on any form. I pass the form and the combo box is cleared.


[code]...

I assumed it would be the same in VB2008 but I get the error.'cmbDataTable' is not a menber of 'System.Windows.Forms.Form'I am working my way through the project, first updating the global procedures - this is one - I haven't written the calls so cmbDataTable doesn't yet exist.

View 7 Replies

Passing Values From Modal Form To Parent Form?

Aug 11, 2011

I am trying to pass information to parent form from modal form in vb.net winforms application.

1.) I created a copy of a form and displayed it using following code.

dim f=new frmParent()
f.show()

2.) Depending on conditions a button on frmParent opens a modal child form and asks for some informations. I used following code for that:

dim f = new ChildForm()
f.showDialog()

Both code works fine. When user press saves in child form i need to close childForm and use the user types values in parent form. I know how to close the childform but not sure how to pass info from childform to parent form.

View 1 Replies

Passing Text From Form To Form?

Jun 10, 2011

i am try to pass the text input into the text boxes in form ( OrderScreen) into the text boxes in ( PrintOrderScreen)I don't get any error it just does not pass the text over to the second screen.

[Code]...

View 4 Replies

Passing Variables From Form To Form?

Feb 4, 2011

Im having a bit of a problem passing variables from one form to another. Oh and for some reason my saveing sub routine dosent work, i cant get it to save the file in text format.

Public Class DijkstrasAlgorithmFinal
Dim x As Integer
Dim Dijkstras(4, 3) As Integer

[Code]....

View 7 Replies

Get Back Exited Out Of A Form On Accident

Nov 24, 2010

I exited out of a form on accident, and now I cant figure how to get it back. When I debug the program, it stiill works, the form is still in the file, I just clicked the "X" to get rid of it. Now I want to edit that form, but it wont let me, because I cant find it.

View 2 Replies

How To Call Back To Original Form

May 20, 2010

I have 2 forms. Form1 and Form2. When Form2 is closing, how do I make Form2 to inform Form1 that Form2 is closed.

View 2 Replies

Set The Transparency Key To The Form Back Colour?

Mar 20, 2011

[URL]

i hav a transparent png. i need the form also to be transparent so what i did was set the transparency key to the form back colour see what happens (it is in the pic)

View 9 Replies

ASP.net Form Not Passing Ddl Values

Dec 9, 2011

I have a form with 2 dropdownlists and a submit button. I want to pass the values of the lists in a URL when the list is submitted but for some reason the initial value of the ddl is getting passed. Here's my code:

[Code]...

View 2 Replies

Form Passing To Procedure?

Feb 10, 2010

I have a form which contain Two textbox control. When I passing the Form to Procedure the textbox controls of the form not getting say I am giving Exaple.

Code:
Public Class Myform
'This Form Contains Two Controls TextBox1 And TextBox2
'Calling the Procedure

[code]....

View 6 Replies

Passing A Form To Sub Procedure?

Feb 11, 2010

I am in great trouble. I have a form which contain Two textbox control. When I passing the Form to Procedure the textbox controls of the form not getting say I am giving Exaple

Public Class Myform
'This Form Contains Two Controls TextBox1 And TextBox2
'Calling the Procedure

[code]......

View 1 Replies

Passing A Textbox Value To Another Form

Sep 24, 2009

I have 3 forms, the form one is an intro, form 2 loads a user and form 3 displays a user. i use the streamread / writer to load values on form 2, then when successful it loads form 3 and the vaules are transferred perfectly, now to save time i changed the start up form from form1 to form2 (saves having to skip every time). so after having all the code load and transfer i wanted to see it in action and then the issues started.

[Code]...

View 4 Replies

Passing A Value To A Minimized Form?

Oct 17, 2009

I have a 2nd form that is minimized to the taskbar, I can click on the tab and the form opens and shows all of the data fine, but

From the main form, I am maximizing the second form and trying to pass a value to a toolstrip textbox on the second form then press a button on the toolstrip from the second form, I can get this to work fine, but where I am having a problem is

The button searches through a treeview, when I step through my code, I can see the value that I am passing, my code does execute, but the treeview is showing no nodes(but they are really there). At the begining of the code, I put a message box to give me a count of the nodes in the treeview, it shows 0, but I can see all 10000+ nodes. What the textbox is on the toolstrip is a search box. When the form is maximized, I can enter whatever and it finds it with no problems, but if I pass a value it doesnt find anything because the treeview is saying there are no nodes when there is.

View 6 Replies







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