Quantcast
Channel: .NET Framework Class Libraries forum
Browsing all 8156 articles
Browse latest View live

How to write a .Net desktop app using HTML5 for the UI?

I've written many .Net apps using Winforms and many more using WPF for the user-interface framework.  But Microsoft has been hinting rather strongly that they expect HTML5 to be used for future...

View Article


Regarding Microsoft's OpenSource plans for .NET Framewok

Hi!First some background: We are developing an application based on Microsoft.NET. The application is written entirely in C# and the GUI has been created with WPF/XAML. Currently, the application...

View Article


Bitmap.LockBits Method throws "System.ArgumentException" saying "Parameter is...

The program breaks at the Image.LockBits(new rectangle(x, y, width, height), ImageLockMode.ReadWrite, Image.PixelForma) method with the exception I mentioned in the title. I checked the image format...

View Article

TransactionScope

hi experts, I got a wired problem need your help. I have nested transactions. The outer method calls an inner method SaveChangesToSource that opens another transaction scope. Actually I know my...

View Article

Null reference exception using Microsoft.Unity on DisposeOfChildContainer()

I am working on mvc application which also has webapi. Application is throwing System.NullReference Exception in production. (MVC 5, WebApi 2.0, .Net 4.5, Unity 3.0) Error...

View Article


windows task scheduler - %1 is not a valid application

hi all,i developed a windows application with only one for. on that form load event i written some program, thats all (no other events, no other forms)then i build and install in my local laptop, then...

View Article

changing the GUID while creating a package

Hi Folks, Is there any way  to do automation process to  changing the GUID while creating a package (.net or sharepoint), Please let me know and assist me,if  have any material available  about...

View Article

How to handle - A first chance exception of type...

Hello friends,I am in a big trouble .I m building an application which use speech Recoginiztion. I m getting  "A first chance exception of type 'System.InvalidOperationException' occurred in...

View Article


Multicast Delegate example on MSDN

If you look at the example of Multicast delegate under delegate in c#, they are creating multiple instances of the delegate and invoking them separately. Does it look like multicast delegate? Of...

View Article


Custom Printing

Well,Things are working just find in my printer designer and I am trying to figure out a few minor details.FirstMy application is full screen, so everything is hidden. My forms (3 of them) are listed...

View Article

Urgent: Printing Images in scale

Okay,Simple, PrintDocument.PrintPagePrintPageEventArgs.GraphicsImage (Bitmap);PageBounds are 0,0,152,100Image Size is 113,113If I use:e.Graphics.DrawImage(image, 0,0);it prints the precise scale, but...

View Article

How to find and remove a string with multiple double quotes inside

I'd like to remove the following text string between these two tags:</ArrayOfMachineProperty>" TargetedMachines="{x:Null}" Serial="False" Description="UDS-ApplyGoldStandards" ActivityId="0"...

View Article

EventLog.EntryWritten firing for events in the past

Hello - I have a windows service that will setup a delegate for the EntryWritten event. My understanding of this event handler is that it will only fire when an entry is written to the event log....

View Article


Refresh rate for logicaldisk - free megabytes (performancecounter)

The time interval for the PerformanceCounter("LogicalDisk", "Free Megabytes") counter appears to be 300 seconds.Calling .NextValue() repeatedly within this five minute interval will yield the same...

View Article

What is VB6's Licenses.Add equivalent in .NET(C#/VB.Net)

Hi,Can you please help me out to find the equivalent VB6's Licenses class in .NET?Basically VB6's Licenses.Add method returns the license key of ActiveAx control which is being dynamically added into...

View Article


Deploy Web Service Class Library

Dear AllI am new to web service.  My college left my company and I need to pick up his work to create a new web service.I found that the project is a class library which include interface and...

View Article

namespace not recognized (even though it is there) in c# console application...

and this is error Program.cs(9,7): error CS0246: The type or namespace name 'Newtonsoft' could not        be found (are you missing a using directive or an assembly reference?) Program.cs(10,7): error...

View Article


Entity Framework - Execute Stored Procedures

I want to execute stored procedure using entity framework.I am using entity framework 6.The stored procedure has SELECT and RETURN statement.How can I read the output from SELECT and RETURN statements...

View Article

MemoryStream.Close()

Why can I use the method of 'GetBuffer()' after I have closed memoryStream. Code like this: static void Main(string[] args)        {            MemoryStream stream = new MemoryStream();...

View Article

Loading assemblies using Reflection when dependant dlls are missing.

Hello All,I've created a sample WinForms application where I upload a dll (present in my local machine). I just need to read the public types (classes) defined in the assembly. So I've used the...

View Article
Browsing all 8156 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>