9,869,444 members (25,431 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*
223 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 5
Page Size:
10
·
25
·
50
Author filtered by: Mike Meinz
[x]
Sql Stored procedure with split function
by
Mike Meinz
Answer
2 May 2013
license:
CPOL
As you requested, the following Stored Procedure returns a count of how many routes it finds. If the input parameter contains an invalid route (one that does not exist in the table), the count is unreliable. With your input parameter, the following Stored Procedure yields a count of...
General Programming
»
Uncategorised Quick Answers
»
General
SQL
function
Hi Jeff
by
Mike Meinz
Forum Message
2 May 2013
Nice to see you contributing on CodeProject. I miss your presentations and our discussions a General Mills. You're been a great developer evangelist and teacher. ;)
General Discussions
»
Article "The Twin Cities Iphone Developers Meetup Has Teamed Up With Microsoft!"
How to send DateTime from C++ to C# side
by
Mike Meinz
Answer
1 May 2013
license:
CPOL
See Microsoft documentation for DateTime Structure[^]The documentation shows that the DateTime Structure can be used in C# and C++.
General Programming
»
Uncategorised Quick Answers
»
General
C++
C#
DateTime
VC++
How to us digital persona reader in web application
by
Mike Meinz
Answer
1 May 2013
license:
CPOL
The reference manual is a good place to start:DigitalPersona Developer Reference Material[^]The developer support web pages may have information that could help you:Developer Technical Support [^] and DigitalPersona Developer WebPortal[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#
webapplication
Validating whether Student id is there or not in the database
by
Mike Meinz
Answer
30 Apr 2013
license:
CPOL
1. STUDID looks like it is a number and not a string. Therefore, do not put apostrophe around STUDID in the query. 2. If the table is named STUDENT, then you need to correct your query to SELECT from STUDENT instead of STUDDET.3. The .Text property is already a string. You do not have to...
General Programming
»
Uncategorised Quick Answers
»
General
C#
File directory control
by
Mike Meinz
Answer
25 Apr 2013
license:
CPOL
You can do it all using the System.IO Classes in the .NET Framework. Upon click on directory name in the left preview pane, use System.IO.FileInfo class to retrieve details of each file found via the Directory.EnumerateFiles method.Some examples that you can learn from:How does...
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
directory
Treeview
How do I add my Program to (open with context menu)
by
Mike Meinz
Answer
25 Apr 2013
license:
CPOL
I found several articles via Google using the search string add entries to windows context menuHere are just two of them: Adding Entries to the Standard Context Menu[^] How to Add Any Application Shortcut to Windows Explorer’s Context Menu[^]
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
Find SQL server name & database name
by
Mike Meinz
Answer
24 Apr 2013
license:
CPOL
I used this code to retrieve the name of my SQL Server and it worked fine on my PC with Visual Studio 2012 and SQLExpress 2012. public void Main() { // Retrieve the enumerator instance and then the data. SqlDataSourceEnumerator instance =...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Listview - display/sort selected column name
by
Mike Meinz
Answer
24 Apr 2013
license:
CPOL
1. Create a Class that implements IComparer.Compare See the example in the ListView.ListViewItemSorter property documentation.2. Set the ListView.ListViewItemSorter[^] property to the IComparer.Compare Class.Quote:You can use this property to provide custom sorting, for example, when a...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
When i uploading more than 30MB file, after uploading 35% restart uploading for 0%
by
Mike Meinz
Answer
24 Apr 2013
license:
CPOL
I found this via a Google search using search key problem timeout uploading file greater than 30mbUnable-to-transfer-files-over-30MB-with-the-Web[^]
General Programming
»
Uncategorised Quick Answers
»
General
.NET3.5
ASP.NET
C#
.NET
C#4.0
stopping SQL for input
by
Mike Meinz
Answer
24 Apr 2013
license:
CPOL
There is no "popup" like PL/SQL in SQL statements in VB .NET code.Your user enters the value to be found in a TextBox on the form. You use that TextBox value as a parameter to the SQL statement. In my example, I trim spaces from the beginning and end of the TextBox value because sometimes...
General Programming
»
Uncategorised Quick Answers
»
General
Visual-Studio
VB.NET - Console App Code to Windows App Code
by
Mike Meinz
Answer
22 Apr 2013
license:
CPOL
Here is an example of how to run another program from within a VB .NET program. Dim process As New Process Try ' The program to be started by the Process Class: Dim pgm As String = "C:\Test\MyTestProgram.exe" ' The string parameter to...
General Programming
»
Uncategorised Quick Answers
»
General
Windows
VB
VB.NET
Console
I'm missing something basic
by
Mike Meinz
Answer
21 Apr 2013
license:
CPOL
Please look at SQL Server Configuration Manager and ensure that the SQL Server Browser is running.In the following posting from the Microsoft SQL Server Forum, there are several other tips that may help you. See Problem sharing SQL server over a home network[^]
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
Folder path - SHGetFolderPath Deprecated
by
Mike Meinz
Answer
21 Apr 2013
license:
CPOL
I looked up the SHGetFolderPath function on MSDN and found that the documentation named the replacement function. See SHGetKnownFolderPath function[^]
General Programming
»
Uncategorised Quick Answers
»
General
C++
Searching second listbox
by
Mike Meinz
Answer
21 Apr 2013
license:
CPOL
You have your closing parenthesis in the wrong place causing the first IF to be always true.I also added a line of code to remove spaces from front and back of ziptextbox.Text in case user accidentally types spaces before or after the zip code.Furthermore, the Label.Show method is for...
General Programming
»
Uncategorised Quick Answers
»
General
VB
Visual-Studio
Software for making installations
by
Mike Meinz
Answer
21 Apr 2013
license:
CPOL
I use Microsoft's ClickOnce (the Publish feature in Visual Studio) if my users are all on a local area network or have access to a web server. Otherwise, I use the free InstallShield Limited Edition software that owners of Visual Studio 2012 can download to create a setup program on a USB Flash...
General Programming
»
Uncategorised Quick Answers
»
General
C++/CLI
C#
installer
setup
Random Numbers to Text in Label
by
Mike Meinz
Answer
18 Apr 2013
license:
CPOL
testDataLabel.Text = testDataLabel.Text & typeListBox.Items(typeIndex).ToString & " " & guests.ToString & " " & totalCharge.ToString("C0") & vbNewLine
General Programming
»
Uncategorised Quick Answers
»
General
VB
Visual-Studio
Basic
Re: Great story!
by
Mike Meinz
Forum Message
18 Apr 2013
Fortran II does sound familiar. Your memory is better than mine.
General Discussions
»
Article "A Coder Interview With Mike Meinz"
Re: Great article
by
Mike Meinz
Forum Message
18 Apr 2013
Wow! Thanks for those very kind words! Whoever you are?
General Discussions
»
Article "A Coder Interview With Mike Meinz"
Automate the execution of an application to generate reports in asp.net C#
by
Mike Meinz
Answer
18 Apr 2013
license:
CPOL
Create a task in TASK SCHEDULER. Put the web page URL where the program name would go. The web page will have to be designed so that it generates the report and any other activities without requiring someone to click something.
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
SAP Connection in csharp
by
Mike Meinz
Answer
18 Apr 2013
license:
CPOL
Here is a CodeProject article on using the SAP .NET ConnectorSAP .NET RFC Server with SAP.NET Connector 2.0[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#
SAP
A Coder Interview With Mike Meinz
by
CodeProject
, Mike Meinz
Article
17 Apr 2013
license:
CPOL
Welcome to our continuing series of CodeProject interviews in which we talk to developers about their backgrounds, projects, interests and pet peeves. In this installment we talk to Mike Meinz, who shares some highlights from 45 years in the industry.
General Reading
»
Interviews
»
General
All-Topics
How to make myapplication work via registry.setvalue()
by
Mike Meinz
Answer
17 Apr 2013
license:
CPOL
Add this to the beginning of the source file using Microsoft.Win32;This works fine for me. I tested it!Registry.SetValue("HKEY_CURRENT_USER\\Software\\ZSPL", "Asset", "AssetManager");Your second statement Registry.setvalue(my project); won't work because SetValue letter case is...
General Programming
»
Uncategorised Quick Answers
»
General
C#
Determine Time Difference on a holiday
by
Mike Meinz
Answer
17 Apr 2013
license:
CPOL
I don't have MySQL but here is what it looks like in Microsoft SQL Server Transact-SQL. This example handles the situation where there are no hours during the holiday and returns 00:00:00 for that case.-- Create temp table for demonstrationDeclare @tb table (emp_name varchar(30),time_in...
General Programming
»
Uncategorised Quick Answers
»
General
VB
MySQL
VB.NET
Need to know "How to display an animation picture on form's background " C#
by
Mike Meinz
Answer
16 Apr 2013
license:
CPOL
Put the full path name of the image file into the BackgroundImage property of the form.
General Programming
»
Uncategorised Quick Answers
»
General
C#
Need to watch a folder in my server path
by
Mike Meinz
Answer
16 Apr 2013
license:
CPOL
See Spy on a Folder to Detect When it Change[^]See FileMonitor[^]See Watching Folder Activity in VB.NET[^]See Advanced FileSystemWatcher[^]See Folder Listener: A Tool to Watch File System Activity in any Folder [^]See FileSystemWatcher - Pure Chaos (Part 2 of 2)[^]
General Programming
»
Uncategorised Quick Answers
»
General
VB6
My vote of 5
by
Mike Meinz
Forum Message
15 Apr 2013
Excellent job! When I was in the Navy from 1967-1971, I did Autocoder, SPS and RPG programming on IBM 1401, also. Mostly Autocoder!
General Discussions
»
Article "Circular Indeterminate Progress Indicator Control"
how to secure database from data mining and web extractor softwares?
by
Mike Meinz
Answer
14 Apr 2013
license:
CPOL
Encrypt the data!The .NET Framework has crypto classes that you can use to encrypt and decrypt data as you put it into and retrieve it from the database.
General Programming
»
Uncategorised Quick Answers
»
General
C#
ASP.NET
Java
Find SQL server name & database name
by
Mike Meinz
Answer
12 Apr 2013
license:
CPOL
I use this in a BAT file to do a scheduled backup of my SQLExpress database:In the files below: * Change mycomputer to your computer name. * Change mydatabase to your database name.Contents of mydatabase_Backup.bat:C:cd C:\Program Files\Microsoft SQL Server\110\Tools\Binnsqlcmd...
General Programming
»
Uncategorised Quick Answers
»
General
C#
How to SQL INSERT from C# program?
by
Mike Meinz
Answer
12 Apr 2013
license:
CPOL
I suggest changing the definition of your database so Date and Time are in one column of Data Type DateTime. It usually is easier to have the date and the time together in one column.try{using (SqlConnection cn = new SqlConnection( "Your connectionString goes here")) using...
General Programming
»
Uncategorised Quick Answers
»
General
C#
vb.net not displaying controls before end sub
by
Mike Meinz
Answer
12 Apr 2013
license:
CPOL
Remove the code Block2, put it in it's own Sub. Call that Sub from the appropriate ComboBox and Button events.
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
From where to start .Net
by
Mike Meinz
Answer
12 Apr 2013
license:
CPOL
The current version of Visual Studio is Visual Studio 2012. The current .NET Framework version is 4.5. See #define Visual Studio[^]
General Programming
»
Uncategorised Quick Answers
»
General
.NET
Start my c# application using its .exe file
by
Mike Meinz
Answer
11 Apr 2013
license:
CPOL
Compile in Release mode rather than Debug mode and get the EXE from the /bin/Release folder.
General Programming
»
Uncategorised Quick Answers
»
General
.NET3.5
C#
.NET
.NET4
.NET4.5
The WindowState To Maximized It Goes Over The Taskbar
by
Mike Meinz
Answer
10 Apr 2013
license:
CPOL
Using Google search with keywords windowstate maximized hides taskbar, I found this article that explains that this is a problem with WPF. Are you using WPF? You didn't say.See Maximizing window (with WindowStyle=None) considering Taskbar[^]The article says that the problem only occurs...
General Programming
»
Uncategorised Quick Answers
»
General
C#
SQL
Server2008
How To get the records between two times
by
Mike Meinz
Answer
8 Apr 2013
license:
CPOL
Better help could be provided if you included DDL for pertinent columns in the database tables, real samples of data in the database table and real samples of 'FormTime' and 'Totime'. Also, you did not say what the problem was. "Not working perfectly" could mean a syntax error or the wrong rows...
General Programming
»
Uncategorised Quick Answers
»
General
SQL
Server
Select Column for each day
by
Mike Meinz
Answer
6 Apr 2013
license:
CPOL
Here is a query that is a simple extension of the original query that I put in the solution to your original question on 9 March 2013. I just added a check for the date to the two subquery Where clauses.select distinctCE.Emp_Name,(select min(Emp_Time) from Raw_Record As MINCE where...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
MY
How do I calculate 10,000 factorial? (10000 faktöryeli nasıl hesaplarım)
by
Mike Meinz
Answer
2 Apr 2013
license:
CPOL
Once again, Google answers the question. Factorial Calculator[^]Factorial Program using C#[^]
General Programming
»
Uncategorised Quick Answers
»
General
C#
Subquery returned more than 1 value
by
Mike Meinz
Answer
2 Apr 2013
license:
CPOL
The easy solution is to change all of the SELECT statements within the CASE statement to SELECT TOP 1. That, however, may not be the correct solution. It could be that the CASE statement is the wrong thing to use for your business requirement. You should study the data and determine if...
General Programming
»
Uncategorised Quick Answers
»
General
SQL-Server
can't read 10 bytes via rs232
by
Mike Meinz
Answer
2 Apr 2013
license:
CPOL
According to the Help file for SerialPort.DataReceived:The DataReceived event is not guaranteed to be raised for every byte received. Use the BytesToRead property to determine how much data is left to be read in the buffer.That tells me that the DataReceived event is raised before all 10...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
DBF file name truncated
by
Mike Meinz
Answer
2 Apr 2013
license:
CPOL
You're not showing us the ConnectionString but I suspect that the driver in the ConnectionString is causing this issue. Perhaps because the .DBF extension dates from the DOS era, the filenames are created in the old DOS 8.3 format. Via a Google search, I found this article that talks about...
General Programming
»
Uncategorised Quick Answers
»
General
C#
C#4.0
OleDb
Unable to Execute Commands Passed as Arguments
by
Mike Meinz
Answer
2 Apr 2013
license:
CPOL
You have a syntax error in the commands that you are sending to PowerShell.Change your code a bit so you can see the error message from PowerShell. In Visual Studio Debug mode, capture the value of "c" just before you assign it to startinfo.arguments and use it in an interactive PowerShell...
General Programming
»
Uncategorised Quick Answers
»
General
PowerShell
Commands
inner join in asp.net
by
Mike Meinz
Answer
31 Mar 2013
license:
CPOL
"SELECT userinfo.user_id as User, userinfo.User_last_login as [Last Login], orginfo.Dept, orginfo.Div FROM UserInfo INNER JOIN OrgInfo ON userinfo.Org_Code=orginfo.org_code WHERE userinfo.User_ID='" + txtUserId.text + "';"
General Programming
»
Uncategorised Quick Answers
»
General
ASP:NET
how to disable print screen when my exe running in c# ?
by
Mike Meinz
Answer
30 Mar 2013
license:
CPOL
There are some good ideas in the following links. There are many more on Google, available using search keywords how to disable print screen key C#Low-level Windows API hooks from C# to stop unwanted keystrokes[^]plz help me ,how to disable print screen?[^]how to disable “PRINT...
General Programming
»
Uncategorised Quick Answers
»
General
C#
delete image from folder after deleting the record containing that image from databse
by
Mike Meinz
Answer
30 Mar 2013
license:
CPOL
After you have successfully deleted the row from the database, execute the following code. try { File.Delete(@"C:\foldername\" + imagefilenamegoeshere); } catch (IOException e) { }
General Programming
»
Uncategorised Quick Answers
»
General
C#
SQL-Server
SQL2008
C#4.0
VB.NET console output issue
by
Mike Meinz
Answer
30 Mar 2013
license:
CPOL
You are not capturing the result of the NetworkStread Read method. The result tells you how many bytes were read. In Socket_Control dll:... Dim intLengthRead as Integer = serverStream.Read(receiveData, 0, 10000) Return...
General Programming
»
Uncategorised Quick Answers
»
General
VB
VB.NET
Sockets
How to Release COM Interop Objects so the Called Program Can Exit
by
Mike Meinz
Tip/Trick
29 Mar 2013
license:
CPOL
The COM Interop Runtime Callable Wrapper (RCW) is a "Black Box" that creates references to memory that need to be released before the called program will end.
Platforms, Frameworks & Libraries
»
Com / Com+
»
Com Interop
C#
VB
Windows
.NET
Dev
COM
Intermediate
Advanced
Interop
Cloud
How to convert speech (.wav file) to text file?
by
Mike Meinz
Answer
27 Mar 2013
license:
CPOL
This version compiles. You weren't clear enough to say whether it was a compile error or a run-time error. If your problem was a compile error, this version resolves that. Because it is C# code, the upper and lower case must match. I corrected the clauses to use upper and lower case like this:...
General Programming
»
Uncategorised Quick Answers
»
General
C#
how to create store procedure for below mention problem
by
Mike Meinz
Answer
27 Mar 2013
license:
CPOL
Write a separate Stored Procedure for each need.
General Programming
»
Uncategorised Quick Answers
»
General
C#
database
Object Not Set Exception Query
by
Mike Meinz
Answer
26 Mar 2013
license:
CPOL
The system generated error message box will allow you to "View Details" and the StackTrace which can tell you which of your methods is the location of the error and the actual line number. Using that information, modify your program to add Try...Catch blocks around all of your code that is...
General Programming
»
Uncategorised Quick Answers
»
General
C#
VB
VB.NET
Using SaveFileDialog to save Image into SQL server Database
by
Mike Meinz
Answer
26 Mar 2013
license:
CPOL
The error message that you provided says that the expected parameter is "@ASAm_FIRMA_PRES_JD' but you show in your example code that you are setting the parameter name to "ASAM_FIRMA". The name that you use when you add the paramater has to match the name that the SQL Server expects....
General Programming
»
Uncategorised Quick Answers
»
General
VB
SQL
databse
Page 1 of 5
1
2
3
4
5
First
·
Prev
·
Next
·
Last
Advertise
|
Privacy
|
Mobile
Web02 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright ©
CodeProject
, 1999-2013
All Rights Reserved.
Terms of Use
Layout:
fixed
|
fluid