Click here to Skip to main content
15,868,164 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Ellipsis In Title Bar Of Window? Pin
Alan Burkhart16-Jun-18 23:55
Alan Burkhart16-Jun-18 23:55 
QuestionCreating an Application/Service that controls printing Pin
Maginot Junior10-Jun-18 8:55
Maginot Junior10-Jun-18 8:55 
AnswerRe: Creating an Application/Service that controls printing Pin
Richard MacCutchan11-Jun-18 3:27
mveRichard MacCutchan11-Jun-18 3:27 
AnswerRe: Creating an Application/Service that controls printing Pin
Gerry Schmitz11-Jun-18 5:36
mveGerry Schmitz11-Jun-18 5:36 
AnswerRe: Creating an Application/Service that controls printing Pin
Eddy Vluggen11-Jun-18 22:56
professionalEddy Vluggen11-Jun-18 22:56 
GeneralRe: Creating an Application/Service that controls printing Pin
Maginot Junior12-Jun-18 3:26
Maginot Junior12-Jun-18 3:26 
GeneralRe: Creating an Application/Service that controls printing Pin
Eddy Vluggen13-Jun-18 3:05
professionalEddy Vluggen13-Jun-18 3:05 
Questionconvert php to vb.net Pin
kanaga17097-Jun-18 21:32
kanaga17097-Jun-18 21:32 
I need to write/convert the below php code to vb.net?
is there any converter from php to vb.net?
anyone can help me to write it in vb.net ?


<?php
   /**
    */
       function get_token($userName, $userPassword) {
     
          
            //encapsulate the credentials into a base64 string
            $authString = base64_encode($userName . ":" . $userPassword);

            //init header array
            $header = array();
            $header[] = 'Content-length: 0';
            $header[] = 'Content-type: application/json';
            $header[] = 'Authorization:' . $authString;

            //init curl api and send request - returning $data
            $ch = curl_init();
            $timeout = 5;
            curl_setopt($ch, CURLOPT_URL, $Url);
            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
            curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
            curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
            $data = curl_exec($ch);

            //process response - return token or assert error
            if (curl_errno($ch)) {
               echo 'error:' . curl_error($ch) . '<br/>';
               curl_close($ch);
            return '';
            } else {
              //token valid
              $tk = json_decode($data, true);
              curl_close($ch);
              return $tk[0]['token'];
            }
        }

AnswerRe: convert php to vb.net Pin
Richard MacCutchan8-Jun-18 2:03
mveRichard MacCutchan8-Jun-18 2:03 
AnswerRe: convert php to vb.net Pin
Member 1405668820-Nov-18 22:08
Member 1405668820-Nov-18 22:08 
QuestionHow do I create a vb 2010 express 2010 db and save it to computer memory Pin
Member 1384460325-May-18 4:43
Member 1384460325-May-18 4:43 
AnswerRe: How do I create a vb 2010 express 2010 db and save it to computer memory Pin
Richard Deeming25-May-18 5:37
mveRichard Deeming25-May-18 5:37 
AnswerRe: How do I create a vb 2010 express 2010 db and save it to computer memory Pin
Gerry Schmitz25-May-18 7:41
mveGerry Schmitz25-May-18 7:41 
QuestionCross platform USBLib Read Write Pin
Member 137812001-May-18 0:50
Member 137812001-May-18 0:50 
AnswerRe: Cross platform USBLib Read Write Pin
Gerry Schmitz1-May-18 5:01
mveGerry Schmitz1-May-18 5:01 
GeneralRe: Cross platform USBLib Read Write Pin
Member 137812001-May-18 21:13
Member 137812001-May-18 21:13 
GeneralRe: Cross platform USBLib Read Write Pin
Gerry Schmitz2-May-18 8:09
mveGerry Schmitz2-May-18 8:09 
GeneralCRM10 SDK form .net Pin
Member 1110118121-Apr-18 2:23
Member 1110118121-Apr-18 2:23 
QuestionUpgrading or modernizing .NET application using WebBrowser Pin
tdunlap17-Apr-18 16:31
tdunlap17-Apr-18 16:31 
AnswerRe: Upgrading or modernizing .NET application using WebBrowser Pin
Eddy Vluggen18-Apr-18 1:19
professionalEddy Vluggen18-Apr-18 1:19 
AnswerRe: Upgrading or modernizing .NET application using WebBrowser Pin
Richard Deeming19-Apr-18 1:22
mveRichard Deeming19-Apr-18 1:22 
QuestionGet visited urls from firefox and chrome in xp and windows 7 and store to remote database Pin
Andiko10-Apr-18 22:07
Andiko10-Apr-18 22:07 
AnswerRe: Get visited urls from firefox and chrome in xp and windows 7 and store to remote database Pin
Pete O'Hanlon10-Apr-18 23:00
subeditorPete O'Hanlon10-Apr-18 23:00 
GeneralRe: Get visited urls from firefox and chrome in xp and windows 7 and store to remote database Pin
Andiko10-Apr-18 23:16
Andiko10-Apr-18 23:16 
GeneralRe: Get visited urls from firefox and chrome in xp and windows 7 and store to remote database Pin
Pete O'Hanlon10-Apr-18 23:38
subeditorPete O'Hanlon10-Apr-18 23:38 

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.