Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by miket26

  1. miket26

    formatting dates

    Hi, Yea, I was able to figure that out. It kept coming out as 00 if I left it as mm. Thanks.
  2. miket26

    formatting dates

    Wow, that is too easy. Thanks.
  3. miket26

    formatting dates

    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
  4. miket26

    Difficulty using System.Net.Mail

    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...
  5. miket26

    Difficulty using System.Net.Mail

    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
  6. miket26

    Microsoft Animation Control 6.0

    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.
  7. miket26

    LockWindowUpdate() problem with .NET 2.0

    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...
  8. miket26

    Richtextbox & Page Breaks

    Thanks. I think I found a quick solution by just inserting Chr(12) into the string. Its the ASCII for Page Break, and seems to work pretty good.
  9. miket26

    Check if Excel is installed?

    You could also try... try dim app = new Excel.application catch msgbox("No excel") exit sub end try
  10. miket26

    Richtextbox & Page Breaks

    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...
  11. miket26

    DataView.RowFilter() problem with Single Quotes

    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!
  12. miket26

    DataView.RowFilter() problem with Single Quotes

    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...
  13. miket26

    DataView.RowFilter() problem with Single Quotes

    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.
  14. miket26

    DataView.RowFilter() problem with Single Quotes

    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...
  15. miket26

    Cancelling a Query

    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.

Part and Inventory Search

Back
Top