|
|
Hi,
I'm tryig to add a project reference to Microsoft.ServiceModel.Channels.dll, specifically to access the UnSupportedOperationException exception class. However, I can't see it in the list of .Net references. I'm surprised not to find this dll in the frameowrk list. Can someone explain what I should be referencing in order to access UnSupportedOperatinException?
Regards,
Dave
|
|
|
|
|
This DLL is only available in .NET 3, .NET 3.5 or as addon functionality in .NET 2. What version are you using?
|
|
|
|
|
I'm using .Net 3.5 so it should be there. I'm wondering whether there's something about my project config that's getting in the way that I'm not aware of. Target framework is marked as 3.5 but perhaps there's more I need to consider...
Regards,
Dave
|
|
|
|
|
I believe you need to download this[^].
|
|
|
|
|
Hi,
I am trying to add a plugin/add-in to Visual Studio 2008. But my limitation is, this application is in Java 1.6.
So, I was wondering is it possible to add a java based plugin in Visual Studio 2008? Are there any APIs?
Regards,
Manish
|
|
|
|
|
Take a look at www.ikvm.net. That might help though i expect the newness of the java release will cause issues.
Regards,
Dave
|
|
|
|
|
|
does anyone know what, if anything, is going on with the MAPI33 wrapper [site]?
I've been doing some research on Extended MAPI + .NET and came across this library (and it seems to suit my needs well)
at www.mapi33.adexsolutions.com but didn't download the trial or docs, and now it seems to be gone..?
it redirects to valuehost.ru; i would guess that maybe they've exceeded bandwidth on the colo/hosting plan, or something similar, but since i don't speak russian, and most of the text is actually images (no babelfish translations)
does anyone know if this library has been discontinued/abandoned? there is always the Outlook Redemption lib, but it seems like the MAPI33 was a bit more complete/robust.
thanks -
|
|
|
|
|
How to fetch and edit the properties of a File Type.
For eg: If the File type is ".txt"
Name of the default application associated.
Icons associated with this file type.
Is it possible using .NET Framework Managed Code?
Thanks,
Nagaraj
|
|
|
|
|
All this information is stored in system registry. You can either call registry methods directly or write a class that wraps low level registry calls into high level methods.
|
|
|
|
|
The easiest way would be to create an .msi installer that automatically associates the said filetype with that of the installed application. The other way would be: go through registry as previous CP member mentioned. Be sure your application has the proper administrative priviledges if you plan to alter the registry.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
there are two datetime peaker contains date
and twao textbox contain time in float eg.1.4,1.5
and suppose date1 is 01/12/08 , time1 is 10.00 am and date2 is 03/12/08 , time 2 is 15.00 pm
i want calculate the total hours from date1 to date2.
neha
|
|
|
|
|
Try not to cross post[^]. It's considered bad form.
Simon
|
|
|
|
|
The MSDN documentation states that the Reset method 'Resets the DataTable to its original state'
Now I may be a bit paranoid here thinking there could be a few interpretations of 'original' but here goes.
Does anyone know what is classified as the 'Original State'?
If the datatable contained data and then the Reset method was called. Do they mean it is the state when it was declared which has the structure of the datatable object but no data, or some other state?
|
|
|
|
|
It's the state that the original records were in before any changes were made. It basically throws out all the changes to the dataset/datatable it's called on. So, if you have a bunch of records in a databtable, let the user makes changes, you can throw out all the changes by calling Reset. If you call the Update method on a dataadapter, it will look at all the changes that have to be made, as tracked by the datatable, and update the database with each change appropriately. Reset throws out all those changes before you can attempt to update the database.
|
|
|
|
|
Hi, not sure where to post this. I'm developing for VB.NET, but I guess any answer would be of great help, so I'm posting it here.
I would like to obtain the colors used by the current visual style (specificly the two colors used in the gradient on the left side of the a menu, if thats of any importance).
I've found the color used around textboxes here System.Windows.Forms.VisualStyles.VisualStyleInformation.TextControlBorder, but i can't make any sence of the rest of this namespace.
The only solution I've found for this so far is to actually read from the registry or the msstyle file, wich I believe is not a very good solution. There must be some .NET or API way to do this.
|
|
|
|
|
I would hope the SystemColors class provides that kind of information.
|
|
|
|
|
Nope. It doesn't. SystemColors provides the theme colors, or whatever they call them, wich most of arent even used when a visual style is applied. I'm after the visual styles color scheme.
|
|
|
|
|
|
Did you read my reply to Luc at all?
SystemColors contain only system colors. They're used for theme Windows, and this set of colors have been there since Windows 3.0. Themes and visual styles however, are two completly different things, and many of the system colors aren't even used when a visual style is applied. Most of the visual style consists of images but some elements are built such as the menus and toolbars used (for the first time) in Office 2003, are drawn using a color scheme. A visual style, like the default one in Windows XP, can come with many color schemes. These color schemes are NOT editable by the user, wich the system colors are. These elements seems to be built into Windows, or more likely, into .NET, so that we can build beautifully looking applications. To make my application even more beautiful I want to use some of the colors from the color scheme elsewhere, and so I need to obtain them somehow. As i said, this can be done through the registry, but this is somehow complicated, or finding the applied visual style and reading the source files -- wich would be a stupid way of solving this. Many of Microsofts own applications seems to be using these color schemes, so I'm still wondering if they ar obtainable through .NET (preferably) or through APIs?
And once again, I'm specificly looking for the colors used in the gradiend to the left in the menus. These colors are NOT present in the SystemColors class. Prove me otherwise if I'm wrong, don't just say they are, becouse I can't find them, and they do not seem to be documented by Microsoft.
|
|
|
|
|
|
I have recently moved from .NET 2003 to .NET 2005.
I have written a simple application, re-using some code from a .NET 2003 project.
The program runs fine in the .NET 2005 development environment.
I have now created a setup project to produce the two setup files.
When I run the setup files on a different machine the program installs ok.
But when I run teh program I get a JIT window with message:
An exception 'System.InvalidOperationException' has occurred in ChordFinderAssembly.exe.
I have searched the internet but cannot find any suggestions appropriate to my problem.
Can any one help?
Roel.
|
|
|
|
|
Member 1871720 wrote: I have written a simple application
Member 1871720 wrote: But when I run teh program I get a JIT window with message:
An exception 'System.InvalidOperationException' has occurred in ChordFinderAssembly.exe.
Member 1871720 wrote: Can any one help?
Help with what? What do the log files your application is generating say about the error?
led mike
|
|
|
|
|
You gotta try and at least find out where the problem is occurring. Add logic to log what's going on or at the minimum put some msgbox statements in the CTOR, load, activate, etc to narrow down where the problem is happening.
From there, you can narrow it down to a specific stanza of code. Cheers!
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|