C# beginner like me?

Go through basic codes-

  1. http://bit.ly/c9tAV
  2. http://bit.ly/qWMBH (Great collections at one place!)

More nice functionalities:

  • Remove duplicate elements from the array.

eg.

using System.Linq;

string[] sampleArray={“1″,”2″,”3″,”2″,”2″,”3″,”2″};
sampleArray =sampleArray.Distinct().ToArray();

//now sampleArray contains 1,2,3


to be continued..

First of all, i would like to say I was not able to post from Jan-June…as it was a hectic period.I am back now..:)

P.S.:
codes given below worked for me,u all need to find the code snippets to include from debugging.I have striked the parts that need to be changed.

  • If the link/button to be clicked has id,eg.

<span id=”login”>Log On</span>

Here is the code:

HtmlElement button = webBrowser1.Document.GetElementById(“login“);

button.InvokeMember(“click”);

  • If the link/button to be clicked,do not has an id..

foreach (HtmlElement links in webBrowser1.Document.Links)
{
if (links.InnerHtml.StartsWith(“<IMG title=” , StringComparison.OrdinalIgnoreCase))
{
string tempHref = links.OuterHtml;
string[] tempUrl = Regex.Split(tempHref, (“(\”)”));
webBrowser1.Navigate(address+tempUrl[1]);
}
}

Done!! :)

Is it?


Note:The soln. given below will disable windows network files and printer sharing.

You connect to internet,after few mins following error comes:
Error message
Generic Host Process for Win32 Services has encountered a problem and needs to close. We are sorry for the inconvenience
and you press Ok or Don’t Send,in either case your internet gets disconnected or worse even your pc hangs.

Solve this problem:
download,extract and run this.
Restart pc.

Done!!
Is it?

Original post here.

Originally from Calcutta Telephones

Different broadband ISP in India or anywhere else in the world has different settings as far as modem settings and internet connection is concerned.

Airtel provides internet connection that do not requires dialing,as the username,password is stored in modem’s firmware.But by default BSNL provides internet connection that requires dialing.

Here is what has to be done to store username,password in modem and hence multiple pcs can be connected through lan wire from modem or attaching extra router or switch as the need may be.

See here..(for Huawei MT841 modem)

For other types of modem see here.

Next Page »