Hiding window from taskbar in C# with WinAPI
Believe me, I have Googled it and expected it to be a fairly easy find - turns out it isn't. I have my window handle, but no form. How do I do it? Thanks! ...
Believe me, I have Googled it and expected it to be a fairly easy find - turns out it isn't. I have my window handle, but no form. How do I do it? Thanks! ...
As I have been reading up I need to get to some foundation to build safely on When .net takes up a *.dll from within windows it no longer becomes available to .com. 1/ Does this rule mean I loose loadlibray() and GetProcAddress() to load a .net dll like mscorlib.dll. one developer says no, So I'm asking what boundaries do I have. Has d...
I'm trying to inject some inline work as a Statement Lambda into a LINQ query select like so... // NOTE: mcontext.Gettype() == System.Data.Linq.DataContext // Okay - compiles, nothing unusual var qPeople1 = from ME.tblPeople person in mcontext.tblPeoples select person; // ERROR - see below compile Error - Can I retrofit ...
I have finally finished reading Pro ASP.NET MVC 2 Framework Chapter 3: Pre-requisites but still a little confused about lambda expressions. Where could I watch a video on it or read a guide about Lambda expressions with diagrams and pictures to help me better visualize it? /* Thanks */ ...
I have requirement in which I have to back and fort with record. So I am using IEnumerator to that. But I can move forward by movenext but there no way to move back ...
My sharepoint webpart is throwing an error when calling HttpWebRequest.GetRequestStream when the request is made through a proxy server. The error is "unable to connect to the remote server." The client's machine (where this is failing) is set to use a specific proxy server (Use proxy server for your LAN) on IE settings. Do I need to ...
Hello, I have developed a desktop application to be used on Windows Server 2003. It is using SQL Express for the database. I am using the following connection string: "Data Source=.\SQLEXPRESS;" + "AttachDbFilename=" + DBPath + ";" + "Integrated Security=True;" + "Connect Timeout=30;" + "User Instance=True" Here are the results I...
So i'm trying to de-serialize the JSON returned from the Graph API OAuth Token call. The JSON looks like this: "[{\"access_token\":\"bunchofjsondatablahblah",\"expires\":9999}]" I'm trying to de-serialize it (using the DataContractJsonSerializer class) into this object: [DataContract] internal class FacebookOAuthToken { [Dat...
I'm trying to catch an Exception when an invalid value gets stored into a DataRow. I'm reading the values from a text file so anything could be stored there. I was hoping to be able to catch an InvalidCastException from the following code... try { // Store the values into the Data Row DataRow row = dataset.Tables["Table"].NewRow()...
I see there are 2 possible scenarios as to the session handling: Open one single ISession per request. Open it at request start and close it at request end. Open one ISession per conceptual "unit of work". Many sessions are created for a request. The approach #1 is the one I'm doing now. I'm a little bit worried about it because, alt...
I'm looking forward to write a ASP.NET website which is using JSON to interact with a webservice. JSON.org gives me some choices, but I don't know which is the best, and is there some good libraries that not listed? Thanks in advance. ...
I am trying to create an instance of an object inside of an AppDomain. With the below code, I get an Exception "Type is not resolved for member" Here is the code: private T GetInstance<T>(AppDomain domain, params object[] constructorArguments) { string assemblyName = Assembly.GetAssembly(typeof (T)).FullName; string typeName =...
I have developed some software with no database. I want to create an .exe of my .Net project so I can give only the .exe file to users to use the software. Unfortunately I don't know how to create an .exe of my project in .Net. Does anybody have guidance for this problem? ...
Type 'ProblemType' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. See the Microsoft .NET Framework documentation for other supported types. I have a class with very little in it. When I try to serialize the cl...
i have the following class: class MyClass{ { and the following string: string s="MyClass"; how can i get the Type of the class using string s as such: Type t = typeof(MyClass); //but i need to use s instead. i have already tried Type type = Type.GetType(s); //the result is null ...
I have added items in a combo box using datatable and rows. First it returned the value, and now it's returning dataRow. I don't know the reason why it's returning like that. Can anyone help? string selectedValue = cbx_language.Text.ToString(); ...
Hello, Recently I've read article "The Entity Framework In Layered Architecture" and there is written we can send EF-entities to client through WCF. But in many threads on Stackoverflow people tell that POCO(DTO)-objects should be used when we use WCF. And I have some questions. Why did Microsoft add DataContract attribute to EF-enti...
I have a COM interface method definition in IDL as follows: [id(8)] HRESULT GetBinData([in,out,size_is(dataLen)]BYTE data[], [in]LONG dataLen); It is mapped automatically to this .NET IL code (note that no MarshallAs LPArray is used on data): .method /*06000021*/ public hidebysig newslot virtual instance void GetBinData([in][o...
Hi All, Basically I am trying to make a localized copy of an existing English msi file. If I rebuild the MSI with proper wxl file n code page it takes a long time, and I need my installer in more than 25 languages. I am able to access all other local strings like text on controls n all but I couldn't find the way to change the error tabl...
Hi I'm currently working with creation and validation of XBRL instance documents in C#, and I've run into some problems regarding the XBRL instance schema file: http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd According to the .NET schema validator, the schema is not valid. It throws the following exception: System.Xml.Schema.Xm...