Search:
Type: Posts; User: kareninstructor
Search:
Search took 0.06 seconds.
-
Consider each time a new button is created add it to a private List(Of Button), then to remove the last button, get it by index, pass it to Controls.Remove then remove it from the list via Remove....
-
Wrote the following in C#, converted to VB.NET
Option Infer On
Imports Microsoft.VisualBasic
Imports System.Diagnostics
Imports System.IO
Imports Newtonsoft.Json
-
It's not a VB or even C# issue, it's Google's security changes.
-
If you are sure all settings are correct than go to your Google account, Less secure app access and turn it on. If this works it's a fix that will only be available to the end of this month, after...
-
Another option is data annotations
Public Class Annotations
Public Shared Function ValidEmail(ByVal emailAddress As String) As Boolean
Return (New...
-
See if this works for you.
Imports System.Text.RegularExpressions
Module Program
Sub Main(args As String())
Console.WriteLine($" F1124 {NextValue("F1124")}")
...
-
If you don't mind adding a C# class project to your Visual Studio solution, check out the following C# class project. Once added to your solution, reference the project in your project, add the...
-
If working with .NET Core try adapting to the following simple example. I write this in C# then converted it as no time to write it in VB.
Option Infer On
Imports System
Imports...
-
If you look at a code file when adding a new file it tells you. In short has zero code in it.
-
I have never had a reason to try this but thought it was intriguing how to perform both debug and release builds. My first thought was, MS Build.
With that mentioned and untested the following...
-
Best practices
Place database operations in a separate class
For SELECT statement, never use *, always specify only the columns needed.
In the following example, User class represents a...
-
Going up or down should be easy, here is going up
Dim lines As List(Of String) = File.ReadAllLines("TextFile1.txt").Where(Function(data) Not String.IsNullOrWhiteSpace(data)).ToList()
Dim...
-
I'd recommend placing all data operations outside of forms, in a class such as shown below. Also, discard the idea of a single connection for all operations, instead create each connection per...
-
No, you need to start off with if
see the definition
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">...
-
Recommend reading How NuGet resolves package dependencies which explains the additional files.
-
Didn't watch the video.
Generally speaking for an if, for, while etc type in say if (for an if statement) then press tab twice to add Bob Hope brackets {} rather than pressing enter.
-
Microsoft documentation for adding a project reference in the same Visual Studio solution is to right click on the project in Solution Explorer, select Add, References, Add project reference.
...
-
Not possible with conventional coding.
https://stackoverflow.com/questions/3142495/deserialize-json-into-c-sharp-dynamic-object
-
One when is self-taught many times the person does not perform deep dives into what they are attempting to achieve thus can cause undue wait time for others to reply and then take time to understand...
-
If appropriate, looks like you are targeting .NET Framework 3.5 but trying to use .NET Core 6
-
Your code is difficult read not being in a code block so my question - is the connection for creating the table for the database? It appears the connection is pointing to master, not the newly...
-
Preface
The following requires .NET Core 5, a willingness to work with delegates/events, working with classes and asynchronous programming.
At one point in all developer’s career there is a...
-
See MSB4181: The 'task' task returned false but did not log an error
-
First off, I realize this is rather late.
Cheap way to get a proper connection string, create a throw-a-way project, add a new data source which walks you through the process which when done...
-
If using .NET Core 5 or higher consider using TaskDialogPage/TaskDialog which allows you to pass in an Icon. So rather than getting a system Icon, make your own.
See the following GitHub...
-
My recommendation is to subscribe to Pluralsight which is a paid for site.
There are 360 courses on C# which branch into two paths. Before starting any courses there is an optional assessment test...
-
Definition of dotnet tools "A .NET tool is a special NuGet package that contains a console application."
Some predefined commands which run via a PowerShell window or command prompt
dotnet new...
-
I'd like to know if developers here have learned how to write dotnet tools or have used available tools from NuGet (see list) were the majority focus on a handful of topics.
Reason for asking, I'm...
-
You can place the code where ever makes sense, like Shown event. In regards to make things worst, this is why it's important to use version control such as GitHub, learn about stashes, branches,...
-
Can you see what this returns?
AppDomain.CurrentDomain.GetData("DataDirectory")
Because of how its done internally.
-
Ever need to display a message box for “Do not show again”, “auto-close”, “Open links”, specify how many buttons on a dialog along with the text? These are just a few example found in the following...
-
See my GitHub repository for various code samples.
-
Make sure you don't have a check on Common Language runtime exceptions under Exception settings in Visual Studio.
See the following example for a basic example that will not break on a...
-
Although VB.NET is a language that can accomplish many task into today’s world if you are going to have a future coding C# is the language to select from the Visual Studio ecosystem as there is a...
-
If each section is 84 in length then you can chunk the array. Here I chunk three use a mocked array.
Module Program
Sub Main(args As String())
Dim lines = Enumerable.Range(1,...
-
What is the use case for building on a server rather than a local box? And if this can't be changed consider Azure continuous integration which when done in house setup properly would be an option...
-
When there is a need to display information or ask a question it’s common to use MsgBox or MessageBox which for most cases works.
Then there are cases when the button text is not suffice,...
-
If you have not, implement INotifyPropertyChanged on your model
Set DataGridTextColumn binding e.g. Binding="{Binding FirstName, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged}",...
-
One possibility, use json files with a structure which defines columns and data e.g.
{
"ColumnDefinitions": [
{
"HeaderText": "Id",
"DataPropertyName": "Identifier",
...
-
First off, one question per-thread.
If the malfunction is not catastrophic then you need to properly handle the problem using assertion and/or try-catch statements and advise that you create unit...
|
Click Here to Expand Forum to Full Width
|