VS 2010 Sending Imput To Other Forms?
Feb 23, 2011I have looked at a ton of tutorials and still don't seem to understand how to do this.I want the information that was typed into the text box to show up in this listbox
View 2 RepliesI have looked at a ton of tutorials and still don't seem to understand how to do this.I want the information that was typed into the text box to show up in this listbox
View 2 RepliesI Have Textbox where whatever is entered is to be used for a file name so I do not want certain keys to be entered, i.e. <>|\ /*: ? "
The code I have so far is
Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
[code].....
i have a similar question so i thought i might post it here rather than clutter the place with a new thread, if that's okay.first off, i'm using VB 2010 Express, if that makes any difference.second, i'm trying to send data to form2 from form3 rather than the other way around. i'm still pretty much new to VB, but have a lot of experience in PHP and some in java. i'm making a basic program that creates critters on form3 and then adds them to a table on form2.[code]then adds a value of 1 to the progress bar (i still am trying to figure out how that works) on form2.
View 3 RepliesI'm building a windows forms application that's supposed to run on a remote/isolated machine and send error notifications by email to the admins. I've tried employing System.Net.Mail classes to achieve this but I'm running into a strange problem:
1. I get an error message:
System.IO.IOException: Unable to read data from the transport connection:
An existing connection was forcibly closed by the remote host.--->
System.Net.Sockets.SocketException: An existing connection was forcibly closed by
the remote host at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset,
[code]....
while making my irc bot i need to send many different irc commands such as join channel, change mode, kick user message, topic channel message and so on. All these commands are currently process individually in a public sub on the irc connection thread.
Public Sub Write(ByVal command As String)
_streamWriter.WriteLine(command)
_streamWriter.Flush()
[Code]....
Would you have a load of public sub's to handle each or maybe something else?
Imagine a project with couple of forms and a module. Now as per my knowledge if i want to send some data from one form to another then :
- If I declare variable friend/public in a module then it can be accessed in the entire project (thus also between forms).
- If I just have to send data from one form to another, then I can call the other form's sub/function and pass value.
- If the pass value by reference then I can get new value only if its changed in that function.
Now what the issue is, I need to pass a variable to a form and in that form when user types contents in a textbox or makes other selection and presses OK button then it should return some values back to the calling form. Now how can I achieve this (without declaring global variables which will be accessible everywhere) ?
I'd like to create one as I am an affiliate marketer who wants to reach customers based on key words. I don't regard this as spamming since I'm not randomly sending out links its based on key words like I said. Y!A might regard this as spamming anyways but so what. In Yahoo Answers you click the question you want to answer, type in the answer, it takes you to a preview screen, and then you click submit. I suppose the script/program could involve automating this task.
Its not that I need everything to be done when I'm away from the computer, I don't mind working the program at all each time I send a mass amount of messages. Someone created a program a while back that was *supposed* to send bulk messages as they stated in the description but as it turned out this was not an option you could only comment on resolved questions. When I did send mass comments to questions which related to my key words, I clicked the link to confirm my comments went through and they did not! This program was a waste of my time and energy but that's life.
I am new to VB.net, i did a course in it about 5 years ago, and could do simple programs, but lost most of my knowledge, because i have not used it in such a long time, now i want to do something and cant seem to get it right, i have this game that i a play online, and i have a few accounts for it, so i would like to make a account logger, wher the usernames and passwords will be saved in a text file, and then i just open the vb program, select the username and the vb program will automatically set focus to the game window (which is windowed, not full screen).
Problem is just, the game client has 4 buttons, New Account, Play Game, About and Credits, i want to get a way for the VB program to set focus to the program(bring it to front, and then move the mouse to the coordinates of the play game button, goto coordinates of the username text box, click and write the username, same for password and then move to login button coordinates and click logon, wait a sec or two and move to either character 1, 2, 3's login button and click)
[Code]...
I want a quick and easy way of sending stuff from my window forms to my remote SQL server, my remote sql server allows remote connections to my IP address. How can I do this? I also need to return a result, either true of false.
View 6 RepliesI have a problem in VB, I've never seem that.. Waht a confused thing... In the application I was using for send SMS to many conatiners, I use this
[Code]....
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.
View 11 RepliesDim movie As String = TextBox1.Text
Dim subtitle As String = TextBox2.Text
Dim box As New Process
box.StartInfo.FileName = "MP4Box.exe"
[code].....
When i click a button this code is executed. But it wont execute the command "MP4Box.exe -ttxt " + """" + subtitle + """" Why?
I'm using an Asynchronous Method to send data across the TCP Protocol. For the most part it seems to be working, but recently, I've been getting results that have missing bytes to them. How am I actually able to figure out what's missing on the sender's site and make sure all the data gets to the end? For example: my end client receives 1408 bytes of data when I sent 1532 bytes. I sent an array with a length of 1532 and the client only got 1408.
View 5 RepliesI know how to send one file, and ive tried to loop that. But then i get error 500 or 550. So what is a good way to send multiple files over FTP?
View 4 RepliesI have wrote a nice little app in VB.Net to connect to an IP device via telnet and send a command, then write the reply to this command into a text file.I have everything working appart from the command.I need to send "Ctrl+a I2100" so if I was doing it manually in a dos box with telnet I would connect, then hold down Ctrl key and a then release, then type I2100 How do I do the Ctrl+a bit in VB. The line of code I have at the moment, is
client.SendCommand("Ctrl testing")
Now this obviously sends the word Ctrl testing to the telnet device.
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
[Code].....
I've been logging at website automation (automatically logging myself in etc...) and I've ran into an iFrame which stumped me.
<iframe frameborder="0" id="theiframe" src="javascript:""" style="width: 100%; height: 270px;"></iframe>
So far I've basic form inputs have only needed something like:
[code].....
Is there a way of sending the content of a datagrid via Outlook 2007? I have a form with a text box containing the e-mail address of the destination, a datagrid with a few columns of data and a button. What i would like to to is to send the content of the datagrid to the destination when the user presses the button. Is there a way to accomplish this?
View 2 RepliesI have a problem with one application, the application send emails to notify the users of some events that occur. The application works just fine when the user it's connected by wire, but when it's wireless the emails can't be sent.I did a little research and i found out that the server just allow to send email messages from the users authenticated, the wireless LAN doesn't authenticate the users...So how can i set the credentials/authenticate myself in the server when I'm connected by wireless, to be able to send emails?
View 13 RepliesI'm very new to VB and .Net. I'm using VS Express 2010 to write an application, so far its great and I've managed to get everything working they way I want it. I'm now trying to add more advanced features, (e.g the app has some TextBox's that the user enters required information and it generates an e-mail based on a template I've coded. At the moment this just copies it to the clipboard and the user can create an e-mail and send it manually.)
I want to add the functionality for the app to automatically open up an Outlook mail and pre-populate all the information, I've managed to get this working for Outlook 2010. I done this using the following codes.
Dim MSO As New Microsoft.Office.Interop.Outlook.Application
'Create a new Message object
Dim msg As Microsoft.Office.Interop.Outlook.MailItem
'Compose the Message
[Code]...
I have made a program that makes a text file and then sends it to my msn account using my gmail account. It works fine the first time but the second time it says that the text file is being used by another process?![code]
View 2 RepliesI am getting error when I am putting my sendmail function into other thread. But without threading the message was sent successfully. I am getting error in this part when sending using thread. mail.Body = EmailBody.DocumentText It say: Specified cast is not valid. Here is my code for sending email EmailBody is a webbrowser in Desing MOde ON
[Code]....
I have tried a lot to search a book which has good discussion about sending SMS through vb2010 application.I have tried in Google,Bing, Google Books etc. but couldn't find any book which can teach me how to sent sms through WEB API..
View 8 Repliesi'm useing windows 7 32bit and haveing this code to send some text from datagrid into chatroom well it working fine but it just go two rows when i press enter not row by row it go two rows by two rows and one can tell me why?
[code]...
it work but also with issue when i press enter it go like 3 or 2 rows sending only the first rwo till it start to send row by row
I have been working at printing receipts using printform, but the printer does not seem to be receiving any information from the form. Here is the
Public Sub PrintReceipt()
PrintForm.PrintAction = Printing.PrintAction.PrintToPrinter
PrintForm.Print()
End Sub
When I use the "PrintToPreview" print action, there is nothing shown on the screen.
I need to build an forms app that 'posts' or 'sends' text commands to an external console process, called Minecraft Server It is a java-based process, filename 'minecraft_server.jar'. Run by my computer via 'java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui'. The Process ID I assume would change each time it's run. This process can be downloaded here: [URL]
I am guessing that I need to:
1) find the Process ID for it, based on its process details, such as Command Line
2) figure out a way to 'post' these commands, commands such as "stop" into the console window
I cannot have this process launched by my VB project.
I'm noticing that sometimes strings drawn in a given column or row will be slightly over-antialiased or altogether clipped after scrolling horizontally or vertically.I can see that the quick way to clear this up is to send a final .Refresh() call to the DataGridView after completing the scroll. But, unlike the ReSize event for Forms, there doesn't seem to be a Begin and End Scroll event for controls, so I can't just send a .Refresh() to the DataGridView after scrolling.Does anyone have an idea how I might go about detecting when a scroll event has completed so I can send that final .Refresh() to the DataGridView?
View 5 Replieshow to send a procedure call to a Command Button.
What I would like to do is have one button be able to call any number of other sub routines when needed. In other words...the app is running and I need it to stop so the user can either read information presented...or make choices...then click the CONTINUE button to pick up where the app left off. However, I need this to happen many times across several forms and modules.
I know I can use a MessageBox and get the same effect..
I have googled this and found older vb codes that do not work in 2010. The user, in this case a "cheater/hacker" isn't suppose to be aware of a running program that checks memory and some other information. I have succesfully read the values of certain memory adresses in my program, now I need to send those values to another program secretly opened as a date and time sort of thing. The program checks for malicius attempts to edit memory or edit information inside the software and it automaticly deletes all the data or does a "ban" if somebody attempts to freeze memory and edit it.
So the problem is how to send this data to program out of focus, I can send strings with appactivate but it will open my security program to screen everytime memory changes witch is almost every milisecond so it's almost useless cause it keeps switching focus. I need something to send it out of focus, so my question is;
I make a hook between my program and my security program, send messages/strings out of focus or in tray?Also it would be good if I could make my program "invisible" so he can't be seen even in tray and still keep working.
I am looking for some advice on how to proceed with a little project I am doing envolving sending data to an external site. So the rough situation is I have data stored in variables in a VB program (and corrisponding excel sheet working as a storage place for variables after the project closes) and I need to some how get this data to a portal site and have it entered automatically :P. I current have a button on my VB program that opens to the specific site and the users navigate to the data entry portion of the site and enter the data manually but my eventual goal is to hopefully have this all automated through a single button on the form.
View 1 Replies