Search:
Type: Posts; User: jonlist
Search:
Search took 0.02 seconds.
-
February 10th, 2010, 11:00 AM
something like this:
private void button1_Click(object sender, EventArgs e)
{
var db = new testdbDataContext();
db.Users.InsertOnSubmit(new User() { User1 = textBox1.Text }); //ID is...
-
February 9th, 2010, 03:03 AM
Sorry, i just meant, that it is great when you encounter a problem that makes you realize that the structure of your program can be improved
-
February 8th, 2010, 04:45 PM
-
February 8th, 2010, 04:41 PM
As already mentioned C# does not support nested functions. (at least not without the use of delegates and anonymous functions)
Define the "find" method outside the main method, and make it static so...
-
February 8th, 2010, 04:36 PM
I'm guessing you are trying to access a member of an object inside a static method of that class that created the obejct?
This is not possible.
A static method is method on the class, not on the...
-
February 8th, 2010, 04:22 PM
To create the local DB:
In the menu bar click View->Server Explorer.
In the Server Explorer right click Data Connections and click add connection
Select Microsoft SQL Server Database File
Give...
-
February 7th, 2010, 05:37 PM
WPF is .NET, i think it was added in .NET 3.5.
It's just an alternative to the normal forms. You can edit the design of the forms with XML, much like you would edit a web page with HTML.
If you...
-
February 7th, 2010, 11:44 AM
Well, i figured it out.
If written a small article on codeproject.com about the result. Go check it out if you are interested:...
-
February 7th, 2010, 11:41 AM
This is a great example of events:
http://msdn.microsoft.com/en-us/library/aa645739(VS.71).aspx
-
February 7th, 2010, 11:38 AM
I haven't really worked with it, but WPF together with Expression Blend, could make your life a little easier.
Expression Blend is a Microsoft program for designers, et enables you to animate and...
-
February 7th, 2010, 11:18 AM
Int32 FileCheck() and Int32 FolderCheck() are both private, set them to protected and you should be able to access them from the CreateFolder class.
BaseFolderPath, FolderName and FileName should...
-
February 6th, 2010, 10:39 PM
I made an app once that required some math structures like vectors and matrices. I overloaded the operators on the classes i created in order to get the same behavior in the app as in math:
Ex:...
-
February 6th, 2010, 10:33 PM
Maybe you have some assemblies in you debug directory that are not properly bundled in the installation package?
-
February 6th, 2010, 10:29 PM
If it is the id attribute of the buttons you are talking about then I would also suggest used a different identifier. If you have an auto incrementer on the rows in the database, this would be an...
-
February 6th, 2010, 10:21 PM
how about:
int CountSigns(int value)
{
int length = value.ToString().Length;
if(value < 0)
lenght++;
return length;
-
February 6th, 2010, 10:48 AM
So you have the name of the type and you want to cast and object to that type.
Somebody have had a similar problem over at stack overflow check it out, it might help you:...
-
February 5th, 2010, 11:51 PM
continue:
http://www.core.org.cn/sofia/gallery/java/unit06/continue_syntax_lg.gif
break:
http://www.core.org.cn/sofia/gallery/java/unit06/break_syntax_lg.gif
-
February 5th, 2010, 11:30 PM
I'd make a Card class and a Deck class and enums for the suit, somthing like this:
enum Suit { Heart, Diamond, Spades, Club };
class Card
{
public Suit Suit { get; set; }...
-
February 5th, 2010, 10:54 PM
XML and LINQ are really creat for that kind of stuff.
Take a look at this: http://www.hookedonlinq.com/LINQtoXML5MinuteOverview.ashx
You could make an XML file looking somthink like this:
...
-
February 5th, 2010, 10:52 PM
I'd initialize the operand at the top, instead of just declaring it:
string operand = "+";
That way you'd know if it was ever assigned something else. But now that i think about it you'd prolly...
-
February 5th, 2010, 10:41 PM
I'm trying to implement a C# web socket server, but its giving me a few troubles.
I'm running a webserver(ASP.NET) to host the page with the javascript and the web socket server is implemented as a...
-
December 10th, 2009, 10:58 PM
Hi
I'm developing a (very) simple editor (more like a proof of concept thing - but anywho..)
I just finished the plugin framework and stated to create a "snippet" plugin for the editor, when i...
|
Click Here to Expand Forum to Full Width
|