You are here:

C#/Remote Desktop in .Net

Advertisement


Question
Hi, i need to develop program to use in remote desktop. i search on net and i got one tutorial for it. and its was good. and i used Microsoft terminal Services Control Type Library (ADD->reference-mtsctlib)  and i did. I need to know whether there are some thing related to remote desktop.

AND 2nd Question

i need to develop a web page in which i can access gmail accounts contact in my web page. by specifing the gmail id and password.
I believe u understood my query.

Thanks

With regards.
Nezam

Answer
about your first question, unfortunately I did not work on that and I cannot help you in that issue,
about second one you need to connect to google via pop3 ,
I mean you should write a client software to catch email like outlook (pop3) and send email via smtp,
this is a code for pop3
http://www.eggheadcafe.com/tutorials/aspnet/4b2941c6-fb99-4745-8437-3a2e28b778c4...

do not forget, google use TSL (secure connection)
http://mail.google.com/support/bin/answer.py?hl=en&answer=13287

sending email
       public Boolean SendEmail(String strPort, String strfrom, String strUserName, String strPassword, String StrSubject, String StrTo, String StrBody, String strServer)
       {
           try
           {
               System.Web.Mail.MailMessage m = new System.Web.Mail.MailMessage();

               m.From = strfrom;
               m.To = StrTo;
               m.Subject = StrSubject;
               m.Body = StrBody;
               m.BodyEncoding = System.Text.UTF8Encoding.UTF8;
               m.BodyFormat = System.Web.Mail.MailFormat.Html;
               m.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");// 'basic authentication;
               m.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport", strPort);
               m.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", strUserName);// 'set your username here

               m.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", strPassword);// 'set your password here

               System.Web.Mail.SmtpMail.SmtpServer = strServer;
               System.Web.Mail.SmtpMail.Send(m);
               return true;
           }
           catch (Exception ex)
           {
               // return ex.Message ;
               return false;
           }

       }

of course in .net 3.5 there is another way to send email.

C#

All Answers


Answers by Expert:


Ask Experts

Volunteer


Hosnieh [Sara]

Expertise

Questions which I can answers: 1- Programming (C#.net, Vb.net, javascript, HTML) more Web applications 2- CSS 3-Databases (Ms SQL server -all versions) 4-OS (workstation and servers (windows)) 5- MS office 6- General problems in computer software I cannot answer other kinds of questions which I did not mention here.

Experience

my CV: http://iran-americamarket.com/Contact.aspx I have more than 8 years Experience in IT field. my core skills are : • Asp.net Developer (Portal, Dynamic websites ,e-commercial websites) • Visual studio.net 2003,2005,2008 (VB.net , C#.net , AJAX.net) • O.O programming (n-tier Architecture) • Database (SQL server 2000-2005, Oracle9i, Ms Access) , TSQL, Stored procedures, Triggers • IIS 5-6 , SSL (Installation and configuration SSL) , Network(TCP/IP ,Active directory , DHCP, … ), Windows 2000-2003 Server Configuration and administration • UML (usecase diagram, class diagram) , Microsoft Project • Graphics Design( Photoshop , Flash ) • JavaScript , CSS, DHTML, XML • Hardware (physical installation, configuration , and driver installation) • Ms Office all versions (Ms word, Ms Access, Ms Excel, Ms Outlook , Ms FrontPage, and etc) • OS (Windows –Linux) and VMware • Network Monitoring (Solarwinds) • Computer Teacher, English Teacher • MATLAB (simulations and computation projects)

Organizations
-

Publications
Translation Experience English to Farsi • Use brain scan to predict when people will buy products . May 2008 (Published in AI Magazine) – Medicine , AI • Totally tubular motors _Tomorrow automation technology : March 2008 (Published in AI Magazine) – AI , Mechanic, Industry • Improving PLC compatibility and function flexibility: March 2008 (Published in AI Magazine) – AI , Robotics , Industry • Make packaging lines more flexible: January 2008 (Published in AI Magazine) – AI , Robotics , Industry • Personal CNC : December 2007 (Published in AI Magazine) – AI , Medical , Industry • Multipurpose optical tools Characterize as MEMS: December 2007 (Published in AI Magazine)- optical physics • Managing Innovation: November 2007 (Published in AI Magazine) – IT Management • Calculating the total value of ownership (TVO):October 2007 (Published in San-ate Hooshmand Magazine) -IT and Economics

Education/Credentials
I am currently student and doing my Master in Computer Network Engineering

Awards and Honors
- Poster about new methods of management in Organization( Entrepreneurship ) - 2007

Past/Present Clients
-

©2012 About.com, a part of The New York Times Company. All rights reserved.