|
I can add parent node and child node, but i can't add child of child node.
+91 9916025724
Joseph Thachil
|
|
|
|
|
Its possible to add child of child nodes.
TreeView TreeView1=new TreeView();
foreach (TreeNode tn in TreeView1)
{
TreeNode tn1;
if (TreeView1.Nodes[intTreeCount].Value == treeNodeValue)
{
tn.Nodes.Add(tn1);
}
int childcount=tn1.ChildNodes.Count;
if(childcount>0)
{
tn1.childNodes.Add(tn2);
}
and so on....
I was born dumb!!
Programming made me laugh !!!
--sid--
|
|
|
|
|
i have made simple calculator in csharp but unable to make windows calculator.what should i do.please help
thanks in advance
|
|
|
|
|
seeng wrote: what should i do
Buy a book on winforms and work through it.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
T9 dictionary is used in mobiles.i want to make this dictionary using c sharp.give me some idea how to start
thanks in advance
|
|
|
|
|
File\New\Project.
What is a T9 dictionary ? If you need to ask how to write a calculator ( as you did above ), odds are you should buy a book and work through it, so you know enough about C# to understand the answers you will get here.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Check this out: http://www.t9.com/[^]. It shows you how a T9 dictionary works on a mobile phone..
|
|
|
|
|
May I ask why? I guess your computer has just like mine a keyboard with a lot of keys so that there is no need for something like T9..? What point am I missing?
However implementing such a dictionary is not difficult. You only need a list with the words that can be completed and then you need to check this list whenever you press a new key, starting from the last space, point, comma...
I know that this answer doesn't tell you a lot but your question also doesn't tell me a lot about the problem
Just start with it and come back if you have any specific problems!
|
|
|
|
|
I have a program which comes with an image library. I just created a dll that has a method, which takes a name and returns an image from the dlls resources. Issue is, the dll gets loaded into memory when the program runs, I just want to pull out images, not have the whole library in memory. What suggestions do you guys have for ways of doing this ? I'd prefer something that scales well, I could end up with a resource file that lives on a DVD and is over a gig, and I still want the images to load quickly.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
You could load the dll into another appdomain, extract the image, then unload the appdomain.
only two letters away from being an asset
|
|
|
|
|
Yeah, I was thinking along those lines, but one of my issues is *speed*. I'm starting to think there's no way of doing it fast, if the images live in the one dll.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I've used the technique before and seemed to be fine, no excess speed issues. Though I wasn't loading large images either. The only hang up was marshalling some data across the appdomains.
only two letters away from being an asset
|
|
|
|
|
OK - thanks. I will give that a try.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Do you have the option of using a resource editor to export the images you need to build into another .DLL?
|
|
|
|
|
Right now, the images are in a seperate dll, I can reorganise them however I like. Making the images secure is a concern, however, so I can't just have a folder full of jpgs and load from the HDD.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi Christian,
if you only need a small fraction of the available images at any point in time,
I would avoid putting them all together in one big file (such as a DLL);
I would go for a kind of index file, and a number of smaller files.
if security and performance are a concern, how about putting all (or a number of)
images as separate files into a password protected ZIP file ?
Hope this helps.
|
|
|
|
|
Don't I need a third party library to open a password protected zip ?
Yeah, I am starting to think about having lots of resource files, and zips had crossed my mind, as a possible solution.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: Don't I need a third party library to open a password protected zip ?
The most recent discussion thread of Valen's article[^] confirms and discusses that;
CodeProject seems to hold solutions like this one.[^]
|
|
|
|
|
Christian Graus wrote: Yeah, I am starting to think about having lots of resource files,
That's what I was thinking about. Not really ZIP's because the images are probably already compressed. Encrypting them will only make it harder to compress further. But encrypting the images in a library of resource DLL's would probably work for you. Encryption would add a bit of an overhead to retrieving an image, but I guess that could be solved by an internal caching scheme in a custom resource manager.
|
|
|
|
|
Hello, I want to run some Installers from my App, but I´m getting some trouble when I use WaitForExit(); cause I want to finish each task before the next one is executed, actually it executes all the process at the same time. here is the example:
System.Diagnostics.Process p1 = new System.Diagnostics.Process();
System.Diagnostics.Process p2 = new System.Diagnostics.Process();
System.Diagnostics.Process p3 = new System.Diagnostics.Process();
p1.StartInfo.FileName = path2;
p1.Start();
p1.WaitForExit();
p1.Close();
p2.StartInfo.FileName = path3;
p2.Start();
p2.WaitForExit();
p2.Close();
p3.StartInfo.FileName = path4;
p3.Start();
p3.WaitForExit();
p3.Close();
Thank you in advance!!!
Ing. José Guzmán
|
|
|
|
|
I have no experience with installer, but I often use the Process class and
your code seems OK.
So my best guess is the "installer" you launch is just an empty process
(maybe a batch file?) that on its turn launches the real installer and does
NOT wait for it...
You might check this by comparing the path you start, and the process path
that gets shown by the task manager while the installer is actually working.
Hope this helps.
|
|
|
|
|
The problem is that MSIEXEC (.MSI installations) can launch multiple instances of MSIEXEC, with the original instance quitting some time after it starts. I think you might want to watch your installations and examine the Process tab in Task Manager to watch what happens during the install. You may be able to get away with watching for all instances of msiexec to quit before you go to the next installer.
|
|
|
|
|
HI
another Q
when i run the app(it only has a web browser)
i get an dialog of open save cancel
can i get ride of him
and auto present the ppt
TNKS
kobkob
|
|
|
|
|
I strongly suggest you read some of the WebBrowser documentation; your question
is on navigation. There are both methods and properties for that.
|
|
|
|
|
THNKS
;P;P
kobkob
|
|
|
|