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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: miket26
  • Order by date
  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.
  16. miket26

    Cancelling a Query

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

    Cancelling a Query

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

    Using XSLT

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

    Keeping Track of MDI Children

    I did the addHandler() statement, and its works o.k. now. Thanks for all your help!
  20. miket26

    Keeping Track of MDI Children

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

Part and Inventory Search

Back
Top