blah blah blah is here! blah blah » Close

0
votes
1 answers

Fields in interfaces

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( ...

0
votes
1 answers

Random positioning

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 ...

0
votes
1 answers

How to Import emails from external email server using C#

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 ...

0
votes
1 answers

collision detector

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. ...

0
votes
1 answers

Report Viewer

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 ...

0
votes
1 answers

How to Set A control properties useing app.config or Settings.setting files

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 ...

0
votes
1 answers

Calling .NET from COM on 64-bit

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 ...

0
votes
1 answers

Search in my web pages

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?

0
votes
1 answers

Using typeof to determine if a type inherits an interface

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 ...

0
votes
1 answers

help me.

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 ...

0
votes
1 answers

How to Close User Control?

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(); ...

0
votes
1 answers

Retrieve value

Hi all, I am using C# generics in the followin example.. IList <db4o> native = db.Query <db4o>(delegate(db4o data) { return data.Points == 100; }); ...

0
votes
1 answers

Run another app inside your MDI form? Maybe impossible...

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 ...

0
votes
1 answers

DataGridView not displaying

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 ...

0
votes
1 answers

How to wait for a databound dropdown to load?

Thanks for taking the time to read this. I am sure this answer is out there a million times, but I can't seem to even "look it up" correctly. I am using a dropdown list that is populated from the DB using databinding -- it's a l ...

Feedback