Now as you can see it is sending the textbox1 text and then pressing enter then sending textbox2 text! Theres quite a few problems in that but before i discuss note: This code is in a Timer. Problem #1: It does not send the keys fully correct all the time because its trying to send them all at once! So i want it to send them 1 letter after the other with 200 ms sleep in them! Problem #2: The sleep is not working: The reason i know is because even after it did the first textbox1 text it didnt wait that 2000 ms!
I'm working on a small accounting app. I have a query to show transactions with a running balance.
SELECT transactionid, transactiondatetime, amount, (SELECT SUM(amount) FROM dbo.transactions as D1 WHERE D1.transactiondatetime <= D0.transactiondatetime) AS balance FROM dbo.transactions AS D0
I capture a gamesheet for a certain week. so if I select a date on a monthcalendar the sheet applies to the weeknumber of the selected date. When I save transactions I take the date at the last day of that week as the transactiondate. I need to store a datetime though because my query works of the datetime to get an accurate running balance. How can I append now() time part to my date variable and then store that in a datetime variable to get a transactiondatetime.
Here is my code for getting a transactiondate: Dim dt As New Date dt = Me.MonthCalendar1.SelectionStart 'get last date of week. Friday Dim tdate As Date = dt.AddDays(5 - CInt(dt.DayOfWeek))
I am getting the error:"Range variable 'sender' hides a variable in an enclosing block or a range variable previously defined in the query expression."for this
Imports System.Data.SqlClient Imports System.Linq Public Class Form1
[code]....
I can select any other item from the table without the error. "sender" has the same properties as "receiver" in the SQL table.
I am really new to .net, I've got the basics to a game down, I need to be able to send variable arrays between programs, I am aiming for local network first, then I'll tackle internet. Does .net have any simple way of doing this? Was difficult in vb 6. It needs to be fast so both machines get the same view of the game.
I have looked around and I can not find what I am looking for. I would like to send a variable from Form1 to Form2. I have found out how to send I text box from form1 to form2
I have created a class with a public sub which has a variable with it using byval: Public Class clsMessenger Public Sub Messenger(ByVal Port As Integer) End Sub End Class
I now need to start that sub in a new thread and pass a varible to it but I am not entirly sure how to go about that. At the moment I have: Dim ClientConnection As New clsMessenger Dim ClientThread As New Threading.Thread(AddressOf ClientConnection.Messenger) ClientThread.Start()
I can't use a global variable because there is going to be multiple instances of this routine running on different threads and each time the variable to be passed will be different.
I have a filter that is used to populate a grid view and the url will conain: /example/grid?value1=1&value2=2
It will then have a link to page 2, which allows them to edit something.I then want them to click a link that will send them back to the gridview under the same parameters of: /example/grid?value1=1&value2=2
Is this possible? How do I hold on and fill in the URL values so it knows how to refill the grid view accordingly?
I have to send a sequence of video frames over UDP as fast and real-time as possible and while I got the basics working, I am running into all sorts of difficulties. Some of my goals:Data will normally be sent over dial-up (hence UDP instead of TCP), but also needs to support fast Ethernet.It's OK to occasionally drop frames (hence UDP instead of TCP).Need low latency. The frame the remote receives should be one that was recently sent (no more than a few frames waiting in buffers).I need to be able to detect the effective bandwidth so that I can compress the frames more or less to keep frame rate up.I break up frame data into one or more datagrams of about 500 bytes and each has a sequence number and other info. The receiver reassembles the entire frame and detects if any datagrams are missing.If the receiver detects more than a certain percentage of dropped frames (e.g. 50% over the last 10 frames), I send a TCP message to the sender to slow down by 50%. Sender than slowly increases speed by 5% each subsequent frame.Using System.Net.Sockets.UdpClient to send and receive the data.I have a separate TCP channel used for control messages back to sender.My main difficulty right now is detecting the effective bandwidth and dealing with latency, especially over dial-up (max ~4,000 bytes/sec). For example, if I try to send 100,000 bytes/second using TcpClient.Send() they ALL seem to arrive (no dropped datagrams) but with large latency by the time last datagram arrives. I think the TcpClient.Send() function is blocking until the buffer is able to send which messes up my current algorithm.
Can anybody point me to any sources of information for how to:Detect actual bandwidth over UDP.A better algorithm for dynamically adjusting bandwidth to suit the available pipe.Send data smoothly at the desired bandwidth.A way to detect and keep latency down to a minimum.I have been spinning my wheels over the last week and every time I solve one problem it seems another rears up is head.
I have a database that holds email addresses, and I want to send each one an email via a GMail account. My code works fine - the first email is sent and I receive it. I then navigate to the second email address, click the button, and, again, the email is sent just fine. Then I encounter problems. After sending two, if I try to send any more, I get an error telling me the operation has timed out? I have no choice then but to quit my application and try again - and it will then send two, before giving me the error.
I have spent at least 6 hours trying to write a program that will send emails to a constant list of email addresses. I was trying to make it so all that I need to type is the subject, body, and "nickname". I wanted to use the same email to send the message every time (yahoo or gmail address), and the recipients to be a constant list of emails.
set a value to a variable at run time when the variable name is itself a variable?Simplified Example:In an object with three variables named Alpha, Beta and Gamma the Program may set VariableName to "Beta" and then the variable Beta to some value.Though this is a simple example, that could probably be handled with some conditionals.
We have an excel spreadsheet with about 10000 names (company and email address) and we need to send some legal docs to them. I'm looking for a way to automate this either via a macro in excel or templates in outlook.Problem with macro in excel is that the code I was able to findcustomize doesn't let me insert a formatted text in the message body.[code]...
i have to send a time sheet to my work each week. which i do in word. what i want to do is be able to open my word document keeping the exact same format, tables must be the same, allowing me fill out the timesheet in my vb app, i could make life so much easier doing this. because i have alot of functions i could add using vb to make my life so much easier.
I've been playing around with the TCP client/server sample code I found on [URL] but I can't seem to get it to function correctly. The problem I am having is that if I try to send data from the client a second time I get nothing back, not even an error that it couldn't send data. Every time I run the project it works the first time but that's it. When I was running the code line by line it seems to get to 'networkStream.Read(bytes, 0, CInt(tcpClient.ReceiveBufferSize))' and then it jumps over the rest of the routine.
I have a problem.. every program i make in VB.net 2008 express wont start on my friends PC or any other except for mine laptop and mine PC... Instead, they get the "Send/Dont send" error...
When I setup the event using DDay.ical I can successfully send the events to a user's outlook. The problem arises when multiple events are setup at the same time. When this happens all emails are updates to the original task, not new tasks.
I tried adding a name to the event using the .Name property, which results in the event email being an unsupported calendar invite.
What to use for adding multiple attachment to a email. I'm using VB 2010.
First, I have a Form in my company web site to fill a reclamation ..... when you fill and send it, it convert the form into a PDF, save it in the client side "TEMP" and finally get the PDF and send it to a email..... that's perfectly fine. I add to the form the capability of attach multiple files with file upload to the same "TEMP" and displayed in a Grid View to remove or add files and send everything to a email, the attachment capability is working. Everything is working with the PDF not the files(attachments).
There is a way to get the multiple files from the "TEMP" folder and add it to some dynamically variable (array list, attachment collection, list collection, etc.) so all can be send to the email. I already know the way to put it into the email with the PDF.
The problem is to get the files and add it to the dynamic variable and that it work with the email. If the code is need it.
I have a list, and in my items are labeled like this:
"Work sound ex 0" "Work sound ex 0" "Home sound ex 14" "Home sound ex 15" "Home sound ex 16"
How can I just send the number in the selected list item to a variable so only "0", "14", "15", "16", etc. is sent and not the words like "home" or "sound"?
how can i double the '12' each time the variable is used?
What im trying to do is have a textbox which the user writes in a number, the number they enter then determines the amount of times a variable is written in a textbox.
so if the user were to put '3' into the textbox and click go, it would print hello12hello12hello12, how can i increase the number 12?
what i want it to do is look like this when the user presses go: hello12hello24hello36
I need to obtain time values from a SQL DB. However, I was able to set the datatype for the respective column in the SQL table only to "datetime" as there is no "time" option in the dropdown list in the Visual Web Developer. Namely, I want to bind a Listbox control only to the time data (i.e. not to "dd-mm-yyyy hh:mm:ss"). I tried to convert the datetime values to string and then extract the last 9 chars that refer to time.Unfortunately, my attempts to do that with SubString have failed:
I have two datetime variables in VB.Net [code]I want to add both these variable in single DateTime variable , i didn't find any .Net function to do that.Is there any other way to do it?