|
From menu bar select Action - Add - File
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
Thanks Sylvester,
But my problem is that I already had an msi package(which is an installer) and i want to
add that one to my setup and deployment project. When I want to install my setup project the msi package also should be installed so that i don't have to install that msi package once again by cliking on it. I added the msi package(installs when we click on it), but my project is copying that package and placing it in the specified location. Once again i have to do double clicking on that package to install it.
Is there any way to remove the last step (Once again i have to double click that package to install it).
regards,
Naresh Nelluru
|
|
|
|
|
When I run my outlook addin I get an exception with the following exception:
'An unhandled exception occurred in your application. Contact your administrator or the author of this document for futher assistance.'
Can anyone please help me determine what is causing the exception.
Mvelo Walaza
Jnr Developer
Telkom SA
|
|
|
|
|
Hai everybody,
What is the purpose of tag in the controls?
I am having a tree view in that i am listing the products by means of a product name and while clicking on it i have to edit the product, for that i require product id but it should be hidden in the tree view can i use the tag to store this.
Please give me a solution.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
The Tag is a free place where to store user data. You can do whatever you want with it.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
I'd often store values from an enum, that relate to selections being made, etc.
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 all
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
we can do whatever you want it inside the tag control
Regards,
Satips.
|
|
|
|
|
Hi everyone,
I developed an Outlook Addin that is supposed to open a certain application depending on the subject of the Email that I receive. The app works fine but after clicking OK to all MessageBoxes, I get the ff error:
Object reference not set to an instance of an object.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
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
at Microsoft.Office.Tools.Outlook.Application.OnStartup()
at Outlook_Drag_Try.ThisApplication.FinishInitialization() in C:\Inetpub\wwwroot\DRAGGER\Outlook_Drag_Try\Outlook_Drag_Try\ThisApplication.Designer.cs:line 65
at Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.ExecutePhase(String methodName)
at Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.ExecuteCustomizationStartupCode()
at Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.ExecuteEntryPointsHelper()
at Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.Microsoft.VisualStudio.Tools.Applications.Runtime.IExecuteCustomization2.ExecuteEntryPoints()
************** Loaded Assemblies **************
Here is my code:
string filter = "ecs";
Outlook.NameSpace outlookNameSpace = this.GetNamespace("MAPI");
//Outlook.MAPIFolder inbox = outlookNameSpace.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderInbox);
Outlook.MAPIFolder inbox = this.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox);
/*Retrieve and count unread messages from Inbox */
Outlook.Items items = inbox.Items;
Outlook.Items unreadItems = inbox.Items.Restrict("[Unread]=true");
MessageBox.Show(string.Format("The number of Unread items in Inbox = {0}", unreadItems.Count));
// If the mail item matches the specified filter,
// open The Dragger application
foreach (Outlook.MailItem mail in items)
{
//if the mail's subject has ecs, open The Dragger
if (mail.Subject.ToUpper().Contains(filter.ToUpper()))
{
//Open The Dragger
MainForm main = new MainForm();
main.ShowDialog();
}
else
{
MessageBox.Show("No new messages for ECS!!!");
}
}
Please help...
Mvelo Walaza
Jnr Developer
Telkom SA
|
|
|
|
|
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.
|
|
|
|