|
Hello,
I think you have to call the Sort method of the InnerList property.
There you have to pass an instance of a UserComparer class inheritet from IComparer.
For excample, if your Request class has a Name property which you whant to use for sorting:
public class YourComparer : IComparer
{
int IComparer.Compare( object x, object y )
{
Request request_x= x as Request ;
Request request_y= y as Request ;
if((request_x!=null)&&(request_y!=null))
{
return( (new CaseInsensitiveComparer()).Compare( request_x.Name, request_y.Name ) );
}
else
{
return 0;
}
}
}
Hope it helps!
All the best,
Martin
|
|
|
|
|
I am working with a mobile device. I have a 3GPP video file with the extension .3gp. I want to read the first frame of the video file which contains the format, header realted infos. I want to dispaly the same with as jpeg or gif extension. Can anyone help me regarding this. If anyone is having any source code for that or if anyone can suggest any open sources for this then it will be great.
Thanks & Regards
Ramanath Panda
Ramanath Panda
Bangalore
|
|
|
|
|
Hi,
I have a print preview control that works fine. I've added a tool strip button to allow the user to change the printer settings, this button loads up the PrintDialog.
What i want to do is if the user changes the page layout to be landscape, once they click apply it should redraw the preview. The problem is, how do i fire the PrintPage event to redraw the preview?
Regards,
Gareth.
|
|
|
|
|
I found out on the MS forums that i needed to use: PrintPreviewControl.InvalidatePreview();
Regards,
Gareth.
|
|
|
|
|
Hi
I am doing an application in which I am using a XML file to populate a datagrid.
In that XML file I have one like.....
1.To generate leads efficiently and profitably.
2.To ensure that all details are collected in one call.
3.To provide email and chat support.
4.To manage Work Basket reports as required.
5.To meet targets for both quantity and quality.
When I am trying to populate this column onto datagrid, all these lines or sentences are getting combine and displaying like a paragraph.
I want to know how to format this column to get them in the a new line
Thank u
Chandu
|
|
|
|
|
You could try to add the newline escape (\r\n) chars where you need a new line. I do not know if this will work though.
|
|
|
|
|
Hello,
I have big problem.Please help me.
I playing video with QuartzTypeLib.Video frame are drawing in panel component
and I need drawing my picture(rectangle) on an video.But I dont know which event is calling redrawing frame.
I use protected override onPaint but this metod is call only first time and my picture is redrawing with video frame
How can I do?
I'M beginner in C#
|
|
|
|
|
It's a *lot* more complicated than that. Video is played for you by DirectX, or perhaps another library, and you need to hook into that, the paint event has nothing to do with it.
There's info on the web, it can be done. I am not familiar with QuartzTypeLib, why are you not using the Windows Media player ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
Mh...
I use WMP is same how Quartztypelib or in DirectX is simples?
Can I do with Dx SDK?
I'M beginner in C#
|
|
|
|
|
Hello together,
has anybody an idea how I can check with C# if the Oracle client is installed at the computer?
Greets
Patrick
|
|
|
|
|
Check for registry entrys.
Regards,
Gareth.
|
|
|
|
|
Which ones?
Greets
Patrick
|
|
|
|
|
Has nobody an idea? How do I get the version of the installed ORACLE client from C#??? Please help, it's urgent. Thanks for your help.
Greets
Patrick
|
|
|
|
|
How to write code to install database into SQL Server ?
-- modified at 4:26 Tuesday 22nd May, 2007
|
|
|
|
|
What do you mean by install?
Do you want to create a database?
|
|
|
|
|
I think he means attaching a database
|
|
|
|
|
was it write a cookies?
if it was write a cookies,
How do write and read?
please give me directions, thanks.
|
|
|
|
|
Windows application or ASP.NET?
Windows application could be done several ways, you can write an encrypted file with all the login information, system registry(better not to), or store it in the application settings. I would suggest the first solution.
ASP.NET/ASP, then you would use cookies.
To do the reading/writing of a file, use FileStream , and StreamReader/StreamWriter .
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
I am using an xml and in that childnodes have one attribute which is optional, so that attribute may be present or not.
in front-end from c#.net 2005 i am reading that attribute, when it is not present it giving exception.
so how to find that there is no attribute for that childnode in runtime.
Thanks in advance
PraveenKumar Palla
|
|
|
|
|
Hello,
I think Reflection is what you are looking for.
The way from the object to the Attributes would be like this.
using System.Reflection;
Type t = yourObject.GetType();
foreach (PropertyInfo pi in t.GetProperties())
{
if(pi.PropertyType.Attributes & TypeAttributes.Serializable)
{
}
}
using System.Reflection;
Type t = yourObject.GetType();
object[] AllAttributes = t.GetCustomAttributes(true);
Hope it helps!
All the best,
Martin
|
|
|
|
|
just test for null. eg.
XmlDocument oXML = new XmlDocument();
oXML.LoadXml("<root><name id='1' value='ggg' value2='ttt'/><name id='2' value='erer'/></root>");
XmlNodeList nl = oXML.SelectNodes("//name");
foreach (XmlNode n in nl)
{
if (n.Attributes["value2"] != null)
{
}
}
|
|
|
|
|
when the below statement is executed then only getting exception(i.e. focusing to catch())
if (n.Attributes["value2"] != null)
|
|
|
|
|
Hi.
How do you do what I've already written in the title? Can it be done?
Thanks.
|
|
|
|
|
yourlabel.BackColor = System.Drawing.Color.Transparent;
|
|
|
|
|
Thanks, but for some reason it doesn't seems to work. I've placed my label on top of a ToolStrip, which has the basic gradient drawn on it. I've set the label's color to transparent, but it still shows the default grey(Control) color.
|
|
|
|