User Profile

Collapse

Profile Sidebar

Collapse
madlan
madlan
Last Activity: Jan 7 '11, 07:52 PM
Joined: Jun 2 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • madlan
    started a topic Delegation from within Event Handler

    Delegation from within Event Handler

    Hi,

    I'm trying to create and show a form from an event handler (SMO complete event). I believe it's not working because the event is closing - If I put a messagebox after the invoke to keep it open it works (until the messagebox is OK'ed)

    Any ideas on what I can do?


    Code:
    Private Sub CompleteEventHandler(ByVal sender As Object, ByVal e As Microsoft.SqlServer.Management.Common.ServerMessageEventArgs)
    ...
    See more | Go to post

  • DotNetZip extraction progress reporting\event help

    Hi All.

    Could someone give me some advice on reporting progress from a zip extraction using the DotNetZip Library?

    I'm not an experienced programmer so having trouble understanding this.

    I've created an event to report the progress (ProgressEventH andler) but the progress bar is still not updating.

    The ExtractProgress EventArgs class TotalBytesToTra nsfer and BytesTransferre d which I believe...
    See more | Go to post

  • Directory.Name does the job:

    Code:
    Dim filepath As String = "C:\Program Files\FolderNameIWant\cats\Application.exe"
                Dim fi As New IO.FileInfo(filepath)
                MessageBox.Show(fi.Directory.Name)
    Thanks for your advice.
    See more | Go to post

    Leave a comment:


  • I tried using Split but it seems to return the string in it's original format?

    strCustomerName .Split(New Char() {"\"c})
    MessageBox.Show (strCustomerNam e)

    I could not find anything in the System.Io.Path that would be of any use.
    See more | Go to post

    Leave a comment:


  • Return folder name from file location path

    Hi,
    How would I retrive the folder name a file is in?
    In this example I just want the highlighted folder name:

    C:\Program Files\FolderNameIWant\Application.ex e

    I can get the path excluding the file using various methods such as:

    Code:
    Dim intPos As Integer
    intPos = FileFullPath.LastIndexOfAny("\")
    intPos += 1
    Messagebox.show(FileFullPath.Substring(0, intPos))
    ...
    See more | Go to post

  • Herfried's CopyFileEx wrapper example progress inaccurate

    Hi all,

    I'm using Herfried K. Wagner's CopyFileEx wrapper to provide a progress bar while copying files, I've noticed the bar seems to update fine until about 80% done (on a 100mb file)

    MvpsOrg.Dotnet. Win32.Transacti ons.IO.File.Cop y

    Example I'm using:
    http://dotnet.mvps.org/dotnet/samples/filesystem/Transactions.zi p

    Has anyone else used this wrapper?
    See more | Go to post
No activity results to display
Show More
Working...