9,869,444 members (27,532 online)
Visit CodeProject.TV
Discuss CodeProject.TV
Sign in
Email
Password
Forgot your password?
Sign in using
home
articles
Chapters and Sections
>
Search
Latest Articles
Latest Tips/Tricks
Top Articles
Beginner Articles
Technical Blogs
Posting/Update Guidelines
Article Help Forum
Article Competition
Submit an article or tip
Post your Blog
quick answers
Ask a Question
View Unanswered Questions
View All Questions...
C# questions
ASP.NET questions
VB.NET questions
C#4.0 questions
C++ questions
discussions
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work & Training Issues
Design and Architecture
ASP.NET
JavaScript
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
Adobe Technologies
C#
Free Tools
Objective-C
Ruby On Rails
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
.NET Framework
Mobile
VS 11 & .NET 4.5
Sharepoint
Silverlight / WPF
Visual Basic
Web Development
Site Bugs / Suggestions
features
Component & Service Catalog
Competitions
News
The Insider Newsletter
Newsletter archive
Surveys
Product Showcase
Research Library
CodeProject Stuff
community
The Insider News
The Lounge
The Weird & The Wonderful
The Soapbox
Press Releases
Who's Who
Most Valuable Professionals
Company Listings
Non-English Language
>
General Indian Topics
General Chinese Topics
help
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
Site Map
Advertise with us
Employment Opportunities
About Us
The default search term operator is
AND
.
You can use brackets,
AND
,
OR
, and
NOT
to improve your search. For example:
C# AND NOT(VB or SQL)
A query of a single
*
will return everything, filtered by any filters.
Filter examples:
Search by Author
author:"author name"
Filter by tag
tag:C#
or
tag:(C++ or Java)
Wildcard search
use "?" or "*" eg.
gr?d
or
gr*
21 Results
Search
Everything
Articles
Technical Blogs
Tips & Tricks
Questions
Answers
Forum Messages
News Items
Catalog Items
Videos
Training Courses
Just My Stuff
My Bookmarks
Sort by
Relevance
Rating Asc
Rating Desc
Title Asc
Title Desc
Author Asc
Author Desc
Date Created Asc
Date Created Desc
Date Modified Asc
Date Modified Desc
Price Asc
Price Desc
Duration Asc
Duration Desc
Match
All Fields
Title
Description
Author(s)
Tags
Any Date
Last 12 hours
Last 24 hours
Last week
Last 2 weeks
Last month
Last 3 months
Last 6 months
Last year
January
February
March
April
May
June
July
August
September
October
November
December
Rating Range
All - Including Unrated
1.0 - 5.0
2.0 - 5.0
3.0 - 5.0
4.0 - 5.0
4.5 - 5.0
4.8 - 5.0
5.0
Advanced Filters:
Article Topics
All Topics
Desktop Development
Web Development
Mobile Development
Cloud Computing
Enterprise Systems
Database
Multimedia
Languages
Platforms, Frameworks & Libraries
General Programming
Graphics / Design
Development Lifecycle
General Reading
Third Party Products
Mentor Resources
Article License
All Licenses
CPOL
CDDL
Ms-PL
MPL
CPL
Eclipse
MIT
BSD
Apache
CC (ASA 2.5)
Zlib
Public Domain
CC (Attr 3U)
CC (ASA 3U)
LGPL3
GPL3
Forums
All Forums
Feature Forums
General Programming
Web Development
Product Lifecycle
Database & SysAdmin
General Discussions
Non-English Language
Catalog Category
All Categories
Books & Training
Charting & Graphing
Components, Controls, Libraries
Data Manipulation & Mining
Database Tools
Debugging
Documentation & Help
Financial, Math & Scientific
Frameworks & APIs
General Development Tools
GIS & Maps
Graphics & 3D Modeling
Hardware and Robotics
Hosting
IDEs
Imaging
Mobility
Multimedia
Networking
Performance and Profiling
Programming Languages
Project Life-cycle Management (ALM)
Reporting
Search
Security
Setup & Deploy
System Adminstration
Utilities
Virtualization
Web Design/Development
Catalog License
All Licenses
Commercial
Fully Function Evaluation version
Limited Functionality Trial
Limited Time Trial
Shareware
Free For Personal Use
Freeware
Page 1 of 1
Page Size:
10
·
25
·
50
Author filtered by: Thomas Barbare
[x]
code throw execption
by
Thomas Barbare
Answer
18 Apr 2013
license:
CPOL
Your are not using the same Initial Catalog,First :string connstring = @"Data Source=LENOVO-41B3F2CE\SQLEXPRESS;Initial Catalog=IMS;Integrated Security=True;Pooling=False";Second :string constr = @"Data Source=LENOVO-41B3F2CE\SQLEXPRESS;Initial...
General Programming
»
Uncategorised Quick Answers
»
General
ASP.NET
Problems with font in XNA
by
Thomas Barbare
Answer
18 Apr 2013
license:
CPOL
Ok, I tried to find why you got that, take a look at this post : XNA weird 3D painting It's seems to be the same problem, a render state problem after drawing with spritebatchChange this attribute after using spritebatchGraphicsDevice.RenderState.DepthBufferEnable = true;
General Programming
»
Uncategorised Quick Answers
»
General
C#
XNA
setup_Api_methods in c#
by
Thomas Barbare
Answer
18 Apr 2013
license:
CPOL
UINT SetupDeleteError( __in HWND hwndParent, __in PCTSTR DialogTitle, __in PCTSTR File, __out UINT Win32ErrorCode, __in DWORD Style);ParametershwndParent [in] Handle to the parent window for this dialog box.DialogTitle [in] Optional pointer to a...
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
API
Search file from a Folder 'Like'
by
Thomas Barbare
Answer
18 Apr 2013
license:
CPOL
You can get the number of files matching the pattern :int Number= Directory.GetFiles("path", "pattern").Length;And then use this number for creating new file ex : int Number= Directory.GetFiles("C:\\myfolder", "Stanly*.txt").Length; ...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Change default Excel
by
Thomas Barbare
Answer
17 Apr 2013
license:
CPOL
You can change values of the default program for .xls in the Windows registry.A link to the Registry class
General Programming
»
Uncategorised Quick Answers
»
General
C#
Excel
Interop
how to increment textboxvalue
by
Thomas Barbare
Answer
17 Apr 2013
license:
CPOL
If the textbox can contain only numerical values :int value = int.Parse(textBox1.Text) + 1;else use :if (int.TryParse(textBox1.Text, out value)) { value += 1; }
General Programming
»
Uncategorised Quick Answers
»
General
C#
get remote machine IP Address from process name
by
Thomas Barbare
Answer
17 Apr 2013
license:
CPOL
First you have to be able to log on the remote computer using windows credentials, I suggest you to take a look at this codeproject article Windows loginWhen you are logged in the remote computer :Before using this you have to reference System.ServiceProcess and add the following using...
General Programming
»
Uncategorised Quick Answers
»
General
C#
get remote machine IP Address from process name
by
Thomas Barbare
Answer
17 Apr 2013
license:
CPOL
Regarding your last comment :We don't know how you wants to do that, but there is programs already do that.Take a look at the Sysinternals Suite, there is PsList which allow you to see remote process etc ... You can maybe call it and gather informations.PsList[+]
General Programming
»
Uncategorised Quick Answers
»
General
C#
How do you check if DateTime is initialized?
by
Thomas Barbare
Answer
17 Apr 2013
license:
CPOL
Little code snippet about timer. Hope that help. Timer timer; int secondsToPlay; private void StartPlay_Click(object sender, EventArgs e) { timer = new Timer(); timer.Tick += new EventHandler(timer_Tick); ...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Windows
DateTime
time
c# determine in witch text box is cursor?
by
Thomas Barbare
Answer
17 Apr 2013
license:
CPOL
As Sergey Alexandrovich Kryukov said :You can use the Control property Focused like that :foreach (Control item in this.Controls) { if (item.Focused&&item.GetType()==typeof(TextBox)) { MessageBox.Show("I'm the textbox...
General Programming
»
Uncategorised Quick Answers
»
General
C#
How to make myapplication work via registry.setvalue()
by
Thomas Barbare
Answer
17 Apr 2013
license:
CPOL
Check example here :Win32 Registry Setvalue
General Programming
»
Uncategorised Quick Answers
»
General
C#
Dynamically Creating Control using C#
by
Thomas Barbare
Answer
17 Apr 2013
license:
CPOL
Or/And use css
General Programming
»
Uncategorised Quick Answers
»
General
C#
upload image and place it in picture box and resize image size into picture box size
by
Thomas Barbare
Answer
17 Apr 2013
license:
CPOL
Use that if you wants to keep the size ratio, best mode in most case.pictureBox1.SizeMode= System.Windows.Forms.PictureBoxSizeMode.Zoom;
General Programming
»
Uncategorised Quick Answers
»
General
C#
XML text Editor - Text Box
by
Thomas Barbare
Answer
17 Apr 2013
license:
CPOL
You can also take a look at this Wysiwyg HTML editor tutorial written in C# which use DOM of IE.It may help you.Wysiwyg HTML editor written in C#
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
XML
Outlook 2003 Interop - Save .msg file as html.
by
Thomas Barbare
Answer
17 Apr 2013
license:
CPOL
There is a lot of things to read on MSDN : Programming Outlook 2003but as db7uk said you have to write the mail body in a file and it's work
General Programming
»
Uncategorised Quick Answers
»
General
C#
Outlook
Interop
How do i use foreach loop for ftpDirectory
by
Thomas Barbare
Answer
16 Apr 2013
license:
CPOL
I think you can't use Directory class for FTP, use FtpWebRequest instead.FtpWebRequest Class[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#
FTP
How add bottom at Row datagrid
by
Thomas Barbare
Answer
16 Apr 2013
license:
CPOL
You can add the column with that :dataGridView1.Columns.Add(new DataGridViewButtonColumn() { Name="ColumnName", HeaderText="Header" // add here properties for the new column } );
General Programming
»
Uncategorised Quick Answers
»
General
C#
XML Editing - Rich Text Box
by
Thomas Barbare
Answer
16 Apr 2013
license:
CPOL
For your 1st statement use KeyPress event, it will be triggered everytime you hit a key.private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if(char.IsDigit(e.KeyChar)) { MessageBox.Show("is digit"); } }
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
XML
Extracting zip file using c# program
by
Thomas Barbare
Answer
16 Apr 2013
license:
CPOL
You can also call an external program with arguments and it will do it for you. Like 7Zip for exemple :System.Diagnostics.Process proc = new System.Diagnostics.Process();proc.StartInfo.FileName = "7za.exe";proc.StartInfo.Arguments = "x " + folder + "\\*.*" + " -o" +...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ZIP
How to change the color of a cell in the Datagridview
by
Thomas Barbare
Answer
16 Apr 2013
license:
CPOL
You can bind at RowsAdded event.void dataGridView1_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e) { foreach (DataGridViewCell item in dataGridView1.Rows[e.RowIndex].Cells) { if (item.Value.GetType() == typeof(int)) ...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Windows
Forms
WinForm
how to store a dynamic created textbox value into db?
by
Thomas Barbare
Answer
16 Apr 2013
license:
CPOL
I think I understand your problem. My solution is to add an event to the dynamic textbox which will be called when the value has changed.In this case I really don't understand why you need to do that, your texboxes are empty.private void comboBox1_SelectedIndexChanged(object sender,...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Page 1 of 1
First
·
Prev
·
Next
·
Last
Advertise
|
Privacy
|
Mobile
Web01 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright ©
CodeProject
, 1999-2013
All Rights Reserved.
Terms of Use
Layout:
fixed
|
fluid