I am working on a little project and have had great success, that is until I came upon a slight glitch in programming. Here is the glitch:I have Form1 and Form2. Form1 contains an array, which I need to send to form2 to precess and send on. Is this possible? I have tried sever ideas and none have worked. sending an array from one form to another is possible?
Private Sub Button1_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button2.Click readData = "Conected to Chat Server ..." msg()
I'm having trouble with passing an array between subroutines
I have an array called "lines" which is loaded from a text file and then edited according to a series of checkboxes within one subroutine. Each line in the array is essentially a line from the text file
I then need this array passed to another routine so that it saves to a new text file once the save button is pressed. (in this case just the top 5 lines)
At the end of the section that creates the array i have placed this
From File Edit Call Savefile(Lines)
The section of code below is from the section once the button is pressed
Save Code Sub Save_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Savebutton.Click
I am new to VB.net and struggling to get out of VB6's way of sending data, I am doing this to send a byte array from my client to server, please advice if this is the right way,The sending portion:
Private Sub Button1_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click Dim arrNo(3) As Integer
I'm using javascript to send a array to my code behind so it can be saved. And also to redirecting the page to the next dataset. function ChangeMonth(utcDate){ PageMethods.javaGetArray(colors); alert("saving..."); window.location = "./transport.aspx?date=" + utcDate; } This works perfectly when there's an alert in between, the saving and the redirect. If I delete the alert it just redirects without saving.
I have a modified button control with a string array in it. I am having trouble sending the string array to the form with the modified button on it. Anyone know what i can do? The form uses a arrayList to hold the buttons since they are made at runtime.
I have a form in my project with a textbox that contains a unique computer ID number for the user. I want the user to click a button, which will open my website, and then populate the value from my software into a corresponding computerID form on my website.
The form on my website is just a paypal form that I built using paypal's website builder. It has a buy it now button and a textfield for computer ID. I need to know the computerID so that I can send the user the correct activation code.
Is there any way for me to accomplish this? All I have so far is just opening my site:
Private Sub btnpurchase_Click(sender As System.Object, e As System.EventArgs) Handles btnpurchase.Click Process.Start("mywebsite") End Sub
I am trying to send an e-mail from a web form. I am using Visual Basic in Visual Studio 2008. I am also using ASP.NET and a SQL Server 2005 database. I have found some code for this but it seems to be always for a Windows form and I keep coming across errors saying the code is "obsolete".[code]
I am trying to send an e-mail from a web form. I am using Visual Basic in Visual Studio 2008. I am also using ASP.NET and a SQL Server 2005 database. I have found some code for this but it seems to be always for a Windows form and I keep coming across errors saying the code is "obsolete". Here is sample code I have been trying to use:
Imports System.Web.Mail Partial Class QueryPage Inherits System.Web.UI.Page
I've searched. I tried this from another post. Didn't work. Second form listbox was blank. Apparently it only sends selected items but I need it to send all.
1Public Sub buyBicyclesListBox_DoubleClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles buyBicyclesListBox.DoubleClick 2'Sends items from buyBicyclesListBox to cartListBox when double clicked
Once I have inserted all details into my booking form I want to send some of the details to a form called "Daily Jobs Form", When I click the save Button on the booking form.On the "Daily Jobs Form" I have a row of TextBox's and at the Begining of the row I have a Button called "View Job" and When I click the "View Job" Button, I would like to be able to view the whole job. And Choose a driver who has Been Allocated the job.
I want to be able to send an email in windows 7 using the VBsample published by microsoft called SendMail but because Microsoft no longer include an SMTP service in Windows 7 I cannot get the code to work, does anyone have any ideas
How i can send data from one form to another form through a network? i'm not asking for the codes, i just want to know what i should do to accomplish this task. i'm conceptualizing a game with the following details:
1.) there are two players, connected through a network 2.) they take turns looking for words from a puzzle of randomized letters 3.) after the given time has elapsed their words are checked and if both players has the same word, the word is removed 4.) the score is tallied
My question is, how do i get the words from the other form? specifically, how can the server form get the words from the client form? is it possible if i use xml? or can the server form access the variables of the client form? (i don't think it can, though)
I am building an class library in VB.NET that i can use in other projects.I want a function in this class library that opens a form that is in the other project.[code]This works, the form is shown in the other project application.But now i want to send some content to the form from my class library.In the other project i have a public sub _getContentPackage(ByVal content as String)How can i send data to that public sub from my Class Library.What i have try is CallByName, but i do not understand that function yet. I only get error messages.
I have placed the following code on a button where it opens the new mail window with the mail ids . I am wondering if there is a way to send the form contents as the body of the mail.
Sub ContactUsToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e
I have a windows form. On it is a text box and send email button.When you click the Send Email, it sends the contents of the text box via the System.Net.Mail
Private Sub SendEmail() Try Dim MyMailMessage As New MailMessage() MyMailMessage.From = New MailAddress("myemail@email.com") MyMailMessage.To.Add("myemail@email.com")
We are testing some code to send email messages using Gmail from a form, but get a time out error.
Can you tell us what is missing from this code to get the email message sent?
Try Dim SmtpServer As New SmtpClient() Dim mail As New MailMessage() SmtpServer.EnableSsl = True SmtpServer.Credentials = New Net.NetworkCredential("ouremail@gmail.com", "MyPasswordGoesHere") SmtpServer.Port = 465
I have an application with a String variable that repeated gets a Date from a database, does something with that field, then goes onto the next row. Is there a way I can send send out some debugging information to the stdout console so I can debug better/view the progress of the program?
If I make the following array in a push button event and I want to put those array variables in a class array. How do I do that? I am just beginning to learn about classes in vb.net but I am having problems using classes and arrays.Is there any good tutorials on that subject.
I am trying to Send an Email with an attachment (using Gmail) but I keep getting errors like "Operation Timed out" or Failure Sending Email". It was working earlier today but I found out that i needed to add Using statement because the email was having a file open that had to be deleted after it was sent but afterwards it doesn't work.
Here's what I have (Portion of it): Private Sub SendMailOneAttachment(ByVal un As String, ByVal pass As String, Optional ByVal smtp As String = "smtp.gmail.com") Using oAttach As Net.Mail.Attachment = New Net.Mail.Attachment((Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) & "\" & My.Computer.Name & "_" & fName & " .zip")) Dim client As SmtpClient = New SmtpClient(smtp) [Code] .....
The ports are correct I believe, no firewall up on my PC...
I have a requirements in "Windows form exe" that when we click on the exe, the data from the Oracle database should be exported to another Oracle database and also the data that has been exported should be emailed with excel attachments to intended recipents.
I searched but couldn't get the code as such and also i am not able to implement the functionality.
i havent had problems in visual basic all the ay up to this point. I have been given a shopping cart program that I must use: a MainForm, MP3From, AlbumForm, and a module
I finally got my program to send data from the listbox on my MP3Form to the listbox on my MainForm but something isnt right still. I need to be able to click an an item from the lstMP3(listbox on MP3Form) to lstShoppingCart(listbox on MainForm) multiple times without having to close the MP3Form everytime to add the items to lstShoppingCart. Here is what I got so far on my MainForm: [code...]
This assignment makes me mad cause we have not even covered half the stuff I am having to use in this form at all this semester. If i can get a little explanation on instantiate, inheritance, and declaring and object variable and how its used to transfer data from one to the other.
Recently there was a request about sending bulk email which was building a potentially dangerous collection of answers which could lead to someone easily creating a spam engine. While there are legitimate reasons to send bulk email, one must be sure to follow all the applicable rules. This means following RFC 2821 and forming properly crafted email messages. In the US, it also means complying with fedral law regarding the sending of unsolicited email (express permission must be captured through direct user initiation e.g. user's must choose to check the box to receive your email), and that means including a removal instruction as well as valid contact information.
To that end, here is an example program for sending a mass email to a list of recipient addresses located in a database. The code only cares about recieving an array of DataRow objects, so any database for which you can fill a DataTable will work.
To run this example, simply place a Button on a Form and paste in the following code:
I am tring to send e-mail used VB 2008. Below is my code. The error message I am getting is "5 Failure sending mail at System.Net.mail.client.send(MailMessage message).I have two questions. 1.) What am I doing wrong? & 2.) Is there a way the get a more description error message.
message As New System.Net.Mail.MailMessage Dim mySmtpsvr[code].....
I have an array of people stored in a custom structure array... how can i copy this array to a temp array so that the temp array has all the same values as the original custom array?
I have an array of forms, when a user switches from one to another, I would like to know which form he is on. How can i get the name of the form is currently focused on by the user?