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


ADVERTISEMENT

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

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

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

Forms :: Listbox - Multi Select Option?

Dec 15, 2011

I had set the multiselect option to true for listbox.Let me know how to move the list items up and down with this option.

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

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

Forms - How To Go Back To Previous Form From Current

May 3, 2011

I have a menustrip, in which i have put a BACK option so that the user can go back directly from where he came to the current form, as there are many form which leads to the that particular form.

View 4 Replies

Forms :: Passing Values Into Controls Of Other Form?

Sep 30, 2011

I have to ask a stupid question:How to pass values from my form into the controls of other form?I made textbox and button in my form1 and Label into the form2 When I click the button, I want to pass the values of the my textbox in the form1 into the labels of my form2

I am a student and totally new to vb.net

View 3 Replies

Forms :: Backward Button To Go Back To Form From Opened .exe Program?

Jun 20, 2012

I am currently working on a program that has several buttons in it lined up. Each button goes to different applications (.exe programs). The program I am making is suppose to be a fullscreen program and won't let you see any of Windows when it's running.

Therefore I want to make a "back" button that always stays on top of any application and when I push it it will take me back to my WindowsForm (startpage of the program).I am also wondering if you can make it so all .exe programs only can run ONCE. So if I press one of the buttons saying "open notepad" I want it to work so it can't open Notepad once again making it two notepads open. Just go back to the first Notepad opened.

View 3 Replies

Forms :: Question After Splash-screen Shows Main Form Is In The Back?

Sep 24, 2010

I have a splash screen, the default from Visual studio. It loads up, is shown for a few seconds, then, when it disappears, the main form is loaded. Now here is the problem: the main form appears in the back, behind the windows explorer window I load the application from.

The weird thing is that this only happens on some computers, particularly Windows XP machines.I tried a lot of things like BringToFront() or TopMost = true in the on Load event of the form but nothing seems to change this.

View 3 Replies

Multi-threading Forms - Open A Separate Form As A Separate UI Thread From The Start Up Form

Oct 27, 2011

I have a few forms that have a lot of really intensive updating along with a great deal of user interface (text boxes, button clicking etc) Is it possible to open a separate form as a separate UI thread from the start up form that called it to "show" or open or whatever the new method might be?

View 6 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

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

DB/Reporting :: Multi User - Windows Application With Back End As SQL Server 2008 Express

Mar 17, 2009

I'm working on a multi user VB.Net windows application with back end as SQL Server 2008 Express. The SQL Server is installed on the intranet network drive. This is the connection string I will be using. Is this correct?

Data Source=.SQLEXPRESS;AttachDbFilename=Q:DatabasePrintDB.mdf;Integrate d Security=True;Connect Timeout=30;User Instance=True

View 3 Replies

Forms :: Obtain Listbox Items From Another Form ?

Sep 15, 2011

I am using Visual Basic 2010 Express. I have 2 forms. A main form which does all the grunt work and then a small supporting form to get some additional user inputs.

Some program background...I am developing a program to characterize solid rocket motors based on test stand data for a hobby project. I load the time, thrust data into lists via a streamreader from a text box.

However, since the data is raw I would like for the user to select the "start" and "end" of the burn. I am currently trying to do it right after I load the data. As I read the data in, I just put it in the listbox of the supporting form as well. My main issue is, I need two values from the user. A start and end time. the index would probably be easiest, as I will rewrite the data list based on the time increment and delete everything before the first listbox selection and everything after the second selection. I can't get the values from the main form. I have exhaustively searched the internet trying to find something that I can apply. If someone could help with a framework on how to do this.

I understand how to get text from this text box on a different form, but this deals in variables and maybe setting up a class? I am having trouble communicating between the two forms.

View 1 Replies

Passing Information Between Forms/dialogs (Form -> Dialog -> Dialog)?

Dec 22, 2009

I often use the process of displaying a dialog from a form, with the dialog user input then used to update the main form without any problem. In a new scenerio I launch the main application screen, I then show a login dialog ontop of the main app screen and can launch another dialog from the login if a new user is required. The plan is to update the login dialog (updating a combobox to reflect the addition of a new user) from the new user dialog.

See code below :-

'Update login forms user list as new user added successfully
frmRoomBookingLogin.cboLogin.DataSource = Nothing
frmRoomBookingLogin.txtPassword.Text = "Updating password from dialog"
MessageBox.Show("The password text is " & frmRoomBookingLogin.txtPassword.Text)

[code]....

