Click here to Skip to main content
15,867,308 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: SQL error on bound datagridviews (master detail) Pin
Richard Deeming1-Jun-20 7:48
mveRichard Deeming1-Jun-20 7:48 
GeneralRe: SQL error on bound datagridviews (master detail) Pin
roa20112-Jun-20 0:53
roa20112-Jun-20 0:53 
Questionexcel vba combobox and checkbox elements resizing Pin
Mat 25728-May-20 3:14
Mat 25728-May-20 3:14 
Questioni want to take average of it of one min. i have tried this code but no result found. please help Pin
Tommy Jo21-May-20 5:23
Tommy Jo21-May-20 5:23 
AnswerRe: i want to take average of it of one min. i have tried this code but no result found. please help Pin
Richard MacCutchan21-May-20 5:42
mveRichard MacCutchan21-May-20 5:42 
AnswerRe: i want to take average of it of one min. i have tried this code but no result found. please help Pin
ZurdoDev21-May-20 6:03
professionalZurdoDev21-May-20 6:03 
QuestionHow to call a function as a callback parameter Pin
chug100818-May-20 8:58
chug100818-May-20 8:58 
AnswerRe: How to call a function as a callback parameter Pin
Richard Deeming18-May-20 23:56
mveRichard Deeming18-May-20 23:56 
Try adding AddressOf:
VB.NET
PublicClientApp = PublicClientApplicationBuilder.Create(ClientId).WithB2CAuthority(AuthoritySignUpSignIn).WithLogging(AddressOf Log, LogLevel.Verbose, False).Build()

I don't like either version of the Log function - why does it create a StringBuilder, add one string, and then convert it back to a string? Unless there's other code in there which you haven't shown, you can just use:
C#
private static void Log(LogLevel level, string message, bool containsPii)
{
    string logs = $"{level} {message}";
    File.AppendAllText(System.Reflection.Assembly.GetExecutingAssembly().Location + ".msalLogs.txt", logs);
}
VB.NET
Private Shared Sub Log(ByVal level As LogLevel, ByVal message As String, ByVal containsPii As Boolean)
    Dim logs As String = $"{level} {message}"
    File.AppendAllText(System.Reflection.Assembly.GetExecutingAssembly().Location + ".msalLogs.txt", logs)
End Sub




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: How to call a function as a callback parameter Pin
chug100820-May-20 9:29
chug100820-May-20 9:29 
QuestionCrystal Report SetDataSource Issue Pin
GeorgeChu15-May-20 6:03
GeorgeChu15-May-20 6:03 
AnswerRe: Crystal Report SetDataSource Issue Pin
Eddy Vluggen15-May-20 7:38
professionalEddy Vluggen15-May-20 7:38 
QuestionMake a simple pattern/shape Pin
M.S.S.E10-May-20 19:21
M.S.S.E10-May-20 19:21 
AnswerRe: Make a simple pattern/shape Pin
kalberts10-May-20 20:59
kalberts10-May-20 20:59 
Questiondesktop/screen streaming to youtube/twitch by stream key or IP in visual basic.net Pin
sharath Nandakumar9-May-20 0:21
sharath Nandakumar9-May-20 0:21 
AnswerRe: desktop/screen streaming to youtube/twitch by stream key or IP in visual basic.net Pin
Richard MacCutchan9-May-20 1:22
mveRichard MacCutchan9-May-20 1:22 
GeneralRe: desktop/screen streaming to youtube/twitch by stream key or IP in visual basic.net Pin
sharath Nandakumar9-May-20 7:11
sharath Nandakumar9-May-20 7:11 
GeneralRe: desktop/screen streaming to youtube/twitch by stream key or IP in visual basic.net Pin
Richard MacCutchan9-May-20 21:23
mveRichard MacCutchan9-May-20 21:23 
QuestionFill Data of Parents and multi levels of Child tables only Pin
EngrImad2-May-20 13:53
EngrImad2-May-20 13:53 
AnswerRe: Fill Data of Parents and multi levels of Child tables only Pin
Eddy Vluggen2-May-20 21:41
professionalEddy Vluggen2-May-20 21:41 
AnswerRe: Fill Data of Parents and multi levels of Child tables only Pin
evry1falls4-May-20 14:41
evry1falls4-May-20 14:41 
QuestionVB.NET Pin
Babayomi28-Apr-20 12:07
Babayomi28-Apr-20 12:07 
GeneralRe: VB.NET Pin
Ralf Meier28-Apr-20 20:01
professionalRalf Meier28-Apr-20 20:01 
AnswerRe: VB.NET Pin
Richard MacCutchan28-Apr-20 21:44
mveRichard MacCutchan28-Apr-20 21:44 
QuestionCompare File Date Created Date Modified in VBA ( Allow Download time 20 mintes Buffer Time) Pin
Member 1478441625-Apr-20 3:27
Member 1478441625-Apr-20 3:27 
AnswerRe: Compare File Date Created Date Modified in VBA ( Allow Download time 20 mintes Buffer Time) Pin
Richard MacCutchan25-Apr-20 4:14
mveRichard MacCutchan25-Apr-20 4:14 

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.