|
it would be nice though... and we can try dam hard to get the majority of them
|
|
|
|
|
Check this[^]
Hope it helps
kss
|
|
|
|
|
fearless stallion wrote: Hope it helps
Indeed
|
|
|
|
|
What is the max limit for nesting while and for loop.
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
trilokharry wrote: What is the max limit for nesting while and for loop.
There is no limit.
Som
|
|
|
|
|
...although if you are concerned about the limit, you are possibly doing something very wrong...
|
|
|
|
|
thanks
You get the best out of others when you give the best of yourself.
|
|
|
|
|
how do i use the print dialog to print the current page. I'm guessing upon return from the print dialog i can check a property which will tell me if "current page" is clicked. but i cant find it for the life of me. barking up the wrong tree?
cheers
|
|
|
|
|
in case anyone is interested, i finally solved it...
if (this.printDialogReport.PrinterSettings.PrintRange == System.Drawing.Printing.PrintRange.CurrentPage)<br />
{<br />
...<br />
}
|
|
|
|
|
Deat all,
How to calculate number of days between two differnt selected dates considering leap year also.
Number of days should are calculate in the code itself,Not in sql.
Please give me some code snippet for all these.
Thanks in advance.
kissy
|
|
|
|
|
this[^] would have been quicker for you.
If you subtract one date from another, you get a TimeSpan
as in
TimeSpan ts = date2 - date1;
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Use DateTime.CompareTo to determine which of your dates is earliest, then substract it from the other using DateTime.Substract to determine the timespan you need.
Standards are great! Everybody should have one!
|
|
|
|
|
string[] stringArray = {"Hello", "World"};<br />
ListViewItem lvi = new ListViewItem(StringArray);<br />
<br />
if(this.listview1.items.contains(lvi))<br />
{<br />
;
}<br />
else<br />
{<br />
this.listview1.items.add(lvi);<br />
this.listview1.update();<br />
}<br />
Why does this code always run in else block when the same Listview item is added into the listview??
Som
|
|
|
|
|
Is it because everytime a new object is created??
What if I want to compare listview items and then add into listviews???`
Som
|
|
|
|
|
Because it doesn't. Even if the contents of the two items are the same, they are two different list view items. They just happen to have the same strings in them. You need to search through the strings inside the items, if that is what you mean.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: You need to search through the strings inside the items,
Do u mean to say I need to use the 'SubItem' property..??
Then how do we use listview.contains ?
Som
|
|
|
|
|
I'm assuming there's a find method which finds the first item which contains a string, or something like that.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
i asked this question here before too but no answer so i m asking again..that i hav a mdi form which displays a mdi-child form on its load event...it contains various functionality..like view the complete detail of the current user of the datagridview...so on opening this view(mdi-child)form it displayed under the mdi-parent form and also shows its menu items like File,Edit,View etc...and also having an edit button..which displays another(mdi-child)form for editing the record..but the problem is this..it is not displaying under mdi-parent form and not showing the mdi-parent's menu item..even it also hides the start menu bar...so please help me how to call a mdi-child form from another mdi-child form
|
|
|
|
|
What happens if you create a method on the mdi-parent that opens the edit form? By using this technique the two forms are opened the same way. If you still get the same behavior the problem must be related to how you have set up the two forms.
|
|
|
|
|
Christian Wikander wrote: What happens if you create a method on the mdi-parent that opens the edit form?
but i dont want to open the edit form from mdi-parent form..i want to opent the form from that view form and i coded like..
up.MdiParent = this.MdiParent;
up.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
up.Show();
so please help
|
|
|
|
|
Well, you need to start experimenting to find the source of the error. Then you can judge if you should try to solve it or try to find another acceptable solution. Just sitting there waiting for answers will get you nowhere.
Another thing you can try is to comment out the line where you set FormBorderStyle.
|
|
|
|
|
Christian Wikander wrote: Just sitting there waiting for answers will get you nowhere.
thanx for suggestion....and telling me the truth
|
|
|
|
|
i agree with this.
create your midi forms on the midi parent... always.
if you want to create/call from another midi child, create an event on the midi child, something like "CreateMidiChild", and when the event is triggered the midi parent which will be subscribed to this event can create the new child for you.
|
|
|
|
|
thanxxx...my problem is solved now
|
|
|
|