Forum: C# Dec 6th, 2008 |
| Replies: 8 Views: 1,034 The Uri type is not string so you have to implement the code as follow
webBrowser1.Url = new Uri( "file:\\webpage\Maphs v1.htm"); |
Forum: C# Nov 15th, 2008 |
| Replies: 5 Views: 2,144 SendKeys.Send("{your key code here}"); |
Forum: C# Nov 15th, 2008 |
| Replies: 5 Views: 695 If you have a class that leavrages your entire activity then you can implement IComparable interface method CompareTo() it is the best solution |
Forum: C# Nov 15th, 2008 |
| Replies: 8 Views: 849 If you are satisfied please mark the tread as solved
Happy coding |
Forum: C# Nov 15th, 2008 |
| Replies: 5 Views: 695 Could you tell me what is your final purpose may I give you better idea |
Forum: C# Nov 15th, 2008 |
| Replies: 8 Views: 849 If you use the console to input data then use
Console.ReadLine() as follow
Say that you want to enter a string
Console.WriteLine("enter your name");
string Name = Console.ReadLine();
... |
Forum: C# Nov 12th, 2008 |
| Replies: 4 Views: 2,743 It's very simple you can do this in one single line
First, include the System.IO;
if you have permission to read from files
string Contents = new StreamReader(path).ReadToEnd(); |
Forum: C# Nov 12th, 2008 |
| Replies: 5 Views: 483 I'm totally agree with the charmant Antenka |
Forum: C# Oct 29th, 2008 |
| Replies: 13 Views: 902 A sealed class is the one that you can't inherited from it since an error will occur if a sealed class is specified as the base class of another class. at the contrast of the normal class format
... |
Forum: C# Mar 19th, 2008 |
| Replies: 5 Views: 5,033 I think that in addition to what has said in http://fci-h.blogspot.com/2008/03/oo...rfaces_05.html about interfaces witch i find very interesting in fact.
I can add other think
Interfaces are... |
Forum: C# Feb 23rd, 2008 |
| Replies: 7 Views: 2,859 I advise you remodel the program try to write a program as simpliest as possible to avoid problems |
Forum: C# Feb 23rd, 2008 |
| Replies: 7 Views: 2,859 you have to define a string variable in witch you put the the text1.Text content, beacause the using it in the button1_click and OnTimer methods make your code thread unsafe,
string myString =... |
Forum: C# Jan 31st, 2008 |
| Replies: 3 Views: 1,791 I give an alternative to do so:
First:
Create a class in witch u create a static string variable
Here is the procedure:
first step:
public class Variables
{
public static string... |
Forum: C# Jan 29th, 2008 |
| Replies: 7 Views: 831 don't forget to include thoses directories:
System.xml and System.xml.xsl enjoy your self |
Forum: C# Jan 29th, 2008 |
| Replies: 7 Views: 831 open I give u a simple way to do that throw this example:
open a new bloc note
copy and paste this :
<?xml version="1.0" encoding="utf-8" ?>
<Cars>
<Car>
<Name>Car1</Name>
... |
Forum: C# Jan 12th, 2008 |
| Replies: 6 Views: 891 yes, the experts advises are use the sqldata within the C# UI is more performant thant with oledbdata |
Forum: C# Dec 16th, 2007 |
| Replies: 12 Views: 1,267 |
Forum: C# Dec 16th, 2007 |
| Replies: 2 Views: 2,757 If u try the previous code The FireTheKeyPressEvent() will not appear in the method list when u instantiate a new compoment object now try to put public void FireTheKeyPressEvent() rather thant ... |
Forum: C# Dec 16th, 2007 |
| Replies: 2 Views: 2,757 I didn't understand very well your quqestion but I guess u shoud add an event to your customized component as a textbox nested in a componen u can not use directly its properties methods and events.... |
Forum: C# Dec 16th, 2007 |
| Replies: 12 Views: 1,267 sorry SharpDevelop 2.0 istead of IDE harpDevelp |
Forum: C# Dec 16th, 2007 |
| Replies: 12 Views: 1,267 u can download the Visual C# express edition there are 2005 and 2008 versions u can find them in the microsoft web site
Or u can use the sharpDevelp 2.0 IDE both are free |
Forum: C# Dec 16th, 2007 |
| Replies: 12 Views: 1,267 There are major differences between java and C#
I give u some big differences
For example you can use only one public class in the same package in java context
in C# I can declare more than one... |