Click here to Skip to main content
15,891,762 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to change the button's value in Datagrid Pin
dwark1066-Oct-09 13:58
dwark1066-Oct-09 13:58 
GeneralRe: How to change the button's value in Datagrid Pin
Henry Minute6-Oct-09 15:04
Henry Minute6-Oct-09 15:04 
QuestionHow do I pin an object in C#? [modified] - FIXED Pin
Richard Andrew x646-Oct-09 11:07
professionalRichard Andrew x646-Oct-09 11:07 
AnswerRe: How do I pin an object in C#? Pin
DaveyM696-Oct-09 11:35
professionalDaveyM696-Oct-09 11:35 
QuestionBackgroundworker disposal Pin
vsaratkar6-Oct-09 10:49
vsaratkar6-Oct-09 10:49 
AnswerRe: Backgroundworker disposal Pin
Christian Graus6-Oct-09 10:52
protectorChristian Graus6-Oct-09 10:52 
AnswerRe: Backgroundworker disposal Pin
DaveyM696-Oct-09 11:42
professionalDaveyM696-Oct-09 11:42 
GeneralRe: Backgroundworker disposal Pin
vsaratkar7-Oct-09 3:36
vsaratkar7-Oct-09 3:36 
Thanks Christian and DaveyM69 for your prompt replies.

I will explain my application in brief.

Actaully we are uploading 3 different types of data to the web Server using Webrequest and Webresponse classes.

First type of data are values which uploads at once, second is very small binary file around 1kb and third type of data is photo which takes around 50 seconds for one photo to upload. Our application is taking multiple photos.

I want to show 3 individual progress bars for 3 uploads and one main bar for all 3 types of data upload.

I have created a class "UPloader" with events to manage the progress bars by passing variables to UI and instantiate that class in UI window.

I am using background worker in "UPloader" class to make 4 requests and get responses because I want to give user the facility to cancel the upload. Backgroundworker is a public variable and in UI on cancel button click, I am calling Uploader.BackgroundWorker.cancelAsync.

I am using compact database to hold the data. When I say "cancel", it cancels the upload, but when I try to upload the data without logging out the application, then I get NullReference exception. But if I log in to the application, I could able to upload the data.

I was wondering is this a good approach, because I want to give user "cancel" functionality.

I am not sure if one backgroundworker can manage 3 different Webrequests and webresponses.

If you know any better way to implement this logic, please help.

If you want I can post my code tomorrow, I am off today.

Thanks for reading,

Veena
GeneralRe: Backgroundworker disposal Pin
DaveyM697-Oct-09 8:57
professionalDaveyM697-Oct-09 8:57 
GeneralRe: Backgroundworker disposal Pin
vsaratkar8-Oct-09 2:54
vsaratkar8-Oct-09 2:54 
GeneralRe: Backgroundworker disposal Pin
vsaratkar9-Oct-09 10:17
vsaratkar9-Oct-09 10:17 
GeneralRe: Backgroundworker disposal Pin
DaveyM6910-Oct-09 3:25
professionalDaveyM6910-Oct-09 3:25 
Question.NET Runtime 2.0 Error Event ID: 5000 Pin
PrasannaKulkarni6-Oct-09 10:47
PrasannaKulkarni6-Oct-09 10:47 
AnswerRe: .NET Runtime 2.0 Error Event ID: 5000 Pin
Christian Graus6-Oct-09 10:50
protectorChristian Graus6-Oct-09 10:50 
QuestionC# grapihcs Pin
nosheen awan6-Oct-09 7:26
nosheen awan6-Oct-09 7:26 
AnswerRe: C# grapihcs Pin
Eddy Vluggen6-Oct-09 8:05
professionalEddy Vluggen6-Oct-09 8:05 
QuestionMedia Player -XML playlist [modified] Pin
eawedat6-Oct-09 6:35
eawedat6-Oct-09 6:35 
AnswerRe: Media Player -XML playlist Pin
EliottA6-Oct-09 7:19
EliottA6-Oct-09 7:19 
GeneralRe: Media Player -XML playlist Pin
eawedat6-Oct-09 7:24
eawedat6-Oct-09 7:24 
GeneralRe: Media Player -XML playlist Pin
EliottA6-Oct-09 7:29
EliottA6-Oct-09 7:29 
GeneralRe: Media Player -XML playlist Pin
eawedat6-Oct-09 7:38
eawedat6-Oct-09 7:38 
GeneralRe: Media Player -XML playlist Pin
eawedat6-Oct-09 7:45
eawedat6-Oct-09 7:45 
GeneralRe: Media Player -XML playlist Pin
Dave Kreskowiak6-Oct-09 8:16
mveDave Kreskowiak6-Oct-09 8:16 
GeneralRe: Media Player -XML playlist Pin
eawedat6-Oct-09 8:21
eawedat6-Oct-09 8:21 
GeneralRe: Media Player -XML playlist Pin
Mirko19806-Oct-09 21:44
Mirko19806-Oct-09 21:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.