15,896,730 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Fred Flams (Top 34 by date)
Fred Flams
14-Nov-13 4:58am
View
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...
Fred Flams
7-Aug-13 7:40am
View
Reason for my vote of 4 \n Thanks for the tip !
Fred Flams
14-May-13 9:05am
View
Reason for my vote of 4 \n Nice one, see my contributions: a streamlined version of your code
Fred Flams
8-Mar-13 8:26am
View
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
Fred Flams
4-Mar-13 11:55am
View
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.
Fred Flams
28-Feb-13 5:59am
View
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....
Fred Flams
28-Feb-13 5:00am
View
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.
Fred Flams
28-Feb-13 4:50am
View
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) ?
Fred Flams
20-Feb-13 5:54am
View
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
Fred Flams
16-Feb-13 3:51am
View
Have you tried trimming the content of the InnerText property ?
I mean: doc.SelectSingleNode("//UpdateSalesHeaderResult").InnerText.Trim() == "true"
Fred Flams
16-Feb-13 3:50am
View
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.
Fred Flams
15-Feb-13 10:18am
View
Well, looks like you are doing something very similar to what Sergey did in his article
Family Tree
[
^
]
Fred Flams
15-Feb-13 10:06am
View
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()
{
base.ExecuteCore();
string cultureName = null;
// Attempt to read the culture cookie from Request
HttpCookie cultureCookie = Request.Cookies["_culture"];
if (cultureCookie != null)
cultureName = cultureCookie.Value;
else
cultureName = Request.UserLanguages[0]; // 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;
}
Fred Flams
15-Feb-13 10:00am
View
Hello, and what is your problem ? That snippet of code should work.
Fred Flams
15-Feb-13 9:53am
View
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.
Fred Flams
11-Feb-13 10:50am
View
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.
Fred Flams
7-Feb-13 10:37am
View
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.
Fred Flams
7-Feb-13 9:16am
View
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.
Fred Flams
7-Feb-13 9:14am
View
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.
Fred Flams
7-Feb-13 8:52am
View
Actually I should have type regsvr32 -? myself, the option is -i
Fred Flams
7-Feb-13 8:50am
View
I'd say regsvr32, and the command line would be (from memory) "regsvr32 -r <your dll="">", if incorrect, "regsvr32 -?" should help you.
Fred Flams
7-Feb-13 3:34am
View
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
GetReport(....).Summary
since you don't have any try/catch construct in the
GetSummary
method you should try to have a look at the exception stack trace to spot the origin of the problem.
Fred Flams
5-Feb-13 4:26am
View
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 ?
Fred Flams
5-Feb-13 4:07am
View
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).
Fred Flams
5-Feb-13 4:05am
View
If you application is a web application then you use it on any client computer as long as it has a web browser installed.
Fred Flams
5-Feb-13 4:03am
View
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....
Fred Flams
1-Feb-13 8:13am
View
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.
Fred Flams
31-Jan-13 9:16am
View
I'm not really a genius, more like an old dog having a big bag of tricks....
Fred Flams
22-Jan-13 9:32am
View
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.
Fred Flams
21-Jan-13 10:11am
View
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.
Fred Flams
21-Jan-13 10:09am
View
Hi there,
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.
Fred Flams
17-Jan-13 10:19am
View
you're welcome, always a pleasure to help
Fred Flams
17-Jan-13 9:59am
View
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
Fred Flams
17-Jan-13 9:56am
View
Deleted
you're welcome. What is still troubling you ?
Show More