Search Results

Showing results 1 to 26 of 26
Search took 0.03 seconds.
Search: Posts Made By: scru ; Forum: C# and child forums
Forum: C# Oct 20th, 2008
Replies: 6
Views: 609
Posted By scru
Is that your entire code file? You don't seem to have neither a namespace nor a class defined, both of which are needed.
Forum: C# Oct 13th, 2008
Replies: 2
Views: 599
Posted By scru
If you're running C# 3.0, you can use this shorthand for the properties; just add {get; set;} after each declaration and so you can totally remove the extra code below:

using System;
using...
Forum: C# May 6th, 2008
Replies: 1
Views: 1,018
Posted By scru
Project -> Properties

Select your choice from the target framework dropdownbox
Forum: C# Jan 28th, 2008
Replies: 7
Views: 842
Posted By scru
Thanks! Now off to rip off your idea and sell it on ebay for an extra kidney.

Honestly, sounds like an interesting thing to code. My guess is that it shouldn't be *that* hard. Here's to hoping you...
Forum: C# Jan 24th, 2008
Replies: 9
Views: 1,828
Posted By scru
See this thread:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=148907&SiteID=1

Sorry I kept leading you around in circles.
Forum: C# Jan 24th, 2008
Replies: 9
Views: 1,828
Posted By scru
Try see if this.tblDetalnaBindingSource.CancelEdit() will stop it from deleting.
Forum: C# Jan 24th, 2008
Replies: 9
Views: 1,828
Posted By scru
I have observed that the delete button doesn't actually permanently delete the record. Perhaps this in an indication that you must ocde this behavior yourself?
Forum: C# Jan 24th, 2008
Replies: 9
Views: 1,828
Posted By scru
Forum: C# Jan 24th, 2008
Replies: 9
Views: 1,828
Posted By scru
put this in the event handler for the delete button:


if (MessageBox.Show("Deleting data", "are you sure you want to delete the data?", MessageBoxButtons.YesNo) == DialogResult.Yes)
{
...
Forum: C# Jan 16th, 2008
Replies: 11
Views: 6,106
Posted By scru
Of course, Romasio, you fail to meet the OP's requirements.

Let's not over-complicate the scenario. I would advise the OP to use one of the methods suggested in #2...
Forum: C# Dec 29th, 2007
Replies: 4
Views: 798
Posted By scru
Denis is correct. Use FileMode.Create.
With this mode, if the file doesn't exist it is created, or else overwritten (I believe this is what you want).
Forum: C# Dec 13th, 2007
Replies: 5
Views: 1,042
Posted By scru
What project are you trying to debug? A library or a winforms or wpf application?
Forum: C# Dec 12th, 2007
Replies: 1
Views: 604
Posted By scru
Lol this one is funny. See this code:

if ((wide == false) && (this.Width <= 500))
timer1.Start();
this.Width += 10;

The C style brackletless block thing only works...
Forum: C# Dec 12th, 2007
Replies: 1
Solved: Using timer
Views: 1,347
Posted By scru
Couldn't read the solution, but for this kinda thing you might want to give WPF a shot. It has an animations engine that can handle this sort of thing with a breeze.
Forum: C# Dec 11th, 2007
Replies: 5
Views: 910
Posted By scru
YOu have to press the "Show All Settings" checkbox at the bottom of the options box. It will appear under Text Editor > C#
Forum: C# Dec 8th, 2007
Replies: 3
Views: 842
Posted By scru
Because if it does that it would be guessing (do you want a guessing compiler?)

It can't always be sure what you mean, so it doesn't know what to correct them based on.
Forum: C# Dec 8th, 2007
Replies: 2
Solved: ConfusedMuchMor
Views: 703
Posted By scru
it would be easy for me if you attached your sloution directory in a zip file.
Thank you.
Forum: C# Dec 8th, 2007
Replies: 2
Views: 1,207
Posted By scru
A field is a variable that resides inside an object.
fooObject.thisisafield;

A method is a function that resides inside an object.
fooObject.thisisamethod();

Notice that methods have the...
Forum: C# Dec 6th, 2007
Replies: 2
Views: 928
Posted By scru
You are quite right. There is a control called FileSystemWatcher that you can use. Unfortunately, this computer only has Visual C++ installed, so I can't really give you an example in C# (having...
Forum: C# Dec 1st, 2007
Replies: 8
Views: 2,123
Posted By scru
Just a note to nmnative. I know you're new, but try to learn to use the code block. It makes your code easier to read, and copy and paste.
Forum: C# Dec 1st, 2007
Replies: 2
Views: 8,896
Posted By scru
I *think* I see what you mean. Make the hidde form(from here referred to as formH) a member variable of the form with the open button(from here referred to as formO). That way, only one formH is ever...
Forum: C# Nov 20th, 2007
Replies: 2
Views: 883
Posted By scru
Properties are to control access to member variables. You can make them read only or read/write. I'm sure there's this other important thing but I do a lot of mushroom.

There's only two ways I...
Forum: C# Nov 16th, 2007
Replies: 8
Views: 19,959
Posted By scru
nope, as far as I know
Forum: C# Nov 16th, 2007
Replies: 8
Views: 19,959
Posted By scru
Well I can't conclusively say that one is better, because they serve different purposes.

Are you familiar with OOP? In OOP, static objects or members of a class that can be accessed directly from...
Forum: C# Nov 12th, 2007
Replies: 3
Views: 1,469
Posted By scru
Actually, I think you need to put the code
this.Invalidate() in the minimized event handler or similar.
Forum: C# Nov 6th, 2007
Replies: 2
Views: 2,094
Posted By scru
by buttons I assume you mean event handlers? (ignore that--I don't know why I'm so mean)

Anyway, try declaring the variables outside of any methods, but instead, declare them right after the class...
Showing results 1 to 26 of 26

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC