|
Walaza wrote: at Outlook_Drag_Try.ThisApplication.ThisApplication_Startup(Object sender, EventArgs e) in C:\Inetpub\wwwroot\DRAGGER\Outlook_Drag_Try\Outlook_Drag_Try\ThisApplication.cs:line 31
Could you point out this line in your code above?
-----
Formerly MP(2)
If atheism is a religion, then not collecting stamps is a hobby. -- Unknown
|
|
|
|
|
Hi Le Centriste,
This is Line 31:
//if the mail's subject is ecs, open The Dragger Application
LINE 31--> if (mail.Subject.ToUpper().Contains(filter.ToUpper()))
{
//Open The Dragger
MainForm main = new MainForm();
main.ShowDialog();
}
else
{
MessageBox.Show("No New Messages For ECS!!!");
}
Mvelo Walaza
Jnr Developer
Telkom SA
|
|
|
|
|
I would check for nullity of either mail.Subject or filter .
-----
Formerly MP(2)
If atheism is a religion, then not collecting stamps is a hobby. -- Unknown
|
|
|
|
|
Hello everyone,
I just wanted to know if it possible to have number of panels (let's say 4 panels) FILL DOCKED into the same window form. It appears when I dock them the first panel is docked to the Windows Form, the second panel is docked to the first panel which has already dicked to the windows and the third panel is going to be docked into the second panel rather than the Windows Form.
I hope I managed to make sense! )
Is there any way I can have all the panels docked into the Main Windows Form and overlapping one another?
Thank you very much and have a gear day.
Khoramdin
|
|
|
|
|
Hello,
No, you only can dock one control.
Maybe the Anchor property helps you out.
All the best,
Martin
|
|
|
|
|
go with Anchor tag man it will help you.
Regards,
Satips.
|
|
|
|
|
Use the SplitContainer
|
|
|
|
|
If I have more than one version of one assemblies,
then how'll I use old version.
(how/where to specify version number?)in my application?
Rahul Kulkarni
|
|
|
|
|
Edit AssemblyInfo.cs. You will see a line that says something like
[assembly: AssemblyVersion("1.0.0.0")] Change it to whatever version you want.
Cheers,
Vıkram.
After all is said and done, much is said and little is done.
|
|
|
|
|
I'm writing a wrapper for a win32 frame grabber library. When an image is aquired by the grabber my win32 wrapper DLL needs to pass the image data (stored in large WORD arrays) to the C# front end. I'm calling into the managed code from the win32 DLL via a callback delegate when an image is acquired and ideally I would like to pass the image data in this function call as well but i'm unsure as to the best way to accomplish this? I've looked around and found plenty of information about passing arrays and pointers to unmanaged code but not the other way. If possible I would like to minimise any overheads caused by copying the large amounts of data. Any suggestions would be appreciated.
Thanks.
|
|
|
|
|
C# can only work with unmanaged memory through pointers or methods like Marshal.ReadByte(). If you want to have the buffer directly be treated as an array, it must be originally allocated by managed code. One way to do this is to create an array, pin it, get an address to it, and then use that as the data buffer:
short[] buffer=new short[dataLength];
GCHandle handle = GCHandle.Alloc(buffer, GCHandleType.Pinned);
IntPtr bufferPtr = Marshal.UnsafeAddrOfPinnedArrayElement(buffer, 0);
--Justin
Microsoft MVP, C#
|
|
|
|
|
Hi,
I agree: if the native API allows it, allocating a managed array, and passing it
to the unmanaged world is the best way (BTW dont forget to free the GCHandle).
If the API does not support this, and the native function takes care of its own
allocation, then all the data will have to be copied in order to create a managed image;
and of course you then somehow must free the unmanaged memory.
|
|
|
|
|
Hello everyone, im using VS2005, i have a webpage in which i have a FileUpload control, and a Submit button. On the Submit button (.cs)page, i call this line :
FileStream FilStr = new FileStream(FileUpload1.FileName, FileMode.Open);
but at run time whenever i select a file and then click on submit button, it gives me the following exception at the above line of code:
System.IO.FileNotFoundException: Could not find file 'C:\WINDOWS\system32\VS_logo.PNG'. File name: 'C:\WINDOWS\system32\VS_logo.PNG' at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode) at Reports_DynamicImage.btnSubmit_Click(Object sender, EventArgs e) in d:\Projects\RubberDuck\Code\CrystalReportsSolution\CrystalReportsWeb\Reports\DynamicImage.aspx.cs:line 42
plz tell me whats wrong with this, and y its looking the image in the C:|windows as the image is in the Mypictures foders of the My Documents. I includede the using System.IO namespace also but this exception still comes. help me its urgent
reply me asap.
Thanx in Advance.
rida
|
|
|
|
|
It said
Could not find file 'C:\WINDOWS\system32\VS_logo.PNG'
I think your visual studio or system was demaged ,
|
|
|
|
|
I have VS2005 and that image doesn't exist on my system either. How are you getting the path to the image, allowing the user to browse? Perhaps try and hardcode the path and let me know what happens.
There are 10 types of people in the world, those who understand binary and those who dont.
|
|
|
|
|
yes u right, i have a Fileupload control, in this a text box and Browse filed exists, user clicks on the browse button and the path is set into the text box, so that y me using that line of code ::
//string fname = FileUpload1.FileName;
//Response.Write(fname);
//get the image file into a stream reader.
FileStream FilStr = new FileStream(FileUpload1.FileName, FileMode.Open);
BinaryReader BinRed = new BinaryReader(FilStr);
as u see the comments stmt codes when i used this one, or hardcode the path in the FileStream line , it gives me the same error,
plz help me how can i get rid from this.
Thanx in Advance.
|
|
|
|
|
ASP.NET's working directory is C:\WINDOWS\system32\, and besides, you cant use the client path on the server, thats just absurd!
|
|
|
|
|
Hi Leppi ur link not working at my side, this page is not opened.
|
|
|
|
|
Hello everyone,
I have a Window Application which is currently using TabControl to have number of pages with different functionalities and controllers. I was wondering if I can replace the TabControl with something rather like Microsift OutLook "Using Buttons to change the page". I just wish the pages not to have any tab so the page appears to be the only the form.
Thank you very much and have a great day.
Khoramdin
|
|
|
|
|
Hello,
I guess you have to build the UserControl yourselve or look for some comercial controls!
All the best,
Martin
|
|
|
|
|
Hello Martin,
Thanx for the reply, mate. Would you by any chance know of any comercial controls that would be able to produce that?
I have looked into Professional UI Solution and Dev Components and it appears they don't have this kind of control.
Thank you very much for your help.
Khoramdin
|
|
|
|
|
|
Hi Khoramdin,
Have you tried looking at the "Expando" (google it). Its the menu that sits on the left side of the window when you open 'My Computer', thats if you are using Win XP.
Mvelo Walaza
Developer
Telkom SA
|
|
|
|
|
Never mind... I'm just too stupid .
I found the mistake...
|
|
|
|
|
Hello
I am developing an application in C#, in which i am searching the network computers. But it is taking so much time. So tell me how can i make this application fast in terms of speed.
Thanks
Devesh Mishra
|
|
|
|