Passing Data Into Vb?
Oct 17, 2005
I`m trying to code something to populate an outlook message with data from another application but i'm having problems passing the data into something which could be executed.I'm basically using the script Sub SendMailOutlook(ByVal Recipient , ByVal Subject, ByVal TextBody , ByVal From )
Dim olApp As Outlook.Application
olApp = CreateObject("Outlook.Application")
Dim olMail As Outlook.MailItem
[code].....
View 3 Replies
ADVERTISEMENT
Mar 15, 2012
I have 2 question to ask about vb.net. Now i'm using Visual Studio 2005 with connection MySql...
1. how if I want to passing the data from database to the textbox by SEARCH button. I Have 1 SEARCH button and 3 textbox [txtname],[txtage],[txtaddress] and to pass it also on datagrid...
2. I have a id_Student starting with S001 in database...and I want the id is increment when new data is added. The id_Student is display using lblID_stud
View 6 Replies
Oct 15, 2010
I have written a class library that creates a dll to pass data back and forth within the same compiled instance exe. Is it possble to configure this Class Library in order to pass the data produced in the first instance of an .exe to other instances exe programs written in VB.NET?
My first thought was to add a Module. Older versions used Declare Files. Is there something in the compiler that I should set where the variables point to a specific memory address, or something..., that makes the variable available to other VB programs running in a seperate instance?
[Code]...
View 2 Replies
Oct 14, 2009
to solve my problem regarding dataset, crystal reports and exporting to pdf file? There are datas when i preview the crystal reports but when i export it to pdf viewer there's no data displayed. Here's my
DataOpen()
cmd.CommandText = "Select * From AllDTR Where BIOID = '" & myuser & "' AND Date > '08/31/2009' ORDER by Date"
[code].....
View 3 Replies
May 10, 2010
I have 2 forms. Using Visual Basic.On Form 1 there is a populated combo box. This was done so by running a query through it and populating it with PUZ_ID values from a data set.On form two there is a tool strip and below is a search query.I need to be able to select the value i want in the combo box on form 1, and launch a button that opens form 2, which has loaded the data that i binded onto the form.Anyone have any ideas/code or need me to clear this up a bit more?So i need to run something through a query, or make something public or what?
View 2 Replies
May 10, 2010
I have 2 forms. Using Visual Studio.
On Form 1 there is a populated combo box. This was done so by running a query through it and populating it with PUZ_ID values from a data set.
On form two there is a tool strip and below is a search query.
I need to be able to select the value i want in the combo box on form 1, and launch a button that opens form 2, which has loaded the data that i binded onto the form.
So i need to run something through a query, or make something public or what?
View 2 Replies
Jun 8, 2012
I would like to have custom methods to pass data between function, or to keep it in memory throughout the program.
Example:
Private function info()
Addr1 = addr1.text
Addr2 = addr2.text
City = city.text
[code]....
Could I run this function towards the beginning of the program and use it throughout until the form is disposed? I can't seem to get the information to stick once I get out of the function, I will need to use the same information multiple times throughout the application so I figured if I could make a function to keep the info rather than declaring the 5 lines in every option but anytime I call the method, it fills it correctly then when I get back to the main function the info goes back to 'nothing'. is it possible to pass data around between functions like you could in Java?
View 5 Replies
May 12, 2010
How do I pass a structure containing strings from VB.net to VB6. I can get an integer to work but not a string.
View 3 Replies
Nov 2, 2009
i'm using VB Net 2008 and MS Access as my database.Its like this, form1 display the details for the TV Show and a button1 that loads form2 which contains the episode for that TV Show.I have 2 tables, both have the same field Movie_ID. able1 contains the details for all the TV Show, Movie_ID set as Primary key and table2 which contain the all the episode but categorize by Movie_ID.
View 1 Replies
Apr 28, 2009
i got 2 forms.there are 2 buttons in the 1st form and what i wan is,when a user click button 1,then will show form 2 will related data,click button 2 will show related data which is different with form 1.so far wat i get is,i oni manage to make when a user click button 1,then show form2 n in d form 2 there is another button to click n get d data...which mean i nid 2 create more forms...erm...u can say that i would like to make the form 2 to become a template...and send data into it.[code]i just wana make like i click button1 in form1,it will pop out form2 wit related data.
View 7 Replies
Jun 16, 2011
I work as a console technician for an audio company in the north eastern United States. My job is to prep and manage all of our audio console before they go out on tour. form to the report?
View 1 Replies
Apr 24, 2012
there is a complex situation wherein, I have to pass a string data to a .exe application and this .exe application would process the string and respond back to my php data. I prefer not to use a TCP/IP connection.
View 1 Replies
Jun 22, 2010
I have successfully returned data from a ASP.Net webservice in JSON format (using a service method that required no parameters) but have struggled with making a webservice call that requires a parameter.
Webservice:
[Code]...
View 1 Replies
Jun 18, 2012
here my function
<WebMethod()>
Public Shared Function person() As List(Of Class1)
Dim initialState = {New Class1 With {.id = 1,
[Code]....
how to pass initialstate values to knockout?
View 2 Replies
Feb 18, 2010
Doing a small project where I would like to be able to print the results of certain calculations. I want to open a new form where the data can be neatly presented and printed. I just can't seem to make the data get passed along to the new form when I open it..
[Code]...
View 2 Replies
Dec 7, 2009
i have two form in vb form1,form2form1 contains button1,textbox1form2 contains utton2,textbox2form1 button1 contains code to show form2 myfrm2 As New Form2myfrm2.ShowDialog()
View 1 Replies
Oct 20, 2010
I need to pass a double from form1 to form2 and have form2 return this value back. My problem is while i can receive the proper value in form2 i can not seem to get the corrected value back in form1 (using byRef in form1). Here is the code snip
Dim AmountPaid As Double = 8
Dim newInvoiceRow As InvoiceDataSet.InvoiceRow
If (MakeAPayment.ShowDialog(AmountPaid) = Windows.Forms.DialogResult.OK) Then
View 4 Replies
Mar 6, 2009
i'm planning on creating an application that uses both winforms and webforms and i have a few concerns before i proceed.1. is it possible to pass data between winforms and webforms?2. how about passing objects like connections, datatables, dataadapters etc. between webforms and winforms?3. i want a centralized authentication for all forms and webpages... meaning if i'm authenticated in a winform, i should also be authenticated when i launch a webform thru the winform and vice versa.
View 9 Replies
Mar 30, 2012
I am using VB 2010 express and am trying to make a program for a project that generates lottery numbers in a specific way. What I have is two forms. Form one has two text boxes and a button. Form two has a checkedlistbox that is pre-populated with numbers from 1-56. What I am trying to do is have the program open to form1, the user presses button1 ("Select Numbers") which opens form2. From there they will select numbers they want to pick from (narrowing their pool of lotto picks to only numbers they want to use). Then when they hit select, I want the numbers they have checked to return back to the textbox1 on form1. HOWEVER, I also only want 5 numbers, randomly selected, from the pool of checked numbers the user selected on form2 to return to the textbox1 on form1..... I may be in wayyy over my head, but I have all of the forms designed and I have been close to getting the forms to at least communicate, but still far from doing what I have described I am trying to do.
View 7 Replies
Oct 5, 2009
I have a DataGridView which I named CallnumberDataGridView and I also have a TextBox which I named txtCallnumber. I would like to pass the data from column(13) or column(callnumber) to txtCallnumber.Text , but when I use the code below I get a blue squigglly line under CallnumberDataGridView.columns(13)
txtCallnumber.Text = CallnumberDataGridView.columns(13)
View 1 Replies
Aug 14, 2011
I'm a noob to VB, so new in fact I had posted a question to the VB6 and earlier, I do believe I am using .Net Anyway, as I say, I'm new to VB and am hoping somone can help me. I am trying to pass data from an excel spreadsheet into a combo box, I've added the reference object library. Here's the
[code]...
To run this you'll need a combo box, and an excel spreadsheet added to your desktop. Of course you'll need to change the path to the spreadsheet to whatever you choose. After doing so, I get an error that I don't really understand.
View 1 Replies
Jun 10, 2011
In reference to this post [URL] I have another more specific question about passing data between forms in VB.net I have a form with over 50 variables that I need to access on a second form and if i followed the method above, my form 2 will end up way too long and time consuming. I'm making a complex calculation software that prompts user inputs values and calculates all those unknown variables. I need to display all the resulting values in the 2nd form. and from the 2nd form , i want to give the users an option to export all those values to an ms Excel sheet.
[Code]...
View 6 Replies
Jan 24, 2011
I have a form that has a button, when clicked it pops up a Dialog Form. Within this dialog form the user needs to select some data and when the user is finished they click the OK button. Once they click the OK button it needs to return an integer back to the previous form.I created a Dialog Form and tried calling it via the code below:
Dim intResult as Integer = frmData.ShowDialog()
Debug.Writeline(intResult)
However, it seems I can only return DialogResults (Abort, Cancel, Ignore...)I was wondering how I can try this without having to create a public variable and storing the result there.
View 3 Replies
Jul 8, 2010
I have returned to a project I started a while ago. I have a small members database showing basic info (Title, Forename and Surname) in a data grid view with all data populated from a SQL database. I have the dataset populated with all this info as well as other data through the use of relationships/foreign keys (Addresses and Telephone Numbers, etc)I have tested the relationships using a simple form which shows the correct addresses, telephones, etc for each user as you navigate through it.
I now wish to show just the datagridview on form 1 which is read only with the row select set to full row (I have done all this so far). I have also set up a second form which displayes just the relationship data.I want to be able to load the second form (with the address and telephone number data, etc) when the row is double clicked by the user. ie - if row 15 is double clicked on, then the second form should load the address and telephone number data for record 15.
View 3 Replies
Jul 8, 2010
Form1 is a Datagridview which is non editable. I want a user to be able to double click and open Form2, which will allow editing BUTForm2 is a list view and also had a binding navigator so I guess I cannot use dialogue? I do not want to simply just edit in a dialogue and save.Is there an easy way to get the record from Form1 and pass it to the controls in Form2 so that the correct record is displayed?
View 5 Replies
May 3, 2009
what i am doing is passing data through to a function, the function does a basic check if the file passed through exists then say so in the listview
function:
Function checkIfCredentialsExist(ByVal Check As String)
Try
If File.Exists("credentials/" & Check) Then
[code]....
View 3 Replies
Jun 18, 2009
I am trying to pass data between forms on a double click operation. On Form1, I have a simple database with three fields (ProfileID(PK), Profile First, Profile Surname). The database has 10 records at present which displays all records in a datagrid view which is set to read only. I have the Selection Mode set to FullRowSelect to highlight the full row.Form2, is a form to Display one record at a time. This form allows editing and saving of changes.How would I go about coding in vb.net to firstly get the ProfileID from the relevant row and send this into Form2 to display that record for editing?
View 10 Replies
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
Dec 14, 2011
I am working on an application that has a Winforms and MVC3 Web component. We need to be able upload large files from the desktop to the web. I have tried the various VB 2010 WebClient and FTP FileUpload alternatives but continue to run into permission issues, even though the User-ID and password I supply are the same as those used by an FTP application that successfully copies files to the same MVC3 site. In my efforts to find alternative solutions, I have looked into using WCF which also seems complicated and problematic for this particular application.
The closest I have come to a solution utilizes HttpWebRequest on the Winforms application. The following VB 2010 and C# code (MVC3) successfully passes the Filename and File data to MVC3 (the InputStream contains the references and UrlEncode data, but the class containing the fields for this data are null. (I have also passed just the file data without the filename, and the uploaded file is successfully created from the InputStream - but the method variable is still null). Although I could pick apart the InputStream, I would prefer a more elegant alternative.
VB 2010 Winforms method:
Public Shared Sub FileUpload(ByVal Filepath As String)
Try
Dim Host = System.Configuration.ConfigurationManager.AppSettings("Host")
Dim url As String = Path.Combine(Host, "UI/FileUpload")
Dim request As HttpWebRequest = HttpWebRequest.Create(url)
request.Method = "POST"
[Code] .....
View 2 Replies
Jun 14, 2011
ok so What I am trying to do is have one combo box with employee name and once you choose the employee name for it to populate another combo box with the pay periods that the employee has in the database. So far I have that down and here is my code for it:
[Code]...
View 12 Replies