What is the Difference Between Convert.Int32() and Int32.Parse()?
I Have some confusion while using Convert.Int32() and int32.Parse(). When we use Convert.Int32() or int32.Parse()... ...
I Have some confusion while using Convert.Int32() and int32.Parse(). When we use Convert.Int32() or int32.Parse()... ...
I am using Spreadsheetgear to create and modify charts. I can create a chart and modify the data easily, however, I cannot seem to modify the orientation of text the way that I want. The text lies on the x-axis and I am trying to get it to display at a 45 degree angle. I can do this manually by right clicking on the chart and manual...
I have an Iphone application that will POST a picture in a NSData how would I read the image when it gets back to the server? I will be using asp.net to POST to. ...
We have implemented some custom tooltip-drawing code that fires on Tick events of a timer. Whenever this event fires, we check to make sure our control is visible (this.Visible) and is the foreground window (GetForegroundWindow()). The problem we are having involves "always on top" windows like Task Manager or Process Explorer (when the...
Hello, I would like to clone a UltraGridRow into a new instance of UltraGridRow and change two cells only. Then I would like to add this new UltraGridRow instance to my Band. I am seeking a way to not have to go through each Cell one by one to copy them into the new instance. Is there any intelligent and effective way to do this? Man...
I've been supplied a web service by a colleague that I tested by creating a quick .net3.5 project. the service exposes a simple method that returns a DataTable and everything works just fine. The production project is .net1.1, though, and I get a runtime error on the line that creates the web service object: The XML element '' from n...
I'm aware of writing custom attributes that decorate a method and get evaluated before the method executes, but is there a way to modify it so the attribute gets evaluated after the method gets executed? Theoretically (in pseudo-code): public void MyMethod() { Console.WriteLine("Hello World"); } [AttributeToExecuteAfter] Am I mi...
I am looking to duplicate functionality of a site I frequently use to purchase my own organic food and vitamins (http://www.iherb.com) whereby for users on the first order, they receive $5 off along with free shipping. If you enter the coupon code: GOV193 you get the $5 off. Likewise, you can generate future discounts based on the code...
Looking for a Smalltalk compiler that given Smalltalk (Instantiations) will emit either Java bytecode, .NET CLR or Ruby. Not looking for porting utilities as I want to leave the application in Smalltalk. I have googled for solutions and ran across a company who had a website (http://www.smalltalkmigrations.com/) but it seems as if they ...
I see code like the following in several books and examples online. The problem is they all feed in a single method into a dictionary object which requires two. IDictionary statistics = connection.RetrieveStatistics(); Which returns the IDE error: Error 1 Using the generic `type 'System.Collections.Generic.IDictionary<TKey,TValue>'...
How do I get the namespaces of specific nodes in the OpenXML standard? Here is an example of using them: NameTable nt = new NameTable(); XmlNamespaceManager nsManager1 = new XmlNamespaceManager(nt); nsManager1.AddNamespace("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); BUT I still need to know how / where she gets th...
I'm looking for a .net OR/M that uses the Active Record pattern and allows the developer to define migrations that will update the database scheme in code. I have seen ActiveRecord over at http://www.castleproject.org/activerecord/index.html - but it is poorly documented (with terribly out of date samples) and there is no production read...
When implementing IClientChannelSinkProvider's CreateSink method: public IClientChannelSink CreateSink(IChannelSender channel, String url, Object remoteChannelData) { IClientChannelSink nextSink = null; if (_next != null) { nextSink = _next.CreateSink(channel, url, remoteChannelData); if...
I'm writing a C# program that will enforce password complexity in accordance with the Windows Group Policy setting "Password must meet complexity requirements". Specifically, if that policy is set to Enabled either on the local machine (if it's not part of a domain) or by the Domain Security Policy (for domain members), then my software...
I'm looking at a product that was coded in a mix of .NET and ASP Classic. I'm wondering if it's possible to get this running in Linux? I've heard of Mono (which can supposedly run .NET on Linux) and Sun Java Web Server (which can supposedly run ASP Classic on Linux). Are there any other technologies that you would recommend? Also, are t...
Hi, My company is in the process of rewriting an existing application from scratch. This application, among other tasks, performs complex SQL queries against order and invoice data to produce sales reports. The queries are built dynamically depending on which criteria are selected by the user, so they can be pretty complex if many crite...
I'm curious as to whether a native .NET renderer for TeX/LaTeX exists. So for in my search the closest I have been able to find is a Java implementation, JMathTeX. I am tempted to port this to C#, but before I do so, I would simply like to check whether anyone is aware of a .NET implementation out there. My curent thuoghts are to use Mi...
Hi there, I have a collection of MyClass objects and i need to filter it by a combination of 17 fileds. I implemented an object MyClassFilter with the 17 possible fields and the condition for each one and a method: bool PassFilter(MyClass ObjectToEvaluate) { return PassFilterVal(this.Workstream, ObjectToEvaluate.WorkStream) && ...
Is it possible to maintain a reference to a value type so that when changes are made to it my code can see them? Example: i am building a 2D camera for XNA and i want to be able to give it a reference to an arbitrary vector2 so that i don't have to have a special interface or something that everything has to implement. Is this possible...
This is a .net winform UI question. In many cases, we want to design an UI such that, you have several options, and based on the option you choose, a different detail UI is setup for you. For example, imagine a user registration: based on the location you pick, you may be asked to fill in different information. Normally, when I design t...