|
|
Hello,
I just purchased the C# 2008 for Dummies and my objective is to Learn this .Net language for use in coding a strategy using a Trading Platform. It is Fidelity's Wealth Lab Pro 5.4. If I can code or tell the computer platform what I want to do, this will make a big difference. The do have a Drag and Drop for people who don't want to write a code, but this severely limits me. This book with all the extra sites will help me immeasurably. Oh, and I am not a programmer.
Since now you know my story, what would be the best or most beneficial way to proceed?
Thank you and all the best,
Jeff from Maine
|
|
|
|
|
The first step is to confirm that this trading platform is able to do what you want it to do, using C# code.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian,
Yes the C# syntax is what this Trading Platform requires for coding. I'm asking what would be the best course if studying after reading c# for dummies.
Jeff
|
|
|
|
|
|
If you changed the dll, you may need to build it, then remove the reference and add it again
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Deleting your question is very, very rude.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
for (int i = 0; i < Frames.Count; i++)
{
if (!splitContainer3.Panel1.Controls.Contains(Frames[i]))
{
splitContainer3.Panel1.Controls.Add(Frames[i]);
}
Frames[i].Left = (Frames[0].Width + 20) * i;
Frames[i].Top = 20;
}
This should work, but only the Added control shows up. A test shows that the existing entries of the Controls collection are removed.
How do I fix?
|
|
|
|
|
insufficient information
What is it you want? what is it you get? what is the difference? what is in Frames[]??
we aren't mind readers.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Frames[] is a List, where Frame is a custom user control.
I am trying to update all of the Frames on the screen, by relocating them and adding any missing ones.
However, only the last entry in Frames[] will show up, and checking Controls.Count returns 1, when Frames.Count is more.
|
|
|
|
|
Anything is still possible: maybe some of the frames have Visible=false, maybe some are empty, maybe some have zero width or height, maybe some of your statements are incorrect.
Either you provide a full description of what your app is doing and supposed to do and you show more of the code, or you start debugging yourself, by increasing observability, adding assertions, and whatever it takes to pinpoint the problem.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Luc Pattyn wrote: insufficient information
Its almost like you threw an exception there Luc .
Mark Brock
"We're definitely not going to make a G or a PG version of this. It's not PillowfightCraft." -- Chris Metzen
|
|
|
|
|
MarkBrock wrote: Its almost like you threw an exception
that is exactly how it felt, there was nothing to work with.
It did resemble an abstract version of a NullReferenceException. And it still does.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
I have a word document and I want to paste an image into a cell. Both the cell and the image can be of any size. I am using Microsoft.Office.Interop.Word to do this. After getting the right cell and copying the image to the clipboard, when I call cell.Range.Paste(); the image gets pasted into the document, but it doesn't get auto resized to fit the cell dimensions. If I select the image with my mouse and then press ctrl + v, the image is re-pasted and auto resized.
Is there a way to paste the image from code and have it resize?
Thx
|
|
|
|
|
how to insert an image in word file through C# 2008....
please send me the code to insert an image in a word file through C# 2008
csetopper_bhanu
|
|
|
|
|
hello once again today -
I do have one more question and I hope that someone can help me one more time today again. I have an xml document similar to this one:
<xml>
<person id="1">
<first>John</first>
<last>Smith</last>
</person>
<person id="2">
<first>Mark</first>
<last>Smith</last>
</person>
</xml>
I want to get partial xml data, for example I want to get just the second person data, and I want to get based on the attribute, in this case the ID. Is there a way how to do that? Thanks in advance, Laziale
|
|
|
|
|
You'll have to write some code.
|
|
|
|
|
How insightful
only two letters away from being an asset
|
|
|
|
|
Yes; look into XPath queries. The correct query would be something along the lines of "//xml/person[id='2']". You simply have to plug that into and example like this; there are other examples you could use as well
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
You can use an XPath expression to retrieve the xml fragment, ./person[@id='2'] will return the second person element in this case
only two letters away from being an asset
|
|
|
|
|
ok, sorry everyone cause I didn't provide any code, but here is what I tried:
string innerXml = "";
innerXml = docCompany.Attributes[selectedItem].OuterXml;
and it give me an error NullReferenceObject
any other way?
|
|
|
|
|
|
You should look into LINQ for this, I absolutely LOVE LINQ when working with XML files.
http://www.codeproject.com/KB/linq/LinQ_To_Xml.aspx
That's a good article that shows pretty much exactly how to do what you need.
Sorry for the crappy link, all the fancy JavaScript that formats it doesn't work on my iPhone (stupid safari)
If at first you don't succeed ... post it on The Code Project and Pray.
|
|
|
|
|
Hello ,
Virtual keyword allows us to override that method in child class.
Now when we declare a class as sealed class then we cant inherit . In That case why it allows us to decalre virtual keyword in static class when any other class inherit it ?
Pls expaln in deatils
Regards,
Jaddu
|
|
|
|
|
It will not allow you to declare a virtual method in a sealed class. You can't have instance members in a static class as well.
|
|
|
|