|
Well, we don't know if you've properly configured the background worker, you didn't show us your ReportProgress delegate, and the the greater sin is that you didn't put your code in a pre block. Pay-f*cking-attention to what *you're* doing so we can help you.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Thank you John for your comment, you didn't have to curse to make a point.
Sameer
|
|
|
|
|
Yeah - I really did.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Thank you and God bless you
Sameer
|
|
|
|
|
Do you mean that ReportProgress doesn't work?
If yes, have you set WorkerReportsProgress = true?
I'm sure posting the code will help a lot.
Regards,
Lev
|
|
|
|
|
Hi,
I would like to do something such as in a DLL.
Chart.Header.Add
Chart.Header.Theme.Theme1.Add
Add might just be the function.
I can get to the first level only.
public class Chart
{
public void Header() {}
}
I can call it by Chart.Header.
However, i would not want header to be a method but a property of Chart.
There can be multiple property of chart such as Chart.Datapoint , Chart.Footer and so on. And each of the chart property has it own specific level or methods.
I do not think it is subclass or or inheritance. What is it called and how to to multiple level with multiple "dot".
Thanks in advance.
|
|
|
|
|
In programming parlance its called "Compositing". Using many classes to build up the object model you require.
public class Header
{
...
}
public class Chart
{
private Header header;
public Chart()
{
this.header = new Header();
}
public Header Header
{
get{ return this.header; }
}
}
Chart myChart = new Chart();
myChart.Header.SomeMethod();
you can carry this same idea over to make as many levels of class as you require to model your "thing".
|
|
|
|
|
Thanks J4amieC. That's what i am looking for. "Compositing"
|
|
|
|
|
Not sure what you're asking here, but it is just called the "dot operator". But the dot operator is a mechanism that is used by classes to link their properties, members, and methods together. Here's an example.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DotOperator {
class Program {
static void Main(string[] args) {
Report report = new Report();
report.TheHeader = new Header("This is the News Today");
report.TheArticle = new Article(@"Third suspect indicted in 27-year-old murder
By Bill Hankins
Published December 14, 2008
A third suspect in the 27-year-old murder of Jean Wagnon has been indicted by a Lamar County grand...");
Console.WriteLine(report.GetReport());
Console.WriteLine(report.TheArticle.TheContent.Body);
Console.WriteLine(report.TheHeader.TheContent.Body.Length);
Console.ReadLine();
}
}
public class Report {
public Header TheHeader { get; set; }
public Article TheArticle { get; set; }
public String GetReport() {
return TheHeader.TheContent.Body + Environment.NewLine + TheArticle.TheContent.Body;
}
}
public class Header {
public Header(String header) {
TheContent = new Content(header);
}
public Content TheContent { get; set; }
}
public class Article {
public Article(String main) {
TheContent = new Content(main);
}
public Content TheContent { get; set; }
}
public class Content {
public Content(String theNews) {
Body = theNews;
}
public String Body { get; set; }
}
}
hope that helps.
EDIT: Yea, what J4amieC said.
Scott P.
"Simplicity carried to the extreme becomes elegance."
-Jon Franklin
|
|
|
|
|
I have a feeling you might want to be looking at namespaces?
|
|
|
|
|
Hi,
I am writing a windows application and i want to write the code to know weather .net frame work is there or not and i want to know weather iis is installed or not.
after executing my application i want to run on other system with the help of that exe file.
please send any links or code how to know the framework is installed or not and iis is there or not....
the program should run on other also(where there will be no dot net) system with "Exe file". It should prompt the message that framework is not there
|
|
|
|
|
|
shavil wrote: the program should run on other also(where there will be no dot net) system with "Exe file". It should prompt the message that framework is not there
As far as I know this isn't possible with .NET (in vb6 it is but that's a dead language).
You can however add a setup project wich will create a setup for you (.exe and .msi files)
These will automaticly check for the framework and if its not there offer to download and install it.
|
|
|
|
|
i always resorted to checking the registry to see if IIS is installed, another method is to check the windows service list to see if W3SVC is installed and running
|
|
|
|
|
Dear user i have developed a database software in C#.Net 2005 and sql server 2000. i want this software to run for a specific period of time and only on one computer. so that the client demands for the new version of of the software.
i am waiting for you guidance.
Thank You.
Hamad Salahud-din
By Lucky Hamad
|
|
|
|
|
Do you mean like a trial period? or are you just forcing a user to upgrade after a certain amount of time for no reason? A user should upgrade only because your next release would have more features and specific upgrades that they want, not just because you say $o.
|
|
|
|
|
Lucky Hamad wrote: i am waiting for you guidance.
You might be waiting a while.
|
|
|
|
|
My sys admin chap wishes to restrict certain files etc. so he wishes to put them in folders with access priveleges restricted to certain logons - however, he also wants some people to be able to look at the first few records of those files (they are just text - CSV files) - so... is it possible to write a windows forms (or WPF) program in C# that when it is run mimics one of the priveleged logons so the user can browse and view the restricted files?
|
|
|
|
|
|
That was the word I was looking for. Thanks.
|
|
|
|
|
|
|
Hi,
I need to send a string or a key value when a socket connect to the listening server.
Example :
When a user enter logged in and send connection request to the listening server, I need to send his userId also to display the name of the connected user and his IP address.
How can i do this in connection request.
Regards,
YPKI
|
|
|
|
|
http://www.developer.com/net/csharp/article.php/3331571[^]
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
---solved---<br />
when i restart the Visual Studio
i made an UC and used timer, that UC has a property Delay that keep decrease until it reaches to 0. But damn problem is that whenever i set Delay property in designer and it start decreasing. First, timer was Enabled so then i set it False and enable it on UC's Load Event but problem persists, then i made another property of type bool to change the timer.Enabled property but Delay property still decreasing...
any solution ?
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|