|
Thanks for your reply.All i wanted was how to name my X axis as for instance 'Product' and my Y axis 'Sales'.
The link you have sent doesnt explain include this topic.
Please advice.
Thanks
|
|
|
|
|
|
Thanks So much for your help.Its Much appreciated.Sorry to mention another Problem i have is to Put a $ sign in fromt of the Y axis.
.Series("Revenue").IsValueShownAsLabel = True
I have to show numbers that are in $ Sign? How could i do that?
When i do the formatting on the Numbers i get a problem with the layout of the Graph.
Could you please advice?
Thanks
|
|
|
|
|
hi everyone, I'm able to transfer string data from server to client. But my recent code runs,transfers the string and stops. My problem is that I want to update that string every minute. I can make server send the updated data every minute but how can the client keep listening?, thanks in advance.
|
|
|
|
|
teknolog123 wrote: how can the client keep listening?
Just use some form of timed loop, or wait on a receive call for the server to send some data.
It's time for a new signature.
|
|
|
|
|
A server should reply a client's request, no more, no less. It should not try and keep a list of clients, and it should not take any initiative in communications.
If you want periodic communication between one or more clients and a server, make the clients request new data periodically.
|
|
|
|
|
|
you're welcome.
|
|
|
|
|
|
teknolog123 wrote: My problem is that I want to update that string every minute. I can make server send the updated data every minute but how can the client keep listening?
I think your client/server module is working reversely. Instead of server sending data to client every minute, let client do the request to server for the data and let server keep listening for the client requests. I think that makes sense, right?
Knock out 't' from can't, you can if you think you can.
|
|
|
|
|
Yes you're right! Thanks, I'll do so
|
|
|
|
|
You are welcome.
Knock out 't' from can't, you can if you think you can.
|
|
|
|
|
It looks like you may use a Duplex channel.
|
|
|
|
|
Hi everybody!
How can I install an application (.exe) from my WPF (Windows Presentation Foundation) in the client-side.
I'm automating a test and need to install the software for test the steps, but when I run the setup.exe it's everything OK, but when it will finish to install, I get an error, I need administrative privileges, but I'm running the test in administrative account.
Please, help me, I don't know what is the correct code that I need.
Maybe whit a certificate, but How?
Thanks in advance!!!
|
|
|
|
|
public void method1<T> (T obj) where T:mybase, new()
{
}
i have the problem with the "new ()", any idea why it is added and what it means.
|
|
|
|
|
It means T has a default constructor.
|
|
|
|
|
It means that the class derived from mybase (or mybase itself) must have a default constructor, and can be instantiated through your code here, for instance T object1 = new T(); . If you don't have this constraint in place, you cannot instantiate the class like this. Another point, the only instantiation you can do here is based on the default constructor - you cannot call another constructor in its place.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
But you can use default(T);
|
|
|
|
|
You can, but that just assigns a default value. It doesn't instantiate and it's not constrained by the new() .
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
I wasn't even thinking when I posted that.
|
|
|
|
|
No - it was useful to add as a clarification. If it helps the OP learn more about generics and constraints, it's all to the good.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Ok so I'm looking to get my knowledge and skills up to par and I've started a small project to get my head around a few things but I've already found something that is confusing me. I've posted a very stripped down version for simplicity.
I am intending to run a method(runApple) from a derived class(Apple) that will set default values.
My Base.cs page contains;
public class FruitBase
{
private string _Name;
public FruitBase()
{
}
public string Name
{
get { return _Name; }
set { _Name = value; }
}
}
public class Apple: FruitBase
{
public Apple()
{
}
public void runApple()
{
Apple a = new Apple();
a.Name = "Apple";
}
}
And my Default.aspx page has the function below that is fired on a button press:
public void Start(object sender, EventArgs e)
{
Apple a1 = new Apple();
a1.runApple();
txtOuput.Text = a1.Name;
}
Now when debugging I step into the code at the a1.runApple(); line which takes me to the set section of the FruitBases public property Name. Whilst in there the value updates the string so that it equals "Apple", however as soon as the cursor returns to the runApple methods closing curly brace all the Name values return to Null.
I know that I can set the value within the Start() method by doing a1.Name = "Apple" but i want to build up lots of different properties so it makes sense to run them all at once from the runApple method. The intention is to scale this up to have many more FruitBase fields and many more derived classes with relevant defaults eg banana, grape, orange etc.
I realise this is a very basic isse but we all have to start somewhere right? Thanks for your time.
modified on Wednesday, June 30, 2010 12:18 PM
|
|
|
|
|
Did you mean for runApple() to do this.Name = "Apple"; instead of operating on a new instance of Apple ?
/ravi
|
|
|
|
|
You're absolutely right Ravi, thank you so much. I knew it would be something simple, its so easy when you know how!
Thanks alot
|
|
|
|
|
NP! We've all been there.
/ravi
|
|
|
|