|
The best place to find out would be on the infragistics[^] web site.
If they don't have the info on the site, email support, or try asking in their forums.
Simon
|
|
|
|
|
thanks stevens, i ll try to ask in their
Simon Stevens wrote: forums
only..
|
|
|
|
|
how to insert data from database into a table which is placed in word document.
Please help me reagrding this.i am not getting solution.
|
|
|
|
|
You can use word object model for working with word files.
|
|
|
|
|
i didnt get you.can you explain some more clearly.
actually my problem is to insert data into table it has to recognise table starting and ending.how will it recognise starting and ending of table.
|
|
|
|
|
sram15 wrote: i didnt get you.can you explain some more clearly.
Google can: word object model[^]
|
|
|
|
|
I want to run program on background . pref C#
I want put icon in the tray.
On specified time it’s synchronizes folders (I know how to sync folders) .
How to run it on background and start sync ( for example at 2am)?
|
|
|
|
|
Use NotifyIcon if you want to show icon in system tray. To run the form in background Hide() it either in Load or Shown event.
You can use windows scheduler to schedule when your application runs. Here is a library for working with windows scheduler: A New Task Scheduler Class Library for .NET[^]
|
|
|
|
|
Hi,
Iam getting HTML code from one of my webpage,i have to use that in another page but before that i have to remove some components and take only one table from that page.Is it possible to do this?any sample pgm for this?
|
|
|
|
|
Hey everyone!
I was just wondering, and after about 30minutes of searching google with no help, how I would go about using foreach to do 'something'. I would like to do something like:
foreach( Item in ListView.Items )
{
MessageBox.Show(ListView.SelectedItem.ToString());
}
So basically for each item in my list-view control i want to pop up a message. I'd appreciate any pointers/samps/links from anybody. Thanks for your time.
Regards,
j.t.
j.t.
|
|
|
|
|
You declare a variable in the foreach statement, then that variable will contain each item inside the code block:
foreach (ListViewItem thisIsTheVariable in ListView.Items) {
MessageBox.Show(thisIsTheVariable.Text);
}
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
|
Hi
foreach (ListViewItem item in ListView.Items)
{
}
Hope can help.
I died as a mineral and became a plant,
I died as plant and rose to animal,
I died as animal and I was Man.
Why should I fear? When was I less by dying?
-- Rumi[^]
My blog
|
|
|
|
|
Thank you all for your quick responses, all of your suggestions have helped I really appreciate it. Thank you.
Regards,
j.t.
j.t.
|
|
|
|
|
Hi:
I see in lots of sample code something like this:
Customer customer = (Customer)e.NewObject;
but I always prefer:
Customer customer = e.NewObject as Customer;
I can then test for 'customer' being null, but is there and *real* difference of performance hit?
---
Regards,
Martin.
modified on Monday, November 24, 2008 4:53 AM
|
|
|
|
|
Proximity to Programming Question Alert!
My new favourite phrase - "misdirected leisure activity"
|
|
|
|
|
1 bogey at 11'!
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
throw new ProgrammingQuestionInLoungeException(); But I'll give you a hint - write a loop and test each method 1000 times. Time it with a Stopwatch . In a managed language all your assumptions about performance are irrelevant, the JIT compiler may be optimising stuff all over the place. Make sure your running your test in release mode.
Simon
|
|
|
|
|
Ouch!!
I seem to have trodden on someones toes
It was meant to be rhetorical and to see what users preffered and why, not a technical (try timing it!) question.
Oh well, I thouhjt it was interesting...
---
Regards,
Martin.
|
|
|
|
|
'as' is used when the instance you are checking may not of the expected type. E.g Your expecting an 'object' but want it to be a specific type (or maybe one of many types) for a function parameter but the caller may pass in a type you dont want or expect, so you can treat is as null by casting it with the as keyword.
An example of this may be when overriding the Equals method on System.Object
The () cast method is more effecient becuase as compiles down to a set of IL instructions that include checking the type before attempting the cast, or returning null, eg:
Customer customer = null;
if(e.SomeObject is Customer)
customer = (Customer)e.SomeObject;
else
customer = null;
So, I would say 'as' has its place, but its not a replacement for a () cast. Its probably used by certain people becuase they consider it easier to read, rather than actually need to use it.
James
James Simpson
Web Developer
imebgo@hotmail.com
P S - This is what part of the alphabet would look like if Q and R were eliminated Mitch Hedberg
|
|
|
|
|
James Simpson wrote: The () cast method is more effecient becuase as compiles down to a set of IL instructions that include checking the type before attempting the cast, or returning null, eg:
A cast doesn't perform checks or return null. A cast will throw an InvalidCastException if the types aren't castable.
Simon
|
|
|
|
|
the 'as' cast compiles down to the 'is' check
James Simpson
Web Developer
imebgo@hotmail.com
P S - This is what part of the alphabet would look like if Q and R were eliminated Mitch Hedberg
|
|
|
|
|
Ahh...It's confusing talking about keywords like 'as' that appear naturally in sentences.
Simon
|
|
|
|
|
Sorry if I read it wrong, it just seemed like a I can't be bothered to figure it out myself kind of question. (We get a lot of them around here)
No offence intended.
I cast if I know that the type is right, but us 'as' if I need to check. At a guess, I would say the casting is faster if it works, but slower if it throws an exception because it fails. But like I said before, with managed languages all guesses are off really. The only way that you can be certain about it is to test it.
Simon
|
|
|
|
|
Simon:
Certainly, no offence taken
What's more I liked the answer you gave, very informative: Thanks.
---
Regards,
Martin.
|
|
|
|