Difference between ADO.net and Entity Framework
Hi team,What is Difference between ADO.net and Entity Framework?In real time applications, When(in what cases) we should use ADO.net and Entity Framework?
View ArticleHow do I access programmatically the address of the copied selection from the...
<disclaimer> I already posted this question in the VSTO forum, an admin referred me to this forum </disclaimer>All, I searched for hours on the web, without luck, and finally decided that I...
View ArticleThe underlying connection was closed: The server committed a protocol violation.
I'm testing out server 2012 R2 but I'm having a problem with some code using the FtpWebRequest class, I'm getting this server committed a protocol violation error. It works fine on my 2008 R2 server...
View ArticleSystemEvents.PowerModeChanged Not Firing On Sleep On
Hello, I have an VB.NET app that I'm maintaining that relies on the SystemEvents.PowerModeChanged event firing to disconnect from back end services. I created a simple test application which works...
View ArticleRuntimePropertyInfo with Special characters (Danish language)
Hi,I have a problem with the Danish characters. The GetValue() method returns null on that particular property which name consists of special characters from the Danish language. However, if I remove...
View ArticleFileSystemWatcher - How to view the filter type in the event method ?
Using .NET 4.0 in VS 2012, VB.NETHere is the beginning code: Dim watcher As New FileSystemWatcher() watcher.InternalBufferSize = 16384 watcher.Path = "D:\Imports" watcher.IncludeSubdirectories = True...
View ArticleHow to disable double click/ full screen in AxWindowsMediaPlayer
I'm using the Windows Media Player ActiveX control. It all works fine and dandy except for one thing. I do not want the user to be able to double click on the playback window, which causes the video...
View ArticleThe parameter of method Process.Start can not accept relative path starting...
HiI have tried to Process.Start exe file by using relative path like this "./notepad.exe" (starting with slash)But, the FileNotFound exception has occurred, in the fact it exists indeed.Instead of...
View ArticleUriBuilder does not add default http:// scheme if source uri string contains...
Hi all,I am trying to use UriBuilder to parse service address, using constructor as defined in http://msdn.microsoft.com/en-us/library/vstudio/y868d5wh(v=vs.100).aspx :public UriBuilder( string uri...
View ArticleBrowser object focus problem
Hi everyone,I have made an app for a client which does some automation on a website of a stakeholder to get some data from it. Basically, I put a code into a textbox on the website, then an element...
View ArticleTeamviewer Protocol
Hi, I would like to ask what protocol is used for Teamviewr? and how can I make simple application similar to it? Thanks, Jassim
View Article70-533-Implementing-Microsoft-Infrastructure-Solutions material
Hican any one share ebook or material for exam 70-533-Implementing-Microsoft-Infrastructure-Solutions
View ArticlePackaging a MEF application in an App-V package
Hi,My WPF application is using MEF.It's works well but when I package it to an App-V package, it's seems that MEF couldn't retrieve MEF export attributes.It will result an exception...
View ArticleModify process command line parameters after a process has started
I'm just wondering if it's possible to remove a command line parameter of a running process.The reason behind this: My application can be started with parameters like /username:abc /password:xyz The...
View ArticleRelease version of Microsoft.Web.Infrastructure.dll
Recently I found that we were releasing our application with some Debug versions of our assemblies. So I wrote a tool to detect debug versions base off of this article -...
View ArticleCompiler Error Message: CS0246: The type or namespace name 'CartelServices'...
I am hosting my web application into godaddy.com.If i write whole code inside single page then it works fine but if i make it modular and try to use namespace my class library then this error...
View Articlehow to synchronize my timer together with my trackbar c#?
Hello to everyone :Dwell some days ago i have been reading some information about c#, well after that i decided to make a Mp3 player,i have read a lot of information for the "timer" but i haven't made...
View Articleerror while getting an serialised object via binary stream
Hello All,General ScenarioI've been coding a simple chat application. It is supposed to transfer some data from FrontEnd Client (connected to Client's UI) to BackEndClient (created automatically by the...
View ArticleBinaryHeader error
General ScenarioI am coding a chat application; one of the application's tasks is to get the message from FrontEnd Client to BackEnd Client.I am reading the message on BackEnd side with this code:...
View ArticleUnexpect method calls with extentions overloads
Hi,I have the following code void Main() { var a = new A(); a.Foo(1); a.Foo(0); } public enum MyEnum { None = 0, One = 1 } public class A { public void Foo(MyEnum en) { Console.WriteLine("MyEnum"); } }...
View Article