|
No. I wouldn't imagine that anything like that exists, but it never hurts to look. Don't limit your search to CP. Use Google and certainly check SourceForge[^]
led mike
|
|
|
|
|
hi,
when I switch the form view, form.designer.cs corrupts and when I run the code Anchors change their positions
today I installed Visual Studio 2008 sp1...
According to me, menu can be cause it
any ideas?
thanx...
I want to fly but I don't have wings
|
|
|
|
|
You are not suppose to change stuff inside the form.desiner.cs .....If you want to change your control behaviour you may either do at the design time or within the form.cs file.
|
|
|
|
|
hi there! I want to save a xml document at the local disk from a string what I am getting from a database. can someone point me at some direction how I can do that? Thx ahead
|
|
|
|
|
Assuming xmlString contains valid xml from the DB and xmlFullPath contains a valid path with filename and permissions are OK.
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(xmlString);
xmlDoc.Save(xmlFullPath);
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
the path is like for example:
string path = "C:\\XML";
and it doesn't want to save there, it just goes through all the lines and it does not save
this is the code
string xmlFullPath = "C:\XML";
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.LoadXml(xmlOrder_Data);
xmlDoc.Save(xmlFullPath);
and it goes without saving at the local directory. Any help? Thx
|
|
|
|
|
laziale wrote: and it goes without saving at the local directory. Any help?
I should save the file otherwsie and exception would be thrown
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
laziale wrote: string xmlFullPath = "C:\XML";
Did you leave out a backslash?
|
|
|
|
|
noo..it was C:\\XML, without one backslash its giving me the escape sequence error
|
|
|
|
|
I tried your code, substituting a string containing valid XML for xmlOrder_Data and wound up with a document named XML in my C:\ - if I passed invalid XML (or no XML) to LoadXML() , I threw an exception on the Save() method.
Have you tried stepping through the code?
Sincerely,
-Mark
mark@msdcweb.com
http://www.msdcweb.com
|
|
|
|
|
Yes, I step through the code as well. But I will try tomorrow again. Maybe I need to fix something as well. Thx for the cooperation.
|
|
|
|
|
I want to go to a specified node in TreeView.
How can I do it?
Hello Friends
|
|
|
|
|
Locate the node using the control's Nodes property. Then set the control's SelectedNode property.
/ravi
|
|
|
|
|
Thanks
But can you make a sample for me in one line code?
Thanks in advanced
Hello Friends
|
|
|
|
|
No. But, I'll be more than happy to help if you have a specific question after trying to do this yourself.
/ravi
|
|
|
|
|
I tried this way for many time but I couldn`t get ane success
Help me please
I need your help immediately
Thanks
Hello Friends
|
|
|
|
|
How to use this exactly?
Hello Friends
|
|
|
|
|
Iterate through the Nodes collection; check each TreeNode to see if it matches your criteria. If it does, set the control's SelectedNode property.
/ravi
|
|
|
|
|
Thats true; but I my tree is in a larg size so I don`t want to Pass all nodes in my treeview.
Now What can I do for it?
Hello Friends
|
|
|
|
|
Thats true; but my tree is in a larg size so I don`t want to Pass all nodes in my treeview.
Now What can I do for it?
Hello Friends
|
|
|
|
|
This example assumes that the node's Tag property contains the data (like a key value) that you're looking for:
public TreeNode GetTreeNode(string sNodeTag)
{
TreeNode oRetVal = null;
foreach (TreeNode oNode in treeView1.Nodes)
{
if ((string)oNode.Tag == sNodeTag)
{
oRetVal = oNode;
break;
}
}
return oRetVal;
}
Everything makes sense in someone's mind
|
|
|
|
|
I don`t want to get a specified node in treeview
I want to set a specified node in treeview.it means I want to go to specified node in treeview
How can I do it ?
Hello Friends
|
|
|
|
|
When you say "set a specified node in treeview", I'm guess you're talking about setting the SelectedNode.
Again, this code assumes that you have stored a distinct value to each node's Tag property, and are passing that value into this method.
public void SetActiveNode(string sNodeTag)
{
foreach (TreeNode oNode in treeView1.Nodes)
{
if ((string)oNode.Tag == sNodeTag)
{
SelectedNode = oNode;
break;
}
}
}
Everything makes sense in someone's mind
|
|
|
|
|
How can I search in a DataGridView ?
I have a DataGridView that has eight column.(for example this datagrid shows some information about 5000 E_Books).One of these eight column is about "Subjetc" and it can made of tow or three subject that delimited with "#" from each other : Example = "Metaphysics # Epistemology".
Now I want to search Epistemology in this datagrid so that I can see this record ( "Metaphysics # Epistemology" ) as an answer of my search
How can I do it?
Thanks in advance
Hello Friends
|
|
|
|
|
hi Laji59
See this and dont forget to vote
http://www.codeproject.com/KB/cs/N-Tier22.aspx[^]
Hope it helps
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|