Search:
Type: Posts; User: bassguru
Search:
Search took 0.11 seconds.
-
February 22nd, 2012, 06:35 AM
ken4ward,
I've written a quick example of how to pass the current instance of a form to a second form. In this example, the 'this' keyword is the current instance of Form1. You don't want to try...
-
November 8th, 2011, 11:12 AM
The if statement is checking the labels, not the textboxes - was this intentional?
if (lblFatCaloriesValue.Text == "" || ((lblCarbCaloriesValue.Text == "") || (dblTotalCalories <= 0)))
{...
-
March 15th, 2011, 11:55 AM
That is quite a jump!
I would recommend upgrading in steps, such as .Net 1.1 > 2.0, 2.0 > 3.0, 3.0 > 3.5, 3.5 > 4.0.
This may take a while, but its the safest way to upgrade your applications....
-
February 10th, 2011, 11:21 AM
Change your MyClass to look like this:
public MyClass()
{
Var = 8;
Console.WriteLine("mVar = {0}", Var);
}
-
February 10th, 2011, 07:58 AM
Try the following:
private void stop_Click(object sender, EventArgs e)
{
m.URL = null;
m.close();
m.Dispose();
m = null;
-
February 10th, 2011, 07:35 AM
Try the following:
private void stop_Click(object sender, EventArgs e)
{
bool test1 = false;
bool test2 = false;
test1 = System.Runtime.InteropServices.Marshal.IsComObject(m);
-
February 10th, 2011, 07:12 AM
Pankaj Safaltek,
Try the following:
private void stop_Click(object sender, EventArgs e)
{
m.URL = null;
m.close();
-
February 9th, 2011, 06:15 AM
Ilia2k,
If you have never done or have just started C# then I suggest the Head First C# book (http://www.amazon.co.uk/Head-First-C-Andrew-Stellman/dp/0596514824). Head First books are always great...
-
February 9th, 2011, 04:52 AM
You might want to store the expected variable as readonly rather than as a constant (see http://en.csharp-online.net/const,_static_and_readonly). Also, functions are called methods in C#.
Have a...
-
February 7th, 2011, 10:48 AM
worthful,
For something as basic as a multiple choice quiz, I would suggest using ASP.NET and C#.
WPF is mainly used to make things look asthetically pleasing. Silverlight could be used but it...
-
February 7th, 2011, 10:18 AM
You could start by posting any code that you feel might be responsible for your timeout error.
-
February 4th, 2011, 10:26 AM
Glad I could help you Sean87!
Remember to mark the thread as resolved.
Regards,
Bassguru
-
February 2nd, 2011, 04:46 AM
Sean87,
Have a look at this tutorial: http://www.c-sharpcorner.com/uploadfile/mahesh/mouse_events12232005014128am/mouse_events.aspx
It introduces you to the concept of mouse events.
You...
-
February 1st, 2011, 05:35 AM
Hi Sean87,
Have a look at http://msdn.microsoft.com/en-us/library/aa730869%28v=vs.80%29.aspx
This is a tutorial on how to save user settings.
I hope this is what you are look for!
...
-
January 17th, 2011, 10:21 AM
Is this what you are after?
public int RandomDiceRollRound1Dice1(int min, int max)
{
Random random = new Random();
return random.Next(min, max);
}
private void btnRoll_Click(object...
-
January 7th, 2011, 07:22 AM
Well said BigEd781; forgive me for using a reference type as an example of boxing and unboxing!
A better example would have been:
List<Int32> list = new List<Int32>();
list.Add(myInt32);
...
-
January 6th, 2011, 11:19 AM
One of the main advantages of generic types is that they have the potential to cut back on boxing and unboxing.
For example, before generic types were introduced, if you wanted to store an...
-
March 23rd, 2010, 09:51 AM
After a quick search, I would suggest the following tutorials:
http://www.codeguru.com/csharp/csharp/cs_graphics/mouse/article.php/c6133
...
-
March 23rd, 2010, 06:40 AM
Hello Komaqtion,
To the best of my knowledge you cannot use mouse events for a console application as it is keyboard only I'm afraid.
However, what your suggesting is feasible on a windows form...
-
March 23rd, 2010, 06:34 AM
In amendment to my previous post, it would make more sense to deserialize the stream BEFORE the while loop, as shown below:
bFmt.Deserialize(stream);
...
-
March 22nd, 2010, 12:06 PM
Thanks again for the reply TheGreatCthulhu!
Your last post really helped to send the instance of the class. However, a problem is occuring that states that "The input stream is not a valid binary...
-
March 21st, 2010, 01:22 PM
Thanks again TheGreatCthulhu
Your logic seems sound, but I'm still at a loss I'm afraid. This is what I have thus far:
[Serializable]
public class timeStampedImage
{
...
-
March 21st, 2010, 11:27 AM
Thanks for the reply TheGreatCthulhu,
public class timeStampedImage
{
public byte[] byteArray;
public DateTime dateTime;
}
-
March 21st, 2010, 07:42 AM
Hello everyone,
I want to extend my program by sending a DateTime object alongside an image object AT THE SAME TIME. Below is the working code I have thus far:
//Sends the image...
-
March 10th, 2010, 04:13 PM
Perhaps it would help if I showed you where I believe the error is occuring.
static void Connect(String server, byte[] Image)
{
try
{
...
|
Click Here to Expand Forum to Full Width
|