Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

SunsOfFun

@SunsOfFun
About
Posts
5
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Custom DataGrid display
    S SunsOfFun

    Hi All I want to link the data result set from the database, to a DataGrid. I want to display it other than just columns as it comes from the database. ie. The usual DataGrid format ------------------------------------------------------ Column Data | Column Data | Column Data | Column Data ------------------------------------------------------ I want to display like this: ------------------------------- Column Data | ------------| Column Data | Column Data ------------| Column Data | ------------------------------- Hope that makes sense. Thanks in advance.

    C# database

  • Custom DataGrid display
    S SunsOfFun

    Hi All I want to link the data result set from the database, to a DataGrid. I want to display it other than just columns as it comes from the database. ie. The usual DataGrid format ------------------------------------------------------ Column Data | Column Data | Column Data | Column Data ------------------------------------------------------ I want to display like this: ------------------------------- Column Data | -------------| Column Data | Column Data -------------| Column Data | ------------------------------- Hope that makes sense. Thanks in advance.

    ASP.NET database

  • BackgroundWorker and ProgressBar
    S SunsOfFun

    Thank you, that makes sense. Do you think this method would be slower than the FileInfo or File classes? I am sure thaey use a very similar method within those classes. Thank you once again. Will be implementing the method.

    C# sysadmin help question announcement

  • BackgroundWorker and ProgressBar
    S SunsOfFun

    Do you know of any examples that I can take a look at?

    C# sysadmin help question announcement

  • BackgroundWorker and ProgressBar
    S SunsOfFun

    I want to display the status in a ProgressBar when copying large files across the network. I am using FileInfo.CopyTo method within the DoWork Method of the BackgroundWorker class (please see the code below). How am I able to fire events while the copying is taking place to update the ProgressBar. The problem is that the execution enters FileInfo.CopyTo method and does not leave until the process is complete. Hope this makes sense. private void backgroundWorker_DoWork(object sender, DoWorkEventArgs e) { BackgroundWorker worker = sender as BackgroundWorker; reached = 0; fileInfoFrom = new FileInfo(@"C:\Temp\Path1\Test.zip"); fileInfoTo = new FileInfo(@"C:\Temp\Path2\Test.zip"); fs = (fileInfoTo.Exists) ? fileInfoTo.Length : 0f; fileInfoFrom.CopyTo(@"C:\Temp\Path2\Test.zip", true); /* thought about using the file size to * calculate the percentage for the progressbar*/ int completed = (int)((float)fs / (float)fileInfoFrom.Length * 100); if (completed > reached) { reached = completed; worker.ReportProgress(completed); } } -- modified at 12:47 Sunday 4th December, 2005

    C# sysadmin help question announcement
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups