|
|
yea but isn't that just another IRC client ?
|
|
|
|
|
Don't know, it just looks like a pretty well maintained and comprehensive IRC library. I'd be somewhat surprised if it was all client stuff.
|
|
|
|
|
Hello,
Can you please tell me how can I have a fixed listView column size for all the coumns except for the first one, I want it to fill all the unused space.
Thank you!
|
|
|
|
|
No magical way to do this. You can listen for ListView.ColumnWidthChanged event and through code resize all the columns to take up the extra space.
|
|
|
|
|
i need to show several stars moving in different directions when a user touches a object in the game
my question is that i may have few hundred stars on screen at a time
according to performance point of view weather i should use sprite for each star or make triangle Strip/fan for that
thanks
It is Good to be Important but!
it is more Important to be Good
[My Question]
|
|
|
|
|
I'd imagine a sprite would be far more performant that using individual triangle strips. Sprites are meant for use in batches, so I'd imagine they'd fit your scenario pretty well from a performance perspective.
|
|
|
|
|
thanks
i use sprites but there was a problem
when ever i make a new sprite it took texture image from file which is very expensive in terms of performance
so i make a static texture and assign it to others it increases the performance considerably but using static variable is not a good idea in it self (however i make them null after use )
if you have a better solution please tell me
It is Good to be Important but!
it is more Important to be Good
[My Question]
|
|
|
|
|
You don't have to make the variable static to use it more than once.
---
b { font-weight: normal; }
|
|
|
|
|
how can i use it in multiple instances of multiple classes without making a instance of containing class every time (because it have to read from the file which results in increased cunsuption of cpu)
i have to finish my project in november itself so there is not much time for reading oop concepts in so detail (time require to find it) so please help me
thanks
It is Good to be Important but!
it is more Important to be Good
[My Question]
|
|
|
|
|
Just pass the variable into the class where you're going to use it:
class FirstClass
{
string someVariable = "hello";
...
SecondClass second = new SecondClass();
second.HereItIs(someVariable);
}
class SecondClass
{
public void HereItIs(string variable)
{
}
}
|
|
|
|
|
thanks
i hope it will work as things are not so simple
It is Good to be Important but!
it is more Important to be Good
[My Question]
|
|
|
|
|
Yeah. Typically if you need shared variables, you should initialize it in one place, then pass it down to all descendant classes by passing the variable down into the class constructors.
Alternately, you can make the variable static if you need only 1 instance, but this often leads to rigid designs; static is really meant for classes where the functions don't rely on any state and are completely independent of each other.
|
|
|
|
|
AGRH! its 9
i should leave for office
thank you very much this conversation is very useful to me
thanks again
It is Good to be Important but!
it is more Important to be Good
[My Question]
|
|
|
|
|
Hi, I have a container which inside as a container display certain forms, those forms i can move it inside the container. what i want to do is eather disable the forms to move, or disable the container that when i try to move a form outside the container do not appear an Scroll Bar. I already try to disable the Autoscroll property of the container but i still getting the scroll when i move a windows. how do i disable the scrolls to apprear in the container,so the forms does goes outside ther borders and the scroll bars appears.
La Light
|
|
|
|
|
try setting its dock property to Fill.
~~~ From Milano to The Hague, easy as it goes ~~~
|
|
|
|
|
a Container Does not have that property... So any other Suggestion?
-- modified at 16:49 Monday 20th November, 2006
La Light
|
|
|
|
|
I know this is an easy one but I can't find any examples. I have a xml file that I transform (via xslt) and I need to save it. How?
string ls_xml;
XmlDocument doc = new XmlDocument();
Xml output_xml = new Xml();
ls_xml = GetXMLString(); // returns xml string
doc.LoadXml(ls_xml);
output_xml.Document = doc;
output_xml.TransformSource = "menu.xslt";
I can look at the output_xml and it's exactly what I want but in a web.sitemap file. How do I save it without using a xmlwriter to parse through the entire xml file? That seems a little redundent since it's in the desired format already.
Thanks, Jessica
|
|
|
|
|
Hi Jessica
Does
doc.Save("myfile.xml");
fit the bill?
|
|
|
|
|
No. That will save the original xml document file. and I need to save the xml after the transformation. I want to save the output_xml (type xml, not xmldocument) without parsing through the entire xml.
Thanks, Jessica
|
|
|
|
|
Ok, now I think I understand.
You want to save output_xml to a file, is that right? If so, can you simply do
File.WriteAllText("myFile.xml", output_xml.DocumentContent); ?
|
|
|
|
|
OOhh... that gets me so much closer. But my DocumentContent is blank. I looked at other properties but Document.InnerXML contains the initial xml (not post transform).
I know the transform is happening because I can add an <asp:xml> control to the form and see the transform xml. I just don't know how to access it at run time to save to a file.
Thanks, Jessica
|
|
|
|
|
Sounds like you need to do the transform yourself on the initial XML. Can you either create a new transform or access the Xml.Transform property, then transform the initial XML using the XslTransform.Transform method?
|
|
|
|
|
I thought that was what I was doing in my initial code I posted.
string ls_xml;
XmlDocument doc = new XmlDocument();
Xml output_xml = new Xml();
ls_xml = GetXMLString(); // returns xml string
doc.LoadXml(ls_xml);
output_xml.Document = doc;
output_xml.TransformSource = "menu.xslt";
Thanks, Jessica
|
|
|
|
|
got it. Thanks for your help. I thought that would be easier but it wasn't.
doc.LoadXml(ls_xml);
string sitemapxslFile = MapPath("menu_sitemap.xslt");
string tempfile = MapPath("jte.sitemap");
StringBuilder sb = new StringBuilder();
TextWriter tw = new StringWriter(sb);
XslTransform xsl = new XslTransform();
xsl.Load(sitemapxslFile); //load xsl file
xsl.Transform(doc, null, tw, null); //does transformation
XmlDocument ret = new XmlDocument();
ret.LoadXml(sb.ToString());
ret.Save(tempfile);
Thanks, Jessica
|
|
|
|