The code below will find the local IP address and not the public IP if you are behind a router.
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
TextBox1.Text = GetIpAddressLinq.ToString()
'TextBox1.Text = GetIpAddress.ToString()
End Sub
'Use linq
Public...
I suggest staying away from the registry, but there's no reason to use stream reader/writers as the .NET framework has a very nice Settings feature built-in. Here's a short article about the Settings: Easily Save and Retrieve Application and User Settings in VB.NET or C# Apps | DonDraper.com
One possible solution is to use a WebService. Here's a CodeProject article regarding a WCF Service: Create, Host (Self Hosting, IIS hosting) and Consume WCF Service - CodeProject
Create a form.
Toss a DateTimePicker control on it and name that LastMenstrualDatePicker.
Toss a Label control on the form and name it DueDateLabel.
Double click the DateTimePicker, the IDE will create an event handler for the ValueChanged event.
Change the code to this:
Private Sub...
First, we don't know the value of TextBox1.Text; but that doesn't really matter here. You are comparing a string (the Text property of a TextBox is of type String) to an integer (the value 1 or 2, without quotes surrounding it), they will never be equal.
I always suggest turning Option Strict...
I believe the reason JohnH suggested XML is not because it would result in a smaller file but because it will be much simpler to work with (once you learn how, of course). There are features built in to the .NET Framework that make dealing with XML very simple. There are no built in features...
http://www.bobpowell.net is a great site for learning GDI+.
The problem you are having is explained and solved in this article: The accursed PictureBox
From the documentation of the Control.CreateGraphics Method (System.Windows.Forms) :
I downloaded the project and here is the only really relevant code:
#Region "IMPORTS"
Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Drawing
Imports System.Text
Imports System.Windows.Forms
Imports System.Drawing.Drawing2D
Imports...
Henry Ford said "Nothing is particularly hard if you divide it into small jobs". I suggest you do that here. It appears your first task would be to read a file from disk. Here are a couple of links that will help:
FileSystem Class (Microsoft.VisualBasic.FileIO)
System.IO Namespace ()
Let...
Have a look at these:
DirectoryInfo Class (System.IO)
My.Computer.FileSystem Object
Alternately, since deleting empty folders most likely has been done by someone before, you could search Google for the term "vb.net remove empty folders".
There are many ways to accomplish this; what are you doing so far? (perhaps show some code or explain what you have done thus far.)
Personally, I have used the simple method of creating a template (like the Word source file of your attached PDF) and putting placeholders where the information...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.