Click here to Skip to main content
15,885,537 members
Home / Discussions / C#
   

C#

 
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 
QuestionGetting values from tasklist.exe /v Pin
CCodeNewbie7-Apr-12 6:24
CCodeNewbie7-Apr-12 6:24 
AnswerRe: Getting values from tasklist.exe /v Pin
Richard Andrew x647-Apr-12 6:42
professionalRichard Andrew x647-Apr-12 6:42 
GeneralRe: Getting values from tasklist.exe /v Pin
CCodeNewbie7-Apr-12 6:55
CCodeNewbie7-Apr-12 6:55 
AnswerRe: Getting values from tasklist.exe /v Pin
Alan N7-Apr-12 9:55
Alan N7-Apr-12 9:55 
AnswerRe: Getting values from tasklist.exe /v Pin
Richard Andrew x647-Apr-12 10:23
professionalRichard Andrew x647-Apr-12 10:23 
GeneralRe: Getting values from tasklist.exe /v Pin
CCodeNewbie7-Apr-12 11:18
CCodeNewbie7-Apr-12 11:18 
GeneralRe: Getting values from tasklist.exe /v Pin
Luc Pattyn7-Apr-12 11:35
sitebuilderLuc Pattyn7-Apr-12 11:35 
GeneralRe: Getting values from tasklist.exe /v Pin
CCodeNewbie7-Apr-12 11:55
CCodeNewbie7-Apr-12 11:55 
AnswerRe: Getting values from tasklist.exe /v Pin
Luc Pattyn7-Apr-12 12:56
sitebuilderLuc Pattyn7-Apr-12 12:56 
GeneralRe: Getting values from tasklist.exe /v Pin
CCodeNewbie7-Apr-12 14:01
CCodeNewbie7-Apr-12 14:01 
GeneralRe: Getting values from tasklist.exe /v Pin
Eddy Vluggen8-Apr-12 8:53
professionalEddy Vluggen8-Apr-12 8:53 
GeneralRe: Getting values from tasklist.exe /v Pin
CCodeNewbie8-Apr-12 9:06
CCodeNewbie8-Apr-12 9:06 
GeneralRe: Getting values from tasklist.exe /v Pin
CCodeNewbie8-Apr-12 9:11
CCodeNewbie8-Apr-12 9:11 
GeneralRe: Getting values from tasklist.exe /v - update Pin
CCodeNewbie7-Apr-12 23:24
CCodeNewbie7-Apr-12 23:24 

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.