Forgot your password?
Sign in with
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View PHP questions
View Python questions
All Message Boards...
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Design and Architecture
Internet of Things
C / C++ / MFC
ATL / WTL / STL
Objective-C and Swift
Hardware & Devices
Hosting and Servers
.NET (Core and Framework)
Site Bugs / Suggestions
Spam and Abuse Watch
The Insider Newsletter
The Daily Build Newsletter
Most Valuable Professionals
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
What is 'CodeProject'?
Ask a Question
Bugs and Suggestions
Article Help Forum
Comments by Fred Flams (Top 34 by date)
You should post that as an answer, since the provided XML really does contain only one row....
I know that sound silly, since the clues were there since the beginning...
Reason for my vote of 4 \n Thanks for the tip !
Reason for my vote of 4 \n Nice one, see my contributions: a streamlined version of your code
If you think so, then develop an MDI application again. Your statement is completely wrong.
Actually an MDI child form is nothing more than a standard Form but displayed Inside a parent form container. You can therefore do whatever you want with your child MDI form. AS for the parent MDI form, if you to put a button Inside it's central section then you can. You can virtually do whatever you want with both parent and child form
Hello, personnaly I would set the BodyFormat property before the Content property:
mailItem.BodyFormat = Outlook.OlBodyFormat.olFormatHTML;
mailItem.HTMLBody = FileContents;
doing it in this order makes sure that the mail object is set to receive an HTML body, I'm not sure if it strips the HTML content if the Format is set to text.
Okay, I understand your requirements better, you actually want to display a copy from an existing application already running on the machine... I believe that could be done with a lot of sweat and code and actually I don't really see what it will be good for....
Hello, to my knowledge you won't be able to target all mobile OS from withing Visual studio.
You'll have to download other IDE (and often you will have to pay for dowloading) that target other Platform.
On top of that, if you use VS2012 you'll not be able to target a mobile Platform, all you will be able to do is to develop a Silverlight application that will run on Windows Phones.
If you want to target Android I would recommend Xamarin, for iOS I don't think there is an IDE that accepts anythng else than ObjectiveC.... you might find compilers that will precompile C# to ObjectiveC but I really don't know how good they are.
Hello, could you ellaborate a bit further your need ?
Is it 1) You want to show a duplicate of a currently running Windows application form
or 2) You want to show a form that looks exactly like the form from another Windows application (a form that someone has seen and want to have in their application as an example) ?
Well, there is no correct answer to that question I guess.
I you "Main" method is static and declared as your application entry point then it will be called first, otherwise only the constructor will be called
Have you tried trimming the content of the InnerText property ?
I mean: doc.SelectSingleNode("//UpdateSalesHeaderResult").InnerText.Trim() == "true"
Well actually, I d'ont think the namespace can be the cause of the problem since tempuri.org is the default xml namespace for all xml document. Plus this is enforced by the opening tag where the namespace is specified using xmlns without anything else, that alone declares a default namespace.
Well, looks like you are doing something very similar to what Sergey did in his article
Hello, in your override of the ExecuteCore method, I would put the call to the base classe as the first line of the method, not the last
protected override void ExecuteCore()
string cultureName = null;
// Attempt to read the culture cookie from Request
HttpCookie cultureCookie = Request.Cookies["_culture"];
if (cultureCookie != null)
cultureName = cultureCookie.Value;
cultureName = Request.UserLanguages; // obtain it from HTTP header AcceptLanguages
// Validate culture name
cultureName = CultureHelper.GetImplementedCulture(cultureName); // This is safe
// Modify current thread's cultures
Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(cultureName);
Thread.CurrentThread.CurrentUICulture = Thread.CurrentThread.CurrentCulture;
Hello, and what is your problem ? That snippet of code should work.
I believe that Chris is right and that whatever calls the Insert method is passign null values instead of valid strings. Actually, you should test for null strings at the start of your method InsertClass and throw an exception at that point rather than trying to insert wrong data in your database.
Do use the "Load" event of your form to start the search ?
If so, you should try to start your search process in a background thread, that should help show your form.
Well actually in your case, the easiest would be to make sure that the COM DLL has the DllInstall and DllUninstall entry points as it will be relativelly complex to convert your code into P/Invoke.
If it is what he really want to achieve, then there is no need to send an email to some Microsoft dude, the answer is CodeProvider.
By the way try answering to my post with the "comment" button rather than posting a new solution, that way I get notified that someone is reacting to my post.
Actually I should have type regsvr32 -? myself, the option is -i
I'd say regsvr32, and the command line would be (from memory) "regsvr32 -r <your dll="">", if incorrect, "regsvr32 -?" should help you.
Actually what if your problem is not in the line of code you highlighted but inside the method called underneath ???? I mean that your exception could well be raised by the call to
since you don't have any try/catch construct in the
method you should try to have a look at the exception stack trace to spot the origin of the problem.
Well in that case the answer is no, nad that is not related to only VS2010, but to all .NET IDE
Now you can still embed you autocad object as an image and image modification capabilities to your application, depending on the modifications you want to allow that can require a lot of work.
Have you tried googling you problem ?
Rather than saving the control's properties inside an XML file, why don't use a ressource file. This is easily done with Visual Studio and is more flexible than standard XML (think about saving an image content inside XML).
If you application is a web application then you use it on any client computer as long as it has a web browser installed.
And what is your question ?
If it is about the supported image format that you can use inside a WinForm application then the answer is: JPEG, PNG, GIF, BMP and WMF are all supported.
Now if you want to embed directly the AUTOCAD object inside a WinForm application I'm not sure that still works with .NET....
Reason for my vote of 4 \n Good article.
I like the idea behind the paging for a ListView.
Actually this could go further down the road by packaging all this into a nice user control that could be reusable. To achieve that changes are needed: no hard coding of the SQL Query, adding support for various datasources such as: DataSet, DataTable, Lists of objects, XML DOM, ...
Also one enhancement you could add would be to cache the result of the SQL Suery rather than running it on each page change and have a "Refresh" data button that would sync with the database.
I'm not really a genius, more like an old dog having a big bag of tricks....
Reason for my vote of 3 \n Good article.
In your tests you should also add ArrayList; from what I remember they are somewhere between the array and the list performance-wise.
Also, you only used a simple data type: DateTime is a structure and is stored and therefore accessed differently in memory than objects and could show different results.
Sorry did not see that your log file is constantly overwritten, there's only left your _messageList buffer that don't get emptied when handled and that list can become pretty huge from what I understand.
After reviewing your code I have two questions:
1) When do you clear you _messageList buffer ?
2) Why didn't you limit the amount of disk space that your log file can use ? (I strongly suspect, that your log file is becoming too large for the framework to handle)
3) Why did you write your own logger, when you could have used a framework such as log4net that is freely downloadable and does all the logging staff for you, including log file rolling (i.e. log file splitting, and archiving), it can also log to other medium than a simple file.
Hope this remarks will help you solve your problem.
you're welcome, always a pleasure to help
then in the second "if" you should add the following condition "|| b > a" and change the text of the message box to read something like "enter value to sub lower or equal to first value" and that should do the trick
you're welcome. What is still troubling you ?
Last Updated 1 Jan 1900
All Rights Reserved.