Click here to Skip to main content
15,891,657 members
Home / Discussions / C#
   

C#

 
GeneralRe: Adding Reference to Dll (Class Library ) & Using statements Pin
Richard Andrew x6411-Apr-12 5:12
professionalRichard Andrew x6411-Apr-12 5:12 
GeneralRe: Adding Reference to Dll (Class Library ) & Using statements Pin
Smith#11-Apr-12 21:34
Smith#11-Apr-12 21:34 
GeneralRe: Adding Reference to Dll (Class Library ) & Using statements Pin
Richard Andrew x6412-Apr-12 5:13
professionalRichard Andrew x6412-Apr-12 5:13 
QuestionDatabase Explorer Query Pin
mauricemcse9-Apr-12 12:38
mauricemcse9-Apr-12 12:38 
AnswerRe: Database Explorer Query Pin
PIEBALDconsult9-Apr-12 14:27
mvePIEBALDconsult9-Apr-12 14:27 
GeneralRe: Database Explorer Query Pin
mauricemcse9-Apr-12 16:25
mauricemcse9-Apr-12 16:25 
GeneralRe: Database Explorer Query Pin
Richard MacCutchan9-Apr-12 21:09
mveRichard MacCutchan9-Apr-12 21:09 
AnswerRe: Database Explorer Query Pin
Dave Kreskowiak9-Apr-12 14:40
mveDave Kreskowiak9-Apr-12 14:40 
GeneralGetting Higlighted/Selected Text in C# Pin
Alchemist28899-Apr-12 0:06
Alchemist28899-Apr-12 0:06 
GeneralRe: Getting Higlighted/Selected Text in C# Pin
Bernhard Hiller9-Apr-12 23:36
Bernhard Hiller9-Apr-12 23:36 
Questionimporting RowName and ColumnName from an excelfile to a datagridview ... Pin
nassimnastaran8-Apr-12 8:39
nassimnastaran8-Apr-12 8:39 
AnswerRe: importing RowName and ColumnName from an excelfile to a datagridview ... Pin
Mycroft Holmes8-Apr-12 20:54
professionalMycroft Holmes8-Apr-12 20:54 
GeneralRe: importing RowName and ColumnName from an excelfile to a datagridview ... Pin
nassimnastaran9-Apr-12 4:18
nassimnastaran9-Apr-12 4:18 
QuestionDatabase Programming in WPF Pin
TAN TH7-Apr-12 23:10
TAN TH7-Apr-12 23:10 
AnswerRe: Database Programming in WPF Pin
Mycroft Holmes8-Apr-12 0:07
professionalMycroft Holmes8-Apr-12 0:07 
GeneralRe: Database Programming in WPF Pin
TAN TH8-Apr-12 20:32
TAN TH8-Apr-12 20:32 
GeneralRe: Database Programming in WPF Pin
Mycroft Holmes8-Apr-12 20:50
professionalMycroft Holmes8-Apr-12 20:50 
GeneralRe: Database Programming in WPF Pin
TAN TH9-Apr-12 13:56
TAN TH9-Apr-12 13:56 
Questionaccessing image by bit in c # Pin
waqar rashid7-Apr-12 21:56
waqar rashid7-Apr-12 21:56 
AnswerRe: accessing image by bit in c # Pin
Pete O'Hanlon7-Apr-12 22:49
mvePete O'Hanlon7-Apr-12 22:49 
GeneralRe: accessing image by bit in c # Pin
Vipin_Arora8-Apr-12 21:36
Vipin_Arora8-Apr-12 21:36 
Questionlog into a website Pin
DanYELL7-Apr-12 8:15
DanYELL7-Apr-12 8:15 
I put together a simple web browser using c#. Its great, its simple. I
added a button. I click the button and I want to be able to log into a
particular website. I have this code:

string username = "username";
string password = "pass";
string commit = "Login";
string postData = string.Format("txtuserid={0}&txtpassword={1}&btnlogin={2}", username, password, commit);

ASCIIEncoding enc = new ASCIIEncoding();

webBrowser1.Navigate("new page.html", "", enc.GetBytes(postData), "Content-Type: application/x-www-form-urlencoded\r\n");


But it doesnt do anything. Is there a way to make the username and password
appear in there respective boxes? Is there another command that I use to
make it click that Login button and move onto the next page?

Please any response any one can give me will be greatly appreciated.
AnswerRe: log into a website Pin
Not Active7-Apr-12 11:08
mentorNot Active7-Apr-12 11:08 
GeneralRe: log into a website Pin
DanYELL7-Apr-12 13:47
DanYELL7-Apr-12 13:47 
GeneralRe: log into a website Pin
DanYELL9-Apr-12 3:46
DanYELL9-Apr-12 3:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.