Click here to Skip to main content
14,845,938 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: How to take a screenshot? Pin
OriginalGriff25-Feb-21 21:20
mveOriginalGriff25-Feb-21 21:20 
AnswerRe: How to take a screenshot? Pin
mayom tyler26-Feb-21 19:42
Membermayom tyler26-Feb-21 19:42 
QuestionRe: How to take a screenshot? Pin
Eddy Vluggen6-Mar-21 10:07
professionalEddy Vluggen6-Mar-21 10:07 
QuestionVB, Linq, Filter out List(Of with a list(Of string Pin
jkirkerx16-Feb-21 11:33
professionaljkirkerx16-Feb-21 11:33 
AnswerRe: VB, Linq, Filter out List(Of with a list(Of string [solved] Pin
jkirkerx16-Feb-21 11:47
professionaljkirkerx16-Feb-21 11:47 
SuggestionRe: VB, Linq, Filter out List(Of with a list(Of string [solved] Pin
Richard Deeming16-Feb-21 22:18
mveRichard Deeming16-Feb-21 22:18 
GeneralRe: VB, Linq, Filter out List(Of with a list(Of string [solved] Pin
jkirkerx17-Feb-21 4:46
professionaljkirkerx17-Feb-21 4:46 
QuestionConvert C to VB Pin
leofoe15-Feb-21 22:52
Memberleofoe15-Feb-21 22:52 
I have used https://www.codeproject.com/Articles/1113626/Adding-the-Missing-Real-Time-Clock-to-Windows-IoT to get 2 functions to convert int to bcd and vice versa. As I use Visual Basic I converted them, but the functions don't seem to create the right output. Please advise.
static int BcdToInt(byte bcd)
{
    int retVal = (bcd & 0xF) + ((bcd >> 4) * 10);
    return retVal;
}

Private Shared Function bcdToInt(bcd As Byte)
    Dim retVal As Integer = (bcd And &HF) + ((bcd >> 4) * 10)
    Return retVal
End Function

static byte IntToBcd(int v)
{
    var retVal =(byte)( (v % 10) | (v / 10) << 0x4);
    return retVal;
}

Private Shared Function intToBcd(v As Integer)
     Dim retVal As Byte = (v Mod 10) Or ((v / 10) << 4)
     Return retVal
End Function


modified 16-Feb-21 5:27am.

AnswerRe: Convert C to VB Pin
Richard Deeming15-Feb-21 23:38
mveRichard Deeming15-Feb-21 23:38 
GeneralRe: Convert C to VB Pin
leofoe15-Feb-21 23:46
Memberleofoe15-Feb-21 23:46 
GeneralRe: Convert C to VB Pin
Richard Deeming16-Feb-21 1:19
mveRichard Deeming16-Feb-21 1:19 
QuestionDeleting a sent file Pin
Member 1152288212-Feb-21 11:11
MemberMember 1152288212-Feb-21 11:11 
AnswerRe: Deleting a sent file Pin
Ralf Meier12-Feb-21 12:26
professionalRalf Meier12-Feb-21 12:26 
AnswerRe: Deleting a sent file Pin
Dave Kreskowiak12-Feb-21 15:51
mveDave Kreskowiak12-Feb-21 15:51 
AnswerRe: Deleting a sent file Pin
Richard Deeming14-Feb-21 21:51
mveRichard Deeming14-Feb-21 21:51 
Questionwkhtmltopdf.exe - Process-Start over COM-Interop - Access denied Pin
VoidFunctionMain10-Feb-21 4:48
MemberVoidFunctionMain10-Feb-21 4:48 
QuestionCode for Saving work Pin
Wamono erick5-Feb-21 7:52
MemberWamono erick5-Feb-21 7:52 
AnswerRe: Code for Saving work Pin
Dave Kreskowiak5-Feb-21 8:28
mveDave Kreskowiak5-Feb-21 8:28 
QuestionProblem when setting the ReadOnly state of a property: CLOSED Pin
mo149231-Jan-21 5:56
Membermo149231-Jan-21 5:56 
QuestionInterfacing with Zlib.dll Pin
albert_redditt28-Jan-21 10:16
Memberalbert_redditt28-Jan-21 10:16 
AnswerRe: Interfacing with Zlib.dll Pin
20212a28-Jan-21 10:30
Member20212a28-Jan-21 10:30 
AnswerRe: Interfacing with Zlib.dll Pin
Richard MacCutchan28-Jan-21 21:14
mveRichard MacCutchan28-Jan-21 21:14 
QuestionUnable to complete the code for Web scrapping Pin
The Mentee27-Jan-21 8:56
MemberThe Mentee27-Jan-21 8:56 
AnswerRe: Unable to complete the code for Web scrapping Pin
Richard Deeming27-Jan-21 21:49
mveRichard Deeming27-Jan-21 21:49 
GeneralRe: Unable to complete the code for Web scrapping Pin
The Mentee28-Jan-21 0:06
MemberThe Mentee28-Jan-21 0:06 

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.