Pass Values From One Class To Another?

Jul 25, 2011

I have a main class named PortaLinhaFrio and a child class named Ambiente [code]...

View 2 Replies


ADVERTISEMENT

How To Pass Values From List Inside Of Class

May 5, 2011

I am having a hard time trying to pass the values from a list inside of a class. I am trying to display multiple lines of values from a list inside of a class. My "client" class stores multiple lines of values into a list(of class transaction), with the number value (num) counting each transaction that it adds to the list.

Ex:
Public Class Client
Private m_tranlist As New List(Of transaction)
If CInt(tid) = m_ID Then 'create client tran, add to list
nextTran = New transaction(m_ID, tcode, tdate, ttype, tshares, tprice, value, num)
m_tranlist.Add(nextTran)
num += 1
End If

Now I am trying to display each line that is stored in the list in a label, and I am having major trouble. How do I call the list in my main form in order to display all of the values?

View 1 Replies

Pass Key Values To Other App?

Jun 22, 2010

I want to make a program that control powerpoint slides

for example, when I start power point in presentation mode

as I click the button, then slide goes to next. And when I click one more, then go next slide.

I don't know how to send message to powerpoint in VB.

View 2 Replies

Pass Values From One App To Another

Feb 4, 2009

I am in the process of creating a program that needs to pass some information to another program. The program that needs to receive the data is meant as an update program to the first. I send a new copy of the host program over the sockets connection, then I need to pass the file name and location to the update program. After this information is sent the host program will quit so that the update can overwrite the host with the new version. The the update program restarts the host and everything goes on like normal. I have everything all-ready in place, except for passing the file information. I could just save the information in a text file and read form this, but it seems messy and illogical.

View 6 Replies

How To Pass Values Through AddHandler

Feb 10, 2011

I'm trying to send values through addHandler. How can I do it.

View 2 Replies

Pass Values From Classes?

May 5, 2011

Im having problems passing values from my class "client" to display on my main form in text boxes. Im looking up a user input number and then pulling the clients first name, last name, and phone number from a text file. I figured out how to pull the information from the text files, but now im having difficulty passing the values to display in a another forms text box. This is what I have so far.[code]....

View 11 Replies

Pass Values To A Paint Sub?

Aug 2, 2011

I have been updating a program that was made in VB5. It contains several lines of code that are drawing lines and arcs, for example:

Arc(picCameraImage.hdc, sngOldX - sngCircRadius, sngOldY - sngCircRadius, sngOldX + sngCircRadius, sngOldY + sngCircRadius, sngOldX, sngOldY, sngOldX, sngOldY)

I have figured out, or think to have figured out, that the new way of doing arcs and lines does not require the HDC, so that problem is solved. The problem I am having now is that with the new way, every example I have found created a sub that does the drawings, like:

Public Sub PictureBox1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles PictureBox1.Paint
Dim radius As Integer = 20
Dim diameter As Integer = radius * 2

[code]....

Is there anyway to pass values to this sub? I have to draw several arcs and lines and the values for them are different everytime. I would like to create a sub that would be used in every spot the old program used the old arc command and pass the needed values through it.

View 3 Replies

Can't Pass Value To A Class

Nov 3, 2009

The value from the text box is not being passed to the class.[code]...

View 13 Replies

How To Pass The Value Between Class?

Feb 16, 2011

Can any one please tell me why the following code is not giving me the expected result Application type as Class library Form with 1 text box and 2 button

form1.vb
Public Class Form1
Private Sub button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim cl As New WindowApp.Class1

[Code]...

View 4 Replies

Dynamically Pass Values To An Object?

Mar 28, 2011

How can I do this:

Dim oMyObject As New MyObject
oMyObject.DoSomething("Parameter1","Parameter2")

The "DoSomething" and the two parameters are dynamically provided from another script. They are stored in a string object in this script: sAction & sParameters. My question is how can I dynamically pass the "sAction" to the object oMyObject.For example oMyObject.sAction (where sAction should be the value stored in the sAction string). The example will probably not work. Is there a way to do this? The idea behind is to avoid having to write each function hardcoded, like:

If sAction = "DoSomething" then
oMyObject.DoSomething(sParameters)
ElseIf sAction = "AnotherThing" then

[code]....

View 5 Replies

How To Pass Values To A Particular Column In Excel

Sep 6, 2011

How to pass values to a particular column in Excel

View 8 Replies

Pass 2 Textbox Values To Another Form?

Sep 26, 2010

I have 2 textboxes on form1 that I want to pass to 2 labels on form2, I used the Get Property to do this but i am getting errors, can anybody show me how to do this, I am new to visual basic

View 8 Replies

Pass Arrgument With Values To Console App?

Jun 26, 2010

If i pass this argument:

-helloworld

I can get it easily.But how do I do if i want to get this line as 1 argument or something:

-writethis "Hello Guys!"I have only suceeded with retrieving it as 2 separate args (writethis, "hello Guys")

View 2 Replies

Pass String Values Between Applications?

Apr 30, 2010

I have a application that I would like to pass the company name to the other application?

View 1 Replies

Pass Values Back And Forth Appdomains?

Aug 9, 2009

I have the following [code]...

I thought make this would make my ada.myString have "working!" on the main appdomain, but it doesn't. I thought that by inhering from MarshalByRefObject any changes made on the 2nd appdomain would reflect also in the original one(I thought this would be just a proxy to the real object on the main appdomain!)?

View 2 Replies

Pass Values From Child Form To Mdi?

Apr 15, 2012

I open a child form from within a parent form

[code]...

now the form customer master has values within a listview. when i doubleclick on a value within the listview i want this form to close and pass the value to a textbox within the parent form. what would the code be? I am relatively new to vb.

View 1 Replies

Pass Values From Datagridview To Listview?

Jun 10, 2011

How pass values from datagridview to listview

View 2 Replies

Pass Values From ListView To Datagridview?

Jun 10, 2011

I am using visual basic 2008. i have a listview and a datagridview which have both 3 columns like ProductCode,ProductName & ProductPrice. Now i want to pass listview values to datagridview in the same sequence. I want that when i double click on any row in the listview these row values inserted to Datagirdview.

View 6 Replies

Pass Values From One Datagridview To Another In Different Window?

Mar 25, 2011

I need to pass all rows at once created in a gridview to another. With the following script i can only pass one line at a time when i click the button.

Private Sub btn_add_equip_ext_guardar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_add_equip_ext_guardar.Click
Dim rowext As Integer = win_Comp_orc.grd_NoOrc_Exterior.Rows.Count

[Code].....

View 14 Replies

Pass Values From Textbox Into Listview?

Jun 10, 2011

i really need it those kind hearted programmers out there

View 6 Replies

Pass Values To Event Handler?

Nov 1, 2008

I have a function that creates a button and textbox on my form dynamically. That all works fine, but now I need to pass values to my click event.[code]...

View 4 Replies

How To Use The Values From A Child Class In Parent Class

Mar 31, 2012

I have a problem that is frustrating me to no end, I have a overrideable function in a parent class, and the override function in the child class, like below:

[Code]...

When i debug, the value is produced, but it doesn't carry over to the parent class of ski.RetailPrice()what seems to be the problem here?

View 1 Replies

Pass A Class Using TCPClient?

Mar 6, 2009

I have been reading the following thread by perito which was resolved with a great deal of assistance from Athiest.[url]...

Using the sample code in this thread I have now created a Client and Server app which is successfully sending messages over a network between two machines.

Now that I am able to send simple text messages I would like to progress to my intended pratice of sending more complex information between the machines. I have already written a program which generates and stores data with a class which I use as a data type. I would like to be able to pass this class from one machine to another.

View 2 Replies

Pass A SqlParameter From One Class To Another?

Oct 19, 2011

I have a class, LogRequest, which contains parameters (members) for an object.This object is turned to an sql query using another class, DataAccess.And lastly, I have the class Search which run the sql query.[code]...

View 2 Replies

Pass Data From Other Class?

Apr 7, 2011

I'm still trying to develop p2p chat application from this thread. I have 2 applications, server and client. A client has: Form1.vb, BB_Client.vb, and RTS_SocketClient.vb. Dataflow is Form1 creates new object of BB_Client, BB_Client calls RTS_SocketClient.[code]...

View 7 Replies

How To Pass Values From Textbox To Datagridview In VB 2008

Feb 23, 2009

i used a split container, in the 1st panel, i put the textbox for the user to input the values. In the 2nd panel, i put the datagridview to output the values that the user inputted. Now, i don't know and i cannot find way how to print the values into the datagridview from the textbox.

View 9 Replies

List.Find. Pass Values To Predicate?

Apr 16, 2010

Having a bit of trouble using the List.Find with a custom predicate i have a function that does this

[code]...

by doing it this way means i have to have a shared "currentKey" object in the class, and i know there has to be a way to pass in the values i'm interested in of CurrentKey (namely, keyname, and oldkey) ideally i'd like to call it by something like keys.Find(AddressOf FindByOldKeyAndName(Name,OldVal))however when i do this i get compiler errors.How do i call this method and pass in the values?

View 2 Replies

MaskedTextbox - How To Pass Values Of Fields To Database

Apr 24, 2010

I am new using Vb. I did create an app that accept general customers info, and save it into a database using the bindingsource component(I don't know how to do it with SQL from VB). Everything was fine, but adding a couple of maskedtextbox has become difficult. I don't know how to pass the value of this fields to the database. I used the following code:
phonetextbox.text = maskedtextbox.text
Leaving the original fields in the form, I see the values on them, but they never goes to the database. Is this just possible using sql command from VB?

View 1 Replies

Pass Datagrid Values To Parent Window?

Oct 20, 2009

i've small problem in vb.net .i've mdi container form,in child form datagridview is there previoues,next buttons in parent form.

How to pass datagrid values to parent window?

i'm new to vb.net.Pls help me any one.

View 2 Replies

Pass Different Values From A Listbox To A Certain DatagridView Column?

Aug 27, 2009

Rather using a DatagridView Column ComboBox i need in this phase of my project, to use a listbox outside the datagridview ,o pass values from listbox to the datagridview. I do not want these Values to be default in that, column of DGV but when adding new rows i want to pass different values,always form listbox to the DGV..

View 14 Replies







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