|
Nobody to help me?
Please let me know if you need more details
Alain
|
|
|
|
|
I have one tree with parent node and 6 child nodes.I want to count number of child nodes. If I uncheck any childnode(s) than messagebox should display number of checked child nodes . If I deselect 4 child nodes than messagebox should display number "2".
I am using this approach but not getting sucess
private void count(TreeNode node)
{
int j = node.Nodes.Count;
MessageBox.Show(j.ToString());
foreach (TreeNode child in node.Nodes)
{
if (child.Checked == false)
{
j--;
}
MessageBox.Show(j.ToString());
}
}
this code count number of unchecked nodes when i select parent, i want to check itereatively on uncheck of each child!
any kind of help will e appreciated.
|
|
|
|
|
|
Thanks Stu for early for reply!
I am using on after check event and it is working okay. I guess I could explain problem in good way. Now each time I have to click on parent to verify how many child nodes are selected. Actually I want to store the number of unselecteded nodes in a variable, so I don't have to click on parent node to check that.
Thanks for the link and reply! I am quite close to solution now...
|
|
|
|
|
Hello all!!
What I want to do is to create rtf files with c# and then read them page by page(for example every page can contain 50 lines). Can anyone advise me on how to do this? I think there should be a way of inserting pagebreaks but not shure. Is this the right way? If it is I don't have an idea of how to read the pagebreak...
Thank you!!
|
|
|
|
|
|
I'm not shure if I am able of writting down my own parser. Also I tryied out the library you suggested, but could not use it. I imported the dll file and still din't manage it. I'm new in programming and have not enough experience. Could you please help me out here??
|
|
|
|
|
|
I am looking for an efficient method to synchronize my forms. In my application I have a class named "FormContext " where singleton properties of available forms are present. These are lazily loaded. Assume I have two windows open (first window is not visible as it's on the back), I need to synchronize the forms state and size when any of the form resizes. All my forms are inherited from a class called "BaseForm ". For synchronizing, this is what I did,
1 - Created a static event in the FormContext class say BaseFormResized
2 - Hooked this event when each form starts
3 - In the "BaseForm"s resize event, I am calling this event to synchronize the other forms.
This method is working, but the forms are flickering and I am unable resize it by dragging it. Is there any other efficient method available to keep the forms synchronized ?
|
|
|
|
|
Sounds like your getting stuck in a infinite loop.
If each form is responding to BaseFormResized events and resizing themselves to match, that will trigger another resize event, which the form will again respond to...etc...
When you respond to the BaseFormResized event, first check if form is already the correct size. If it is, then don't do the resize. This will prevent a second resized event getting triggered, so hopefully you won't get the loop.
If this doesn't work, post some code so I can see what's going on.
Simon
|
|
|
|
|
hi all,
i am using .net 3.0.and iam working on c#.i want to add background music for my asp.net application when it is viewing in browser.can anyone help me
|
|
|
|
|
1 - This is wrong forum, choose web developement forum instead
2 - This has nothing to do with ASP.NET. ASP.NET processes the markup and sends HTML back to browser. It can't play music. This is done with HTML
3 - Learn to google[^]
|
|
|
|
|
I am using VS 2003 for my current project.I am supposed to use Datagrid with checkbox columns in my project ,but that one is not in VS2003.Is there anyway to use VS2005 Datagrid in VS2003...
|
|
|
|
|
Nope. AFAIK, there is no way to do this
|
|
|
|
|
No, you can not use classes from .NET 2.0 in your .NET 1.1 app.
|
|
|
|
|
Nope. Also don't use bold text and don't expect too much help. We know who you are Subin Raju, and the level of abuse you hurled at Paul Marfleet when he tried to help you. Now, unlike you, I will be polite to people on these forums but not to a berk like you.
|
|
|
|
|
How to write a while loop?
oooo
|
|
|
|
|
As it is written in any other programming language.
rahul
modified on Thursday, April 3, 2008 7:30 AM
|
|
|
|
|
while()
{
}
Now, buy a beginners book on C#!
|
|
|
|
|
Hi,
bool I_need_programming_info=true;
while(I_need_programming_info) {
Book tutorial=BuyBook();
StudyBook(tutorial);
Book reference=BuyBook();
StudyBook(reference);
string guide=@<a href="http://www.codeproject.com/KB/tips/HowToUseGoogle.aspx">"http://www.codeproject.com/KB/tips/HowToUseGoogle.aspx"</a>;
BrowseAndRead(guide);
GoogleAround();
ReadDocumentation();
}
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
One of the best pieces of code I've seen in a while
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
I may be being a little pedantic, but wouldn't a do...while loop be better so he has to execute those instructions at least once?
Dave
|
|
|
|
|
Hi,
sure do ... while() can be useful, although I seldom use it, under most
circumstances I prefer for(; ; ) , often with one or more explicit exit tests.
However those may be topics for a more advanced thread, and since the OP asked for a while
loop explicitly I wanted to keep it as simple as possible. Besides, assuming some
perseverance, the given algorithm will teach him all the other loop constructs too.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
I've never used it actually.
I just thought
Book tutorial=BuyBook();
StudyBook(tutorial);
Book reference=BuyBook();
StudyBook(reference);
string guide=@"http://www.codeproject.com/KB/tips/HowToUseGoogle.aspx";
BrowseAndRead(guide);
GoogleAround();
ReadDocumentation(); should be executed at least once
Dave
|
|
|
|
|
Actually it needs to get executed forever, since people forget and technology evolves.
And my while loop takes care of that, the condition is always true.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|