|
Hi
We are developing Mail tool,
One of the part of this mail tool is to identify the history of mails for one particular email Id
Actually we use webdav search method, to fetch the unread mails from
exchange server and update the status as read, the fetched mails are
inserted into sqlserver table.
Our Problem is.
How to identify the thread mails,
How to differentiate the thread mails to normal mails
How to group by the thread mails
How to identify the first mail in the thread.
Regards,
Arunkumar S

|
|
|
|
|
Hi all,
I'm fairly new at C# and application development in general (I was trained as an embedded systems engineer...). Recently I've had to use C# in the development of a prototype .NET user interface. The old, unmanaged C++ version of the interface made use of a controls library which had specialised int/double text boxes which I emulated by manipulating the Textbox's KeyPress event. Because I find myself using this control in so many dialogues, I've been trying to look for a way to creating a class which inherits from the Forms.Textbox class which I can add onto the Designer from the Toolbox (I should add at this stage that I am using MS Visual Studio 2005).
Any help will be greatly appreciated
cheers!
|
|
|
|
|
You should have no problem with this - its quite straight forward.
All you need to do is create a class and derive it from the TextBox. Then you can override the OnKeyPress/OnKeyDown event(s) as necessary and do whatever work you would usually do against each instance.
Here's my simple example to get you started... it just MessageBox's every character you type.
public class AnnoyingTextBox : TextBox<br />
{<br />
<br />
protected override void OnKeyPress(KeyPressEventArgs e)<br />
{<br />
MessageBox.Show(e.KeyChar.ToString());<br />
base.OnKeyPress(e);<br />
}<br />
}
|
|
|
|
|
Thanks for that...
I'll get cracking straight away on creating the class derived from Textbox, but when I am done how do I add this to the list of controls (the 'Toolbox' in Visual Studio 2005) where one can drag and drop controls onto the WYSIWYG designer? It's just that it's much easier to be able to do this when designing a dialogue rather than to manually type in the numbers and *hope* you get it in the right place...
cheers!
|
|
|
|
|
I found a pretty good article describing what has to be done to extend MS Visual Studio's toolbox: http://symbian.sys-con.com/read/113332.htm
cheers!
|
|
|
|
|
Hi All
I create an FTP Application to download data from ftp.I want to calculate estimated download time but i don't know "how to get estimated download time". If any one know please help me
thanx & regards
SMK
|
|
|
|
|
You estimate it based on how much you still need to download, and how much you're getting per second.
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 )
|
|
|
|
|
Thanx for reply, but i got the solution in c#
Thanx & Regards
SMK
|
|
|
|
|
Hi All,
I'm implementing drag/drop in my windows forms 2.0 / c# application.
In my control's MouseDown event handler, i'm calling DoDragDrop appropriately. But, the call to DoDragDrop seems to prevent other mouse events (MouseClick, DoubleClick, etc) from firing.
Is there a way round this? I need to be able to distinguish between a mouse-down drag starting event and a double click.
Thanks
Jon
|
|
|
|
|
I was doing something similar to what you are doing using DragDrop for a TreeView control and trying to use Click, Double Click, etc. and I found no way around it.
Hope this helps
Mike
Theres light at the end of the tunnel. Lord I hope it ain't no train!
|
|
|
|
|
Hi Mike,
Thanks for your post. If you're interested, i found the solution.
You're not supposed to call DoDragDrop from the MouseDown event. Instead, you should use the mousemove event, and call DoDragDrop where the L button is down and the mouse has moved outside of the rectangle centered around the point that the mousedown happened, of size SystemInformation.DragSize.
This example http://msdn2.microsoft.com/en-us/library/system.windows.forms.control.dodragdrop(vs.71).aspx[^] demonstrates the method perfectly.
I hope that helps you.
Jon
|
|
|
|
|
Jon,
My first thought was ahhh so thats how to do it and then it went to duhhhhh!
Thanks for the response I'll definatly use that.
Mike
Theres light at the end of the tunnel. Lord I hope it ain't no train!
|
|
|
|
|
Is there any possibility to enable scripting in internetexplorer using c#
Thanks In Advance
|
|
|
|
|
You mean via ASP.NET, or when you have a client app running on the target machine ? If the latter, then perhaps, but I doubt it. If the former, then, no way. Your C# code is never going to run on the client.
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 )
|
|
|
|
|
Thank you for that response.My problem is i have to navigate to a link in a new browser on click of an image, code for that in page_load event like
strURI = window.open('test.aspx',null,'location=yes',null)
"imagebutton.attrubutes.add("OnClick",strURI)",
if the java script is disabled in the browser how to achieve this?
Thanks In Advance
|
|
|
|
|
Please provide me any possible solution.....
Thanks in Advance
|
|
|
|
|
I am not usig ASP.NET but from my experience with php I can say this:
You have two solutions. The first is to generate the web page as shown to the user in the server. In the generated page, avoid using JavaScript, but create hard coded links.
The second solution is to detect that JavaScript is blocked (I am sure you can find the techniques on one of the many JavaScript sites) and kindly ask the user to switch JavaScript on.
Fortunately you cannot switch JavaScript on at the server side. This would cause a serious security leak for clients that chooses to block JavaScript. I think this is a reason why server side scripting is far more attractive than client side scripting.
|
|
|
|
|
Thank you so much for the info.Can you just please give me any links for the java script sites.
Thanks in advance
|
|
|
|
|
Thank you so much for the info.Can you just please give me any links for the java script sites.
Thanks in advance
|
|
|
|
|
For this purpose you do not need this forum. Google will do.
|
|
|
|
|
The best way is to build your link the normal way, with a button or anchor tag.
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 )
|
|
|
|
|
Hi all, I have a .net remoting system (server, client and remotable object). Now I need the client to be able to call a remote object method passing an object by reference as a parameter. That object is a class written by me and inherits from MarshalByRefObject, but I don't know how to set the configuration file: it keeps giving me security exceptions... The examples found over the internet didn't help me much. Someone could help me?
The actual exception message is:
System.Runtime.Serialization.SerializationException: Because of security restrictions, the type System.Runtime.Remoting.ObjRef cannot be accessed. ---> System.Security.SecurityException: Request failed.
at System.Runtime.Serialization.FormatterServices.nativeGetSafeUninitializedObject(RuntimeType type)
at System.Runtime.Serialization.FormatterServices.GetSafeUninitializedObject(Type type)
...
Thank you,
Alessandro
|
|
|
|
|
Just see : http://msdn2.microsoft.com/en-us/library/ms973907.aspx
Return to innocence
|
|
|
|
|
Hi, is there any way to position a background-image on the toolstrip or menustrip control in any other way then BackgroundImageLayout.none, tile, center, stretch or zoom? Say for example I want to position a small img to the right of the control, how can I do this?
/thanks
|
|
|
|
|
hi..
i need a regular expression validator for email in aspx form
Revathi Raj
|
|
|
|