|
Hi ,
i have a project in which i created two classes TreeDisplay(Form.cs) and MytreeNode class in same namespace.
TreeDisplay class contains all the GUI related stuff like Browse button textbox,label,progress bar and TReeView. I want the user to select a XML file through browse button which will be displayed in textbox.The Xml file selected will be displayed in Treeview on winform.
Now i want to separate the GUI part from business logic(where i am creating treenode and adding nodes to tree) thats why i created the MytreeNode class. I am passing the treeview and the string filename from the FileOpenDialogue in Browse button.
i want to pass a Xml file name from one class to another class in same namespace using URI.i want to initialize with file path. i have passed the treeview object from GUI to my backhand class MytreeNode class.
But how to initialize with fie path? here is a part of code.
public class MytreeNodeClass
{
internal void initiatingTree(string nameofFile,TreeView treeView1)
{
try
{
XmlDocument xmlDocument = new XmlDocument();
xmlDocument.Load(nameofFile);
treeView1.Nodes.Clear();
if (xmlDocument.DocumentElement != null)
if (true) treeView1.Nodes.Add(new TreeNode(xmlDocument.DocumentElement.Name));
Help me in putting up the right part of code at right place.
Thanks
|
|
|
|
|
Hi,
I wanted to retrieve the data of a PDF when it was opened in IE using c#.
If this can be done by BHO, it helps me a lot.
Any suggestion for achieving this...
|
|
|
|
|
You can try to monitor IE cache for PDF files. You can get the cache path by using Environment.GetFolderPath(Environment.SpecialFolder.InternetCache) .
Then you can use any PDF reading library to get the data.
|
|
|
|
|
|
Hi
Me with C#.net gridview, I am trying to move the selected row to one row up on uparrow keydown and is working fine but after moving the selected row to one row up still the selected row remains with the previous row, How can I make the selected row as the one which I had moved up so that on the next uparrow key press that row will move up
my code is
private void dgvQuotationEntry_KeyDown(object sender, KeyEventArgs e)
{
int Asciival = e.KeyValue;
string ID , PRDCode
int rowIndex = 0, rowCount;
rowIndex = dgvQuotationEntry.CurrentCell.RowIndex;
rowCount = dgvQuotationEntry.Rows.Count;
if (Asciival == 38)
{
if (dgvQuotationEntry.CurrentCell != null && rowIndex != 0)
{
ID = dgvQuotationEntry.CurrentRow.Cells[0].Value.ToString();
PRDCode = dgvQuotationEntry.CurrentRow.Cells[1].Value.ToString();
dgvQuotationEntry.Rows.RemoveAt(rowIndex);
dgvQuotationEntry.Rows.Insert(--rowIndex, ID , PRDCode);
}
}
}
Thanks & Regards
|
|
|
|
|
This should work
dgvQuotationEntry.Rows.Insert(--rowIndex, ID ,PRDCoded);
gvQuotationEntry.SelectedIndex=rowIndex;
|
|
|
|
|
but for datagridview there is not a property like SelectedIndex
Thanks & Regards
|
|
|
|
|
|
Please go through and obey Chris Maunder's message before posting a question. Explain you question properly or atleast some sense
|
|
|
|
|
do you know kanchan, abu and poonam cuz you all seem to be wanting the same thing.
Are you all in the 'Post a crap question twice' class together?
If only MySelf.Visible was more than just a getter...
A person can produce over 5 times there own body weight in excrement each year... please re-read your questions before posting
modified on Thursday, March 5, 2009 5:31 AM
|
|
|
|
|
an example of average retard[^]
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
|
|
|
|
|
musefan wrote: 'Post a crap question twice' class
|
|
|
|
|
|
|
|
now, lets dance
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
|
|
|
|
|
You're a moron. What the hell are you playing at ? There's plenty of paint app samples online, and yet you post these non questions. What abuot a drawarea tool ? What the hell IS a drawarea tool ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
can u please tell me how to create that?
|
|
|
|
|
there is use case diagrams tool,class diagram tools etc...
is there any demo project u can give me pls?
because i want impliment in my project..
|
|
|
|
|
|
Is that a new record or what?
"Five exclamation marks, the sure sign of an insane mind." - Terry Pratchett.
|
|
|
|
|
well it was clearly an atempt for 9... it must be harder than it looks
!!!!11whdekf.....
Damn, only managed four
If only MySelf.Visible was more than just a getter...
A person can produce over 5 times there own body weight in excrement each year... please re-read your questions before posting
|
|
|
|
|
Vikram A Punathambekar wrote: Five exclamation marks, the sure sign of an insane mind
"And all those exclamation marks, you notice? Five? A sure sign of someone who wears his underpants on his head." - the very same
|
|
|
|
|
Kanchan Pawar wrote: urgent!!!!!!!!1
why so urgent ? an uncontrollable pee ?
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
|
|
|
|