[Solved] Visual Basic username password error [closed]

From your screenshot, it looks like you haven’t set your application’s Settings. Project Settings can be set by navigating to Project Properties > Settings: When this has been done, they can be referenced and modified by using My.Settings.[setting], and saving them with My.Settings.Save(), as per se: My.Settings.Username = “Foo” My.Settings.Password = “Bar” My.Settings.Save() You can … Read more

[Solved] What is the VB.Net equavilent of the following

Very similar to the generated code, but there are some changes. I don’t know what the generator was doing with Key, and I don’t think it’s necessary to bracket the Error keyword in this context. Dim Result = JsonConvert.DeserializeObject(OF T)(parsed(“result”).ToString(), _ New JsonSerializerSettings With { .Error = AddressOf HandleDeserializationError} ) Protected Sub HandleDeserializationError(sender As Object, … Read more

[Solved] Printing all Labels in a Form VB.net

See this page for a breakdown on vb.net printing methods: https://social.msdn.microsoft.com/Forums/en-US/72b5a038-912d-4455-929d-89eeb9984d7c/how-do-i-print-a-form-in-vbnet?forum=Vsexpressvb To get the text out of all your labels, use this code: For Each ctrl As Control In Me.Controls If TypeOf (ctrl) Is Label Then Dim newLine As String = ctrl.Name & “: ” & ctrl.Text ‘Process newLine as you see fit End If … Read more

[Solved] How to pass parameters to SqlDataAdapter

here is an example of what you can use and how to pass Parameters you have to make the changes where necessary Public Shared Function GetCustomerInfo(stardate As DateTime, enddate As DateTime, Department As String, Active as String, Visits as Int33) As List(Of String) Dim cszList = New List(Of String)() Dim DSCityStateZipLookup As New DataSet() ‘load … Read more

[Solved] How do I use the Trim Function

Indexer C# uses the square bracket[] to access element of an indexer instead of parentheses() Event Handler AddHandler and AddressOf are both VB keyword. In order to add an handler to an event, use the += operator with the event as left operand and handler as the right operand. protected void ButtonSetup(DataRow row, Button button) … Read more

[Solved] Open file with double click with my program [closed]

The whole “Double-Click to Open” part is done by Windows, not by your program. If you double-click a file Windows checks the registry for settings on what to do with the program. You need to set these settings so that your program is the default program for the datatype. Try google file association windows. The … Read more