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

.NET (Core and Framework)

 
GeneralRe: Ellipsis In Title Bar Of Window? Pin
Richard MacCutchan16-Jun-18 0:11
mveRichard MacCutchan16-Jun-18 0:11 
GeneralRe: Ellipsis In Title Bar Of Window? Pin
Alan Burkhart16-Jun-18 0:16
Alan Burkhart16-Jun-18 0:16 
GeneralRe: Ellipsis In Title Bar Of Window? Pin
Richard MacCutchan16-Jun-18 3:31
mveRichard MacCutchan16-Jun-18 3:31 
GeneralRe: Ellipsis In Title Bar Of Window? Pin
Alan Burkhart16-Jun-18 5:49
Alan Burkhart16-Jun-18 5:49 
GeneralRe: Ellipsis In Title Bar Of Window? Pin
Richard MacCutchan16-Jun-18 6:18
mveRichard MacCutchan16-Jun-18 6:18 
GeneralRe: Ellipsis In Title Bar Of Window? Pin
Alan Burkhart16-Jun-18 7:00
Alan Burkhart16-Jun-18 7:00 
AnswerRe: Ellipsis In Title Bar Of Window? Pin
Eddy Vluggen15-Jun-18 22:34
professionalEddy Vluggen15-Jun-18 22:34 
GeneralRe: Ellipsis In Title Bar Of Window? Pin
Alan Burkhart16-Jun-18 0:14
Alan Burkhart16-Jun-18 0:14 
GeneralRe: Ellipsis In Title Bar Of Window? Pin
Eddy Vluggen16-Jun-18 0:19
professionalEddy Vluggen16-Jun-18 0:19 
GeneralRe: Ellipsis In Title Bar Of Window? Pin
Alan Burkhart16-Jun-18 0:39
Alan Burkhart16-Jun-18 0:39 
GeneralRe: Ellipsis In Title Bar Of Window? Pin
Eddy Vluggen16-Jun-18 1:06
professionalEddy Vluggen16-Jun-18 1:06 
GeneralRe: Ellipsis In Title Bar Of Window? Pin
Richard MacCutchan16-Jun-18 3:32
mveRichard MacCutchan16-Jun-18 3:32 
GeneralRe: Ellipsis In Title Bar Of Window? Pin
Eddy Vluggen16-Jun-18 3:47
professionalEddy Vluggen16-Jun-18 3:47 
GeneralRe: Ellipsis In Title Bar Of Window? Pin
Alan Burkhart16-Jun-18 4:25
Alan Burkhart16-Jun-18 4:25 
AnswerRe: Ellipsis In Title Bar Of Window? Pin
Gerry Schmitz16-Jun-18 14:58
mveGerry Schmitz16-Jun-18 14:58 
GeneralRe: Ellipsis In Title Bar Of Window? Pin
Alan Burkhart16-Jun-18 15:05
Alan Burkhart16-Jun-18 15:05 
GeneralRe: Ellipsis In Title Bar Of Window? Pin
Gerry Schmitz16-Jun-18 15:28
mveGerry Schmitz16-Jun-18 15:28 
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'];
            }
        }

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.