[Solved] Fetching VB Variables to insert with SQL Query [closed]

To link VB variables to an SQL query, you need to add parameters that store the variables and then use those parameters in your SQL command: Using parameters MyCommand = New SqlCommand(“SELECT Height, Weight, DoB, Gender, FROM `User` WHERE Username = @Username”, DatabaseConnection) MyCommand.Parameters.AddWithValue(“@Username”, Username) UPDATE: How to connect to database ‘Leads to the database … Read more

[Solved] Convert VB to C# ‘GetCustomAttribute’

You just have to cast to MessageHandler: InstanceType = (MessageHandler)System.Attribute.GetCustomAttribute(Method, typeof(MessageHandler), false); The clue is in this part of the error message: An explicit conversion exists (is a cast missing?) 0 solved Convert VB to C# ‘GetCustomAttribute’

[Solved] How to convert .Net code to vbscript?

You have to use the FileSystemObject. Hint: This could be googled very easily. Example: Sub HideFolderFiles(filespec) Dim fs, f, r Set fs = CreateObject(“Scripting.FileSystemObject”) Set f = fs.GetFolder(filespec).Files f.attributes = 2 ‘hidden End Sub Source: https://www.experts-exchange.com/questions/28054761/VBScript-to-set-file-attributes.html 2 solved How to convert .Net code to vbscript?

[Solved] What language is he using?

It does look like some template engine rather then separated language. You could read about the available template engines here. They essentially exchange the text encoded information to the underlying data, in your case I don’t know which particular engine it is, however it may be something made especially for this task so it is … Read more

[Solved] How to sort listbox with letters and numbers ascendent by numbers vb.net

It looks like you are actually looking for descending order. Anyways, here is a solution from one list to another: Dim myList As List(Of String) = {“test|10”, “name|44”, “blabla|16”}.ToList Dim orderedList As List(Of String) = (From item In myList Order By item.Substring(item.IndexOf(“|”) + 1) Descending Select item).ToList EDIT: This will sort the items as strings, … Read more

[Solved] Creating loops on VB.net window forms

Here you finde how to use the while statement in vb.net : https://msdn.microsoft.com/de-de/library/zh1f56zs.aspx Dim index As Integer = 0 While index < 100000 index += 1 ‘ If index is between 5 and 7, continue ‘ with the next iteration. If index >= 5 And index <= 8 Then Continue While End If ‘ Display … Read more

[Solved] Visual Basic email system bcc mails [closed]

Imports System.Net Imports System.Net.Mail Private mpMessage As MailMessage = Nothing Private mpSMTPSvr As SmtpClient = Nothing ‘———————————————————————— ‘-> Send The Message ‘———————————————————————— MailerHost = “Addrss-of-your-emailer-host-server” mpMessage = New System.Net.Mail.MailMessage() mpMessage.Body = “Message body text goes here” If Trim(SenderNameValue) <> “” Then mpMessage.From = New System.Net.Mail.MailAddress(“[email protected]”, SenderNameValue) mpMessage.Sender = New System.Net.Mail.MailAddress(“[email protected]”, SenderNameValue) Else mpMessage.From = New … Read more

[Solved] Linq query conversion from C# To VB:NET

I’m not sure if this is what you need(it’s a random shot since your question is not complete): Dim orderedData = From d In collezione Order By d.Gruppo Group d By d.Gruppo Into g = Group From d In g Select New With { .withChildren = {d}. Union(g.Where(Function(c) c.Owner = d.Comp)) } Dim result = … Read more