The messagebox implies the dialog has been updated yet the text does not change. Is it possible to update the dialog when using a setup such as Form -> dialog -> dialog? I'm intrigued as why the dialog does not reflect changes. I have never refreshed/repainted the dialog as never required to in my other examples when updating a form from a dialog and never encountered a problem when using a two tier form setup.

View 2 Replies

Forms :: Use The Textbox To Select An Item Form The Listbox

Aug 13, 2011

I'm trying to make an aplication in wich you'll use the textbox to select an item form the listbox If the listbox has:

[Code]...

View 5 Replies

Passing Data Between Forms Without Any Public Methods Or Properties On The Forms

Dec 28, 2009

Passing data between forms without any public methods or properties on the forms. everything but the "Controller" class, which I would like you furnish. I just changed the title from "Intermediate" to "Beginner" This solution is an example of the Observer Pattern. The "Controller" class is the "observed" class, which in this case means it publishes events.

' File Definitions.vb

Public Delegate Sub MessageDelegate(ByVal sender As Object, ByVal e As MessageEventArgs)

Public Class MessageEventArgs : Inherits EventArgs
Public Message As String

[CODE]...

The program should initially display Form1, and Form2. Clicking of the button on either form will modify the Title Text of both forms. I think that you will find the final end result to be pretty neat, as it works with any number of open forms not just two. I think asking for the Controller class is easier than asking for the code in the forms. My solution for Controller class has 7 lines of content, 9 lines if you include Class, EndClass. A minimal solution could achieved with only 4 lines of content, but it would a textbook example of bad programming.

View 12 Replies

Forms :: Passing Several Textbox.text Between Forms

Jul 28, 2010

I use the code

Dim Selvk As New Selvkost2
Selvk.PassedText = TextBox29.Text
Selvk.Show()

[code]....

in my second form and the text passes. but I need to pass values from 20 textboxes. do I have to copy the code in my second form 20 times an declare passedtext2 and so on or is there an easier way to do this?

View 3 Replies

Forms :: Wonky Variable Passing In Forms

Apr 22, 2010

This is my first Windows app to create since VB6. I've been in the world of ASP and ASP.NET for many years. However, now I have been asked to create a simple app that needs to be windows based.

[Code]...

View 4 Replies

How To ListBox Multi Select

Dec 15, 2010

Private Sub ListBox1_DragDrop(stuf) Handles ListBox1.DragDrop
If e.Data.GetDataPresent(DataFormats.FileDrop) Then
Dim Fs() As String

[code]....

View 9 Replies

C# - Loop Through A Multi-column Listbox In WPF?

Oct 5, 2011

I have a listbox with two columns. Each listbox item contains a horizontal stacked panel which in turn contains textblocks.

The listbox is empty, with each listbox item being added by the end-user through a couple of textboxes placed elsewhere. The first column accepts strings, and the second column accepts only percentages.

(I have attached a relevant portion of the event sub where a user is adding new rows.)

Private Sub btnAddItem_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles btnAddSplit.Click
'...
Dim ListBoxItemName As New TextBlock

[Code]....

I would like to be able to check every time the above event is fired that the column of percentages does not exceed 100%. I have a couple of labels below the listbox itself where I would like to show the running total and the remainder.

My questions are:

1) How can I loop through the second column of percentages to show the running total and remainder?

2) Is there something more suitable than a ListBox that could make this easier?

View 2 Replies

Interpretation From Multi Textbox To Listbox?

Jun 15, 2011

I trying to do;when user put in MultiLine TextBox "3 is 5" then push button the ListBox show "33333".If user go to the second line in MultiLine TextBox and put "4 is 2" then the Listbox show "3333344"

View 3 Replies

Multi-character Searchable Listbox?

May 11, 2009

When I used to use Farpoint controls (w/VB6), there was an option on a listbox to set it to mulit-character search mode. It seems that VB.NET (at least 2005) doesn't have this capability. If I type a "G" and then an "A", it first jumps to the first item that starts with a "G" and then the first item with an "A". I want it to jump to the first item that starts with "GA." What is the easiest way to accomplish this functionality?

View 8 Replies

DnD Treenode To ListBox And Back?

Feb 17, 2009

I have some code that allows me to drag a treenode into a listbox and then drag it back into the treeview as needed. When I drag a node out of the treeview, the node is removed from the treeview. When I drag it back, I need the node to be inserted into the same parent node/position it came from. I think I can save the node's FullPath property before removing it from the tree, then decipher it again when I re-add it but am looking for a cleaner way

View 2 Replies







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