votes
LINQ queries
Hi all, I am trying to use a LINQ query in C# but it seems that VS is not recognizing the syntax. I have VS 2005 and .NET 3.5 installed. The following is the code: IEnumerable <db4o> retrieve = from db4o p in db ...
blah blah blah is here! blah blah » Close
Hi all, I am trying to use a LINQ query in C# but it seems that VS is not recognizing the syntax. I have VS 2005 and .NET 3.5 installed. The following is the code: IEnumerable <db4o> retrieve = from db4o p in db ...
I have noticed the C# spec doesn't allow for fields in an interface, only methods or events. Does this mean the only feasible way for me to implement a "field" is to do something like: public interface Field { string S_set( ...
Hello, I have been asked to create a little game which randomizes 4 boxes into 4 set positions in a line and then can swap them around until they are back into a correct order. I have been able to make them move around the 4 positions, i ...
Hi, I'm new to .net. I'm finding difficulty in figuring out how to Import emails from external email servers using C# ... I want to access any extern mail server to import email addresses from it ... Kindly Please guide me !!! I will real ...
I was looking to find a collision detector, For my first 2-D game, And found that code: private bool collide() { return !(Box1.Location.X > Box2.Location.X + Box2.Size.Width || Box1.Location. ...
Hi friends, I am trying to make a dynamic report but i have few questions: 1. How i can enter dynamic text (from the code) to the header? (if i try to put invisible text box in the page and copy the text form this Textbox to t ...
hello i'm trying to set the properties of some controls in my win app at runtime, for example the property depends on the user's authority if he has the authority the control is enabled or disabled and so on i'm trying to find out if i ...
hi, Friends, I need to call .net component from unmanaged code. I am using the com wrapper that is described in here: http://www.csharpfriends.com/articles/getarticle.aspx?articleID=113 It works well on 32-bit OS but doesn't work on 64-b ...
I want to search a word from all the words that appear in all my webpages, and show the result of occurrence in a textBox, in the default.aspx page. I want to get all the words that appear in my website in a string. Can it be done anyway?
Is there a function in the assembly namespace that allows you to test whether a type retrieved by "typeof" or .GetType(); inherits from a given interface? So for example: using System; namespace Test { public interface iT ...
hi.. i am working with our project study..it's about text to speech translator.. i was assigned to work with a program that will display the english equivalent of the words of the words in the database that is created by one of my groupma ...
hi, i am having problem with closing user control. i have some function in my parent form(with panel2): public void ActivateUserControlOne() { panel2.Controls.Clear(); UserControlOne = new UserControlOne(); ...
Hi all, I am using C# generics in the followin example.. IList <db4o> native = db.Query <db4o>(delegate(db4o data) { return data.Points == 100; }); ...
This may be completely impossible, or if it is possible it may involve a lot of p/invoking, but I was just curious if it is. Can I run an app, that may or may not be coded in C#, inside of another app, as an MDI form? An example would be ...
This code connects fine to my SQL database, but the DataGridView doesn't display any of the information that I queried. Any ideas on what I'm lacking here? using System; using System.Collections.Generic; using System.ComponentModel; us ...
Got feedack? Found a bug? report it here.