Click here to Skip to main content
14,607,267 members
   

C#

 
GeneralRe: Make a simple shape/pattern Pin
Member 798912210-May-20 20:55
MemberMember 798912210-May-20 20:55 
GeneralRe: Make a simple shape/pattern Pin
Pete O'Hanlon10-May-20 21:10
subeditorPete O'Hanlon10-May-20 21:10 
AnswerRe: Make a simple shape/pattern Pin
Richard MacCutchan10-May-20 21:27
mveRichard MacCutchan10-May-20 21:27 
GeneralRe: Make a simple shape/pattern Pin
M.S.S.E10-May-20 21:37
MemberM.S.S.E10-May-20 21:37 
QuestionRe: Make a simple shape/pattern Pin
Eddy Vluggen11-May-20 2:48
professionalEddy Vluggen11-May-20 2:48 
Questionintegrate IShellFolderViewCB with c#. Pin
Member 125113667-May-20 2:06
MemberMember 125113667-May-20 2:06 
AnswerRe: integrate IShellFolderViewCB with c#. Pin
Richard MacCutchan7-May-20 2:22
mveRichard MacCutchan7-May-20 2:22 
Questioni want to open a form inside a new webbrowser window.i am using javascript fuction Pin
Member 148083135-May-20 17:57
MemberMember 148083135-May-20 17:57 
private void button1_Click_1(object sender, EventArgs e)
        {


            string formCode = "<form id=\"{0}\" name=\"{0}\" method=\"post\" action=\"{1}\">" +

                            "<input type=\"hidden\" name=\"txntype\" value=\"sale\">" +

                            "<input type=\"hidden\" name=\"timezone\" value=\"IST\"/>" +

                            "<input type=\"hidden\" name=\"txndatetime\" value=\"{2}\"/>" +

                            "<input type=\"hidden\" name=\"hash\" value=\"{3}\"/>" +

                            "<input type=\"hidden\" name=\"storename\" value=\"{4}\" />" +

                            "<input type=\"hidden\" name=\"mode\" value=\"payonly\"/>" +

                            "<input type=\"hidden\" name=\"currency\" value=\"{5}\" />" +

                            "<input type=\"hidden\" name=\"chargetotal\" value=\"{6}\"/>" +

                                                                                                    "<input type=\"hidden\" name=\"language\" value=\"en_EN\"/>" +

                                                                                                    "<input type=\"hidden\" name=\"authenticateTransaction\" value=\"true\"/>" +

                          

                            "</form>";




            string formScript = "<script language=\"javascript\" type=\"text/javascript\">" +

                             "document.getElementById('{0}').submit();" +

                             "</script>";








            string formName = "form1";

            string urlString = "https://test.ipg-online.com/connect/gateway/processing";

            string storename = this.textBox1.Text;

            string txndatetime = DateTime.Now.ToString(@"yyyy\:MM\:dd-HH\:mm\:ss");

            string chargetotal = this.textBox2.Text;

            string sharedsecret = this.textBox4.Text;

            string currency = this.textBox3.Text;

            string data = storename + txndatetime + chargetotal + currency + sharedsecret;
            ////string hexdata = StringToHex(data);
            ////string hashdata = ComputeSha256Hash(hexdata);

            string hash = calculateHashFromString(new StringBuilder(data), "SHA1");

            //string additionalHeaders = "Content-Type: application/x-www-form-urlencoded\r\nReferer:http://foo.com\r\n";

            //string targetFrameName = "";
            //ltrForm.Text = string.Format(formCode, formName, formAction, txndatetime, hash, storename, currency, chargetotal);

            //ltrScript.Text = string.Format(formScript, formName);

            string postdata = string.Format(formCode, formName, urlString, txndatetime, hash, storename, currency, chargetotal + formScript + formName);
            //string postdata = urlString + hashdata;
            //byte[] array = Encoding.ASCII.GetBytes(postdata);

            webBrowser1.Navigate(urlString, postdata);
}

Rant[REPOST] i want to open a form inside a new webbrowser window.i am using javascript fuction Pin
Richard Deeming6-May-20 0:44
mveRichard Deeming6-May-20 0:44 
QuestionHow can I open a System.Windows.Forms.Form with its own message pump from a WPF application? Pin
arnold_w4-May-20 5:29
Memberarnold_w4-May-20 5:29 
AnswerRe: How can I open a System.Windows.Forms.Form with its own message pump from a WPF application? Pin
Richard MacCutchan4-May-20 9:07
mveRichard MacCutchan4-May-20 9:07 
GeneralRe: How can I open a System.Windows.Forms.Form with its own message pump from a WPF application? Pin
arnold_w4-May-20 9:13
Memberarnold_w4-May-20 9:13 
GeneralRe: How can I open a System.Windows.Forms.Form with its own message pump from a WPF application? Pin
Richard MacCutchan4-May-20 9:16
mveRichard MacCutchan4-May-20 9:16 
GeneralRe: How can I open a System.Windows.Forms.Form with its own message pump from a WPF application? Pin
arnold_w4-May-20 9:21
Memberarnold_w4-May-20 9:21 
GeneralRe: How can I open a System.Windows.Forms.Form with its own message pump from a WPF application? Pin
Richard MacCutchan4-May-20 9:30
mveRichard MacCutchan4-May-20 9:30 
GeneralRe: How can I open a System.Windows.Forms.Form with its own message pump from a WPF application? Pin
Richard Andrew x644-May-20 10:13
professionalRichard Andrew x644-May-20 10:13 
GeneralRe: How can I open a System.Windows.Forms.Form with its own message pump from a WPF application? Pin
arnold_w4-May-20 10:16
Memberarnold_w4-May-20 10:16 
GeneralRe: How can I open a System.Windows.Forms.Form with its own message pump from a WPF application? Pin
Richard Andrew x644-May-20 10:20
professionalRichard Andrew x644-May-20 10:20 
GeneralRe: How can I open a System.Windows.Forms.Form with its own message pump from a WPF application? Pin
arnold_w4-May-20 10:24
Memberarnold_w4-May-20 10:24 
GeneralRe: How can I open a System.Windows.Forms.Form with its own message pump from a WPF application? Pin
Richard Andrew x644-May-20 10:25
professionalRichard Andrew x644-May-20 10:25 
GeneralRe: How can I open a System.Windows.Forms.Form with its own message pump from a WPF application? Pin
arnold_w4-May-20 10:36
Memberarnold_w4-May-20 10:36 
GeneralRe: How can I open a System.Windows.Forms.Form with its own message pump from a WPF application? Pin
Richard Andrew x644-May-20 11:48
professionalRichard Andrew x644-May-20 11:48 
GeneralRe: How can I open a System.Windows.Forms.Form with its own message pump from a WPF application? Pin
arnold_w4-May-20 21:12
Memberarnold_w4-May-20 21:12 
GeneralRe: How can I open a System.Windows.Forms.Form with its own message pump from a WPF application? Pin
arnold_w4-May-20 22:30
Memberarnold_w4-May-20 22:30 
GeneralRe: How can I open a System.Windows.Forms.Form with its own message pump from a WPF application? Pin
Richard MacCutchan4-May-20 22:59
mveRichard MacCutchan4-May-20 22:59 

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.