Is there a way to find out about a png image transparency by reading the image header?
Is there a way to find out about a png image transparency by reading the image header? ...
Is there a way to find out about a png image transparency by reading the image header? ...
I have a Menu control implemented on a ASPX page. I extended the MenuItem class so that when you create it you can pass in the command (initialized with its handler) so that when you click a specific MenuItem it automatically knows what event handler to go to. This allows me not to code a switch statement for the OnMenuItemClick logic. ...
Hi, I'm starting a project using EF 4 and POCO. What is the best practice for sending data to the client ? Should I send the POCO or I should have a DTO instead? Are there any issue I should be aware of when sending the entity (that is disconnected from the context) to the client ? Is it a recommended practice to send the POCO to ...
I have a custom event and want to attach a property (a string would be fine) to it. What do I need to change in my code: public static readonly RoutedEvent ModelClickEvent = EventManager.RegisterRoutedEvent( "ModelClick", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(InfoBox)); // Provide CLR accessors for ...
For example I have Assembly1.dll (1.0.0.0) and Assembly1.dll (1.0.0.0), in differents folders and I want to compare differences (if each assembly has the same Classes and each class the same methods, or compare all MSIL code). any APIs for do this? There are tools, like this http://stackoverflow.com/questions/652432/compare-compiled-net...
I would be interested to know if there is any way for a script to obtain a list of available methods/functions within a Windows Script Host (VBScript) being hosted by some parent application? If it was a .NET app, it would be using reflection, but I'm not sure if there is anything similar for WSH. ...
In a book I found following (translation): Initialization means assigning the value of the variable at the declaration time. int X=5 is called an initialization command. EDIT: It just says that term initialization is used only when you assign value at the declaration time. If you do it later, its just assignement (according to it -...
I am receiving 3144 bytes of data through TCP/IP socket during debug mode, but in excecution 1023 bytes were received. Why isn't the remaining data read? IPEndPoint ipEnd = new IPEndPoint(ipAdd, ipPort); Socket soc = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); soc.Connect(ipEnd); byte[] sendData = Encodi...
I know it probably doesnt matter/affect performance for the most part but I hate the idea of getting an IEnumerable and doing .Count(). Is there a IsEmpty or NotEmpty or some function? (similar to stl empty()) ...
Hello. I'm attempting to make transparent a ReportViewer on InternetExplorer. It works fine on Firefox but it doesn't on Internet Explorer. It shows a white background. On Firefox it shows the background with an alpha and you can se the background image but on Internet Explorer it doesn't works. Here is the URL: www.incolmotos-yamaha.c...
I admire the excel "insert comments" cell option. I would like to reproduce this in my datagridview in .net 2.0 using c#. Could somebody give me an idea as to the approch I should take on creating the edit box. Thanks c# winforms, .net 2.0 ...
Hello everyone, I am using VSTS 2010 + C# + .Net 4.0 + IIS 7.5 + Windows 7. When I open an svc file (in IIS manager, right click the svc file and select browse) for a WCF project in IIS, there is an error like this, any ideas what is wrong? This type of page is not served. Description: The type of page you have requested is not served...
HI, Windows provides descriptions for file extension such as "Control Panel Item" for .cpl files and "PowerISO File" for .daa files. Is there any way I can obtain this data in .NET ? Im using C# but can read all the other .NET languages. Also is there a way to obtain the default icon of the extensions as well ? Any help would be appreci...
I have a problem with nHibernate projections. I don't even know if what I'm attempting can be done but if any nHibernate experts can help me I'd be grateful. I'm using nHibernate criteria to query a database and I'm returning the result projected to a different (slimmed down) object. I get a list of returns like Id CompanyId Descr...
If I create a thread that starts a process and later abort that thread, does the process stop executing as a result of the thread being aborted ? ...
I have written a WinForms program in C# and left the default font for all form controls (labels, checkboxes...) (The font is Tahoma I think, not sure though). When I compile the program and then run it on a Japanese language computer, all the fonts switch to "MS UI Gothic" (a Japanese font). Is there anyway I can force the font to be th...
I am a lot of difficulty finding a way to query all RDP sessions using .net. Anyone know of a way to return this data without having to parse the results of a qwinsta.exe call? Currently i am using the qwinsta method, but this is returning some very unexpected results when querying different os installations (2003/2008/2008r2 etc.). ...
I've got a FlowDocument and assigned a name to one paragraph. I want to edit the content of a paragraph (which is just one ordinary string btw.). How to do this? ...
Hi There is the enumerable extension method Take<TSource>( IEnumerable<TSource> source, int count ) which takes the first count elements from the start. Is there a way to take the elements from the end? or even better a way to take the elements from an offset to the end? Thanks ...
Looking for a little advice on leveraging AsParallel() or Parallel.ForEach() to speed this up. See the method I've got (simplified/bastardized for this example) below. It takes a list like "US, FR, APAC", where "APAC" is an alias for maybe 50 other "US, FR, JP, IT, GB" etc. countires. The method should take "US, FR, APAC", and convert ...