Forum: C# Oct 20th, 2008 |
| Replies: 6 Views: 609 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 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 Project -> Properties
Select your choice from the target framework dropdownbox |
Forum: C# Jan 28th, 2008 |
| Replies: 7 Views: 842 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 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 Try see if this.tblDetalnaBindingSource.CancelEdit() will stop it from deleting. |
Forum: C# Jan 24th, 2008 |
| Replies: 9 Views: 1,828 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 May I ask how you accessed this wizard? |
Forum: C# Jan 24th, 2008 |
| Replies: 9 Views: 1,828 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 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 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 What project are you trying to debug? A library or a winforms or wpf application? |
Forum: C# Dec 12th, 2007 |
| Replies: 1 Views: 604 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 Views: 1,347 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 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 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 Views: 703 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 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 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 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 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 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 |
Forum: C# Nov 16th, 2007 |
| Replies: 8 Views: 19,959 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 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 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... |