Search:
Type: Posts; User: Tron
Search:
Search took 0.18 seconds.
-
July 22nd, 2016, 10:27 AM
Something like this:
// add event handler
this.checkBox301.CheckedChanged += new System.EventHandler(this.allCheckBoxs_CheckedChanged);
// you can...
-
June 21st, 2016, 10:36 AM
Your OnLoad() method needs to be part of a class. I would think in this case your Game class.
-
You can do something like this:
string path = @"c:\temp\MyTest.txt";
if (File.Exists(path))
{
// Open the file to read from.
using...
-
April 11th, 2016, 10:02 AM
You could use the Find() method with a delegate:
Meme myMeme = myList.Find(
delegate(Memo m)
{
return m.Name ==...
-
April 4th, 2016, 09:50 AM
What is the value for SelectedItem.Notes?
-
April 1st, 2016, 11:29 AM
The code is indeed C#.
You'll need a integrated development environment (IDE) to make the changes. Visual Studio is one such IDE but it is not free nor online.
There are other options although...
-
January 14th, 2016, 01:25 PM
So it is only posting once, correct? If so this is because you only started the timer once and it completed its task. So in your timerElapsed() method you need to either reset the existing timer or...
-
January 12th, 2016, 12:11 PM
You can create a second constructor for the Form2 class. Pass Class1 as a parameter into your new constructor.
-
December 23rd, 2015, 11:50 AM
Look at System.IO.FileInfo
You can read the file line by line using:
System.IO.StreamReader
You can create a new file line by line using:
System.IO.StreamWriter
-
November 17th, 2015, 11:56 AM
Look at the MouseDown and MouseUp events.
-
November 4th, 2015, 10:01 AM
Does this make any difference?
string MyPath = (string)listBoxAdv1.SelectedValue;
-
October 7th, 2015, 11:52 AM
Try the Form Class GotFocus event. You could also try the Form Class ActiveForm property.
-
October 4th, 2015, 11:12 AM
Try something like this in your SaveMessageErrSQL() method.
if (objConnect.State != System.Data.ConnectionState.Open)
{
objConnect.Open();
...
-
October 2nd, 2015, 11:45 AM
The datatype for an image in SQL Server is
varbinary(max)
Can you change the DB table schema?
-
October 1st, 2015, 11:09 AM
SqlDataReader has lots of methods. Change GetString() to the method providing the data type you want.
-
October 1st, 2015, 09:02 AM
You can check for a NULL value too.
string field = reader.IsDBNull(0) ? string.Empty : reader.GetString(0);
-
October 1st, 2015, 08:49 AM
But I think you are closing the DB before you are writing to the error table.
ClsConnection.objConnect.Close();
string sConError = "Save Messager Customer 1: " +...
-
September 29th, 2015, 10:44 AM
Is your DB Connection closed?
-
September 23rd, 2015, 03:25 PM
You would want something like BeginUpdate() and EndUpdate() for your control.
-
August 20th, 2015, 04:28 PM
Try something like:
XmlNode xmlRoot = xmlDoc.DocumentElement;
XmlNodeList nodes = xmlRoot.SelectNodes("/DosageProposals/Dosage/Structure/UnitTexts/Singular");
-
February 19th, 2015, 09:49 AM
If you want only one image to appear, this should work.
foreach (DataRow dr in dt.Rows)
{
dr["Image"] = imgbyte;
imgbype = null;
}
-
February 18th, 2015, 09:29 AM
Check out http://www.tomasvera.com/programming/using-javascriptserializer-to-parse-json-objects/
The issue must be in your JavaScriptSerializer.
-
February 17th, 2015, 06:02 PM
if ((dict != null) and (dict.data != null))
{
foreach (var club in dict.data)
{
.....
}
}
else
{
...
-
February 17th, 2015, 11:13 AM
Looks like either "dict" or "dict.data" variable is null.
Test the value before running your for loop.
if ((dict != null) and (dict.data != null))
-
September 5th, 2014, 02:57 PM
Something like this will read until there is no more data to read.
If you are looking at toggling on and off the actual read process you'll probably need to fire off a worker thread that checks...
|
Click Here to Expand Forum to Full Width
|