Pass String Values Between Applications?
Apr 30, 2010I have a application that I would like to pass the company name to the other application?
View 1 RepliesI have a application that I would like to pass the company name to the other application?
View 1 RepliesI am trying to use string.format on a url to pass several values into the string. It's probably a simple error but I cannot get the following code to work. It doesn't even build the string.
Public Sub getStockData()
Dim client As New WebClient()
Dim url As String
[code]....
I used the username and password in connection string to pass to SetDatabaseLogin command but displayed errors
Here are my code:
'For main-report section
Try
connect.ConnectionString =
[Code].....
I got the error from the line: mySubReport.SetDatabaseLogon(userId, userPw). missing codes in Try block that caused the error at userId, userPw.
Right now I am using this code on client side.
[Code]...
The values for the hidden fields are already set. I want these value to open a window, in which the fields will be already filled using the values passed by this page. This code is working fine on Internet Explorer, but not on other browsers. Moreover, when I don't pass any value and just open the required window, it works on all browsers.
We have a few applications that will be passing a token object around and I wanted to get an idea about the best approach at doing this.
For starters, this token object is somewhat simple. It would have about 5 properties or so.
Would we create a WCF app and reference it through a datacontract?What about serializing it and sending it through an http post? (each app have a referenced dll of the object)Querystring? (I truly don't think this would be good, but put it up nonetheless)?
I have two VB projects in one VS2010 solution. The first program brings in about 60 integers every few seconds from my PC's serial port. The second program, published via Click-Once and running on my customer's PC, needs to see that new data every two to five seconds.
Is there a simple and reliable way to accomplish this, staying with VB? WCF is way over my head.
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.
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 RepliesSo strings are reference types right? My understanding is a reference to the string in the heap is passed even when you pass the string ByVal to a method.
String myTestValue = "NotModified";
TestMethod(myTestValue);
System.Diagnostics.Debug.Write(myTestValue); /* myTestValue = "NotModified" WTF? *[code].....
And what is going on under the hood? I would have bet my life that the value would have changed....
I'm trying to send values through addHandler. How can I do it.
View 2 RepliesIm 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 RepliesI have a main class named PortaLinhaFrio and a child class named Ambiente [code]...
View 2 RepliesI 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.
i'm searching the string in my applications ,the results display form is quite heavy so i thought before loding the form i want to show some search icon.how to do that?
View 9 RepliesHow 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]....
How to pass values to a particular column in Excel
View 8 RepliesI 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 RepliesIf 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")
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!)?
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.
How pass values from datagridview to listview
View 2 RepliesI 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 RepliesI 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].....
i really need it those kind hearted programmers out there
View 6 RepliesI 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 RepliesI have the following issue: i want to make a vb .net application that can send any string message to any other application opened in windows(more specifically to an application created in visual c++ 6.0). To tackle the problem i firstly created 2 forms in my project and tried to send a message from one to the other. I have tried 2 ways[code]...
View 1 RepliesI 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?
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 RepliesHaving 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?
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?