Click here to Skip to main content
Page 1 of 21
Page Size: 10 · 25 · 50


Author filtered by: JF2015 [x]
Answer 18 Oct 2012   license: CPOL
You should have at least googled for "fill combobox from database c#". There is even a youtube video showing how to do that:http://www.youtube.com/watch?v=izlgxu51RoQ[^]or read these forum...
C#
Answer 18 Oct 2012   license: CPOL
This article here should be a perfect match for your requirements:Camera Vision - video surveillance on C#[^]
C#
My vote of 5 by JF2015
Forum Message 13 Oct 2012  
That brings up memories about boring Informatik lessons back in school that we spend playing this game. Thanks for sharing!
Answer 7 Oct 2012   license: CPOL
See these articles from CodeProject and MSDN:Application Trial Maker[^]Implementing a Rudimentary Count Based Trial Version Plugin for Windows Applications.[^]http://msdn.microsoft.com/en-us/library/windows/apps/hh694065.aspx[^]
C#
Forum Message 7 Oct 2012  
Try the following approach - anything else is unclean: private void gridPatients_DoubleClick(object sender, System.EventArgs e) { DoStuff(); } private void gridPatients_KeyDown
Answer 7 Oct 2012   license: CPOL
Try this code:Private Sub button1_Click(sender As Object, e As EventArgs) listBox1.Items.Add(textBox1.Text)End Sub
Answer 7 Oct 2012   license: CPOL
Here is an aticle that does exactly that, but for WPF:http://www.redmondpie.com/speech-recognition-in-a-c-wpf-application/[^]porting or adapting that for WinForms should be simple. You will also find much more results by just googling for "voice commands c#".Enjoy coding!!
Answer 7 Oct 2012   license: CPOL
You can't set the location, or size or most of the look and feel of the standard message box. But, you can show a customized messagebox like described in this article:A Custom Message Box[^]
C#
Answer 7 Oct 2012   license: CPOL
See the answer here that provides a VB.NET snippet (should be easily convertible to C#) that does exactly that.http://stackoverflow.com/questions/1193711/changing-extension-icon-programmatically[^]
Answer 6 Oct 2012   license: CPOL
This is certainly possible somehow. I suggest reading through these answers here:http://stackoverflow.com/questions/187983/how-do-i-hide-a-process-in-task-manager-in-c[^]I would suggest you to not implement this feature though - since this is not user friendly. One option that may be easy to...
Answer 4 Oct 2012   license: CPOL
The maximum limit for session timeout is 525,600 minutes. i.e., 365 days x 24 hours x 60 min. go here: http://www.sswug.org/articles/viewarticle.aspx?id=28269[^] to read more about that.
Answer 4 Oct 2012   license: CPOL
Your application should have exception handling to make sure that it does crash nicely. You should have at least a try catch block on a very high level, but a try catch for every "new" is far too much in my opinion.
C#
Answer 4 Oct 2012   license: CPOL
It looks like you want to create one instance of a "global" object. For this requirement, the singleton pattern should be used. I believe from an object oriented programming perspective, this is the right approach. See these links for more information:Simple Singleton Pattern in...
Answer 4 Oct 2012   license: CPOL
I suggest you start reading some online articles. See these links:A Framework in C# for Fingerprint Verification[^]http://sourceforge.net/projects/sourceafis/[^]http://www.neurotechnology.com/vf_sdk.html[^]
Answer 4 Oct 2012   license: CPOL
a, b, c cannot be overloaded. See here:http://en.wikibooks.org/wiki/C%2B%2B_Programming/Operators/Operator_Overloading[^]
Answer 4 Oct 2012   license: CPOL
Yes this is valid C++ and it compiles - I tested it. The constructor allows setting var1 and var2 when creating an object of the myClass class.
C++
Answer 4 Oct 2012   license: CPOL
Please post your request in this forum and the admins will delete it for you:http://www.codeproject.com/Forums/1645/Site-Bugs-Suggestions.aspx[^]
Answer 4 Oct 2012   license: CPOL
not the nicest solution:string test = "The Value 'sd' is not valid value"; string[] parts = test.Split('\''); if (parts.Length > 2) { parts[1] = "'" + parts[1] + "'"; MessageBox.Show("Part1: " + parts[0] + " Part2: " + parts[1] + " Part3: " + parts[2]); }
C#
Answer 4 Oct 2012   license: CPOL
I suggest reading this:Using WinForms controls in an MFC dialog[^]http://msdn.microsoft.com/en-us/library/ahdd1h97.aspx[^]
Answer 4 Oct 2012   license: CPOL
For this I can suggest you reading through this article series:Image Processing for Dummies with C# and GDI+ Part 1 - Per Pixel Filters[^]Image Processing for Dummies with C# and GDI+ Part 2 - Convolution Filters[^]Image Processing for Dummies with C# and GDI+ Part 3 - Edge Detection...
Answer 4 Oct 2012   license: CPOL
You should use this code for the event handler of the button:private void button1_Click(object sender, EventArgs e){ string strTextToFind = TextBox1.Text; string strTextToReplace = textBox2.Text; richTextBox1.Text.Replace(strTextToFind, strTextToReplace);}Basically the...
C#
Answer 3 Oct 2012   license: CPOL
Just modify your code so that main() returns void as here:void main()And the function get_info() does also not need to return an integer, so change it to:void payroll :: get_info()Make sure to modify both the class definition as the code itself.
C++
Answer 3 Oct 2012   license: CPOL
Did you try Google?Here are some very good results:http://sourcecodecenter.blogspot.de/2011/04/c-get-time-duration-of-audio-file.html[^]How to get the length (duration) of a media File in C# on Windows 7[^]Or these...
C#
Answer 3 Oct 2012   license: CPOL
I suggest you use this library. It allows you to use as many VPN connections as you want:http://cdot.senecac.on.ca/projects/vncsharp/index.html[^]
Answer 3 Oct 2012   license: CPOL
Hiding data in music is called steganography. Here are some articles that should get you started:Steganography 15 - Hiding Digital Data in Music on Audio Cassettes[^]http://www.petitcolas.net/fabien/steganography/mp3stego/[^]
Answer 3 Oct 2012   license: CPOL
Hi,see these CodeProject articles. These should work with .NET 3.5:DirectShow.NET[^]WebCam Fast Image Capture Service using WIA[^]Versatile WebCam C# library[^]
Answer 2 Oct 2012   license: CPOL
You can just fill your combobox with some size values like:comboBox1.Items.Add("8");comboBox1.Items.Add("9");comboBox1.Items.Add("10");comboBox1.Items.Add("11");comboBox1.Items.Add("12");...And then you can set the font size of your textbox using something like this:private...
C#
Answer 2 Oct 2012   license: CPOL
There are several options that you could choose. See these Links:LowLevel:A low-level audio player in C#[^]WindowsMediaPlayer:http://msdn.microsoft.com/en-us/library/dd564582%28v=vs.85%29.aspx[^]http://msdn.microsoft.com/en-us/library/dd563946%28VS.85%29.aspx[^]Or through...
Answer 2 Oct 2012   license: CPOL
Another possibility for you would be to use the singleton pattern by having a static object.Please see this code for your class:class Settings{ private Settings() { } static Settings m_instance = null; public static Settings Core { get { ...
Answer 2 Oct 2012   license: CPOL
There is no special Visual Studio for Android. You can use VisualStudio to develop Android apps using the Mono for Android http://xamarin.com/monoforandroid[^].
Answer 2 Oct 2012   license: CPOL
It is hard to guess what your problem is without seeing your code, but I believe you simply overwrite the file e.g. by using File.WriteAllLines. You should append your lines instead by using e.g. the function File.AppendAllLines.
Answer 2 Oct 2012   license: CPOL
See this MSDN article which shows you the code:http://msdn.microsoft.com/en-us/library/ms229644%28v=vs.80%29.aspx[^]
C#
Answer 2 Oct 2012   license: CPOL
See these articles:http://www.codeproject.com/KB/datetime/[^]There is more than enough information for you to learn everything about that topic.For example to get the age: DateTime bday = new DateTime(1980, 11, 8); DateTime now = DateTime.Today; int age = now.Year - bday.Year; ...
C#
Answer 1 Oct 2012   license: CPOL
Better is this code which makes more sense:namespace ConsoleApplication1{ class myexception : Exception { public myexception(string str) { Console.WriteLine("user define exception" + str); } } class Program { static...
C#
Answer 1 Oct 2012   license: CPOL
I suggest you start reading through some CodeProject articles about that topic:Reflection[^]Reflection in .NET[^]Reflection in C# Tutorial[^]Dynamic Code Generation vs Reflection[^]Reflection is Slow or Fast? A Practical Demo[^]Reflection 101: An Introduction to Reflection in...
Answer 1 Oct 2012   license: CPOL
Have a look at this code, it might give you an idea of how to get started:public class UserControl : Control{ private TextBox textBox1; public UserControl() { textBox1 = new System.Windows.Forms.TextBox(); textBox1.KeyPress += new...
C#
Answer 1 Oct 2012   license: CPOL
What you need is a mathematical expression parser. See these links for some libraries that provide this for you:Math Parser[^]Math Parser NET C#[^]MathParser - Math Formula Parser[^]Parsing Mathematical Expressions with muParser[^]
C#
Answer 1 Oct 2012   license: CPOL
Strange question´, but here are the five methods that I think are the easiest or most important ones:string test = "Hello World";string[] parts = test.Split(' '); //splits the string into piecesbool bIsEmpty = String.IsNullOrWhiteSpace(test); //checks if the string is emptyint...
C#
Answer 1 Oct 2012   license: CPOL
Before asking questions in forums, I suggest you read the available material that can be found using Google & Co. Here is even a video turorial for android development that should get you...
Forum Message 1 Oct 2012  
I suggest you read the following article and work through it since it gives you a good understanding of how the file system watcher is used:
Answer 1 Oct 2012   license: CPOL
Hi,use this code:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace WindowsApplication3{ public partial class Form2 : Form { public...
C#
Answer 1 Oct 2012   license: CPOL
This code here is definitely working:string strTemp = "2012";DateTime time = DateTime.ParseExact(strTemp, "yyyy", CultureInfo.InvariantCulture);MessageBox.Show(time.ToString());It gives an output of: "01.01.2012 00:00:00"
C#
Answer 30 Sep 2012   license: CPOL
Change your Target Platform for building the project from "x86" to "AnyCPU" in the project settings. This worked for me.
Answer 30 Sep 2012   license: CPOL
See this CodeProject library:A flexible charting library for .NET[^]Or the controls provided by Microsoft (available since .NET 3.5, so VS2008 is supported with the correct framework...
Answer 30 Sep 2012   license: CPOL
Hi,click this link to change the password for CodeProject:https://www.codeproject.com/script/Membership/Modify.aspx[^]This is available by hovering on your name in the top right section of CodeProject and clicking "My Settings".
Answer 30 Sep 2012   license: CPOL
The finally block is always executed, no matter what. This may be helpful when throwing exceptions or leaving your function earlier.See this sample which also calls finallytry { //do something return;}finally { Console.writeline("executes inside Finally"); // Code executes...
Answer 30 Sep 2012   license: CPOL
Without knowing what "b" is, I would say you need this:If RadioButton1.Checked = True Then b.Add(textBox27.Text)Else b.Add("0")End If
Answer 30 Sep 2012   license: CPOL
Since you don't show us more of your code, my guess is, that you did not instantiate the instance of myReader as in this sample:private StringReader myReader;public Form1(){ InitializeComponent(); string line = myReader.ReadLine(); //throws: Object reference not set to an instance...
C#
Answer 30 Sep 2012   license: CPOL
You should have a look at the Articles that CodeProject provides:An Introduction to Socket Programming in .NET using C#[^]An Asynchronous Socket Server and Client[^]C# SocketAsyncEventArgs High Performance Socket Code[^]Asynchronous Socket Communications Using the .NET...
Answer 30 Sep 2012   license: CPOL
You should have a look at the article series here on CodeProject which covers most (if not all) ascpects of Threading in .NET (and therfore ASP.NET):Beginners Guide to Threading in .NET: Part 1 of n[^]Beginner's Guide to Threading in .NET: Part 2 of n[^]Beginner's Guide to Threading in...

Page 1 of 21
1 2 3 4 5 6 7 8 9 10


Advertise | Privacy | Mobile
Web03 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid