Hello,
I'm trying to format a string into a date format yyyy-mm-dd. For example, I'd like to get my string value of 09/01/2006 into a format of 2006-01-09. If anyone can help, greatly appreciated.
Thanks
Here is the code
'Send email
Private Sub sendEmail(ByVal server As String, ByVal port As Integer, ByVal body As String, ByVal obj As Object)
client = New SmtpClient(server, port)
client.SendAsync("from@email.com", "to@email.com", "test message", body, obj)
End Sub...
I'm sending a basic smtp email using system.net.mail in vb.net. the problem I get is that I send my email to myself, but I don't recieve it until I close the application. Would anyone know why this weird problem is happening. It never used to happen when I used .Net 1.1 and system.web.mail
Anyone use the Microsoft Animation Control 6.0 before?
I'm trying to use it to play an avi animation in .NET 2.0, and I keep getting an 'HRESULT' error message. Anyone know why perhaps?
Thanks.
Hello,
I had a program in .NET 1.1 that worked fine, but now that I'm trying to implement in the .NET 2.0 with VS 2005, it doesn't work. It doesn't even through an exception, but just crashes. Here is a snippet of the code:
Private Declare Function LockWindowUpdate Lib "user32.dll" (ByVal...
Hello,
I'm trying to add functionality to a Richtextbox control that would allow me to insert Page Breaks. Then if I save the contents of the Richtextbox and open it in Word for example, the page breaks would be present. Anyone have any experience doing something like this. I feel I've hit a...
Rick,
You were right. I thought it wasn't working because the results were not showing in my datagrid, but I had a problem with the datagrid and mistakingly thought it was the filter. I fixed the problem and it worked great. Thanks for the tip!
Hi Rick,
In the dataset, the value is actually "Mike's City", so I don't think the filter wouldn't find the search string. I also wouldn't want to alter the database or restrict the input into the database to convert single quotes into double quotes, so that I can easily query it. I would...
Hi,
Thanks for the suggestions, but neither were able to work. Here is an example of what I'm doing:
dataview1.rowfilter = "City = 'Mike's City'"
The problem is that single quote in the middle will cause the expression to fail.
Hi,
Has anyone used Dataview.rowfilter() and had to look for strings that contained a single quote. This will cause an error, since the single quote is a 'reserved' character in the filter expression. Anyone know how to work around this and also be able to still query for a string containing...
I made that modification. On the Closed event, I go through an arraylist of all my threads created, and abort them if they're running. I think this should do the trick and tie up any loose ends. Thanks for your help.
It seems the way you recommend to do it is call the Abort method, and deal with the thrown exception or have a 'Finally' to clean up everything. I'm wondering though, what about if the program is shut down by the user before the 'Finally' clause is reached. I ask this because it seems that...
Hello,
I'm having the most difficulty trying to figure out a way to cancel a long-running query using ado.net and the odbc provider. No matter what I try to do, it will sit there and wait for the database to respond with the records before it will do any action I requested, such as calling the...
I recently got Office 2003, and am learning to transfer data from my datasets into Excel using XML. I'm having troubles finding good resources for learning how to create different style sheets for use in Excel 2003. Anyone know any good articles?
Basically, I want to break up my table into...
Thanks for your input. I got thinking about how to use an existing event, since I don't know how to add my own. I created a class variable f of type Form and created the following 2 methods:
Private Sub me_mdiChildClose(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.