I'm using 2 pictureboxes, one with a source image and the other to zoom in on an area inside a navigation rectangle. I'm using DrawImage to magnify the image (image on the right)
In the source image there is some text added with a graphics program. This text looks bad on the zoomed image due to...
Why does this work:
Private Sub frmMain_MouseWheel(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseWheel
Console.WriteLine(e.Delta)
End Sub
while this doesn't?
Private Sub PictureBox1_MouseWheel(sender As Object, e As MouseEventArgs)...
If I click on the x box at the upper right corner of the form to close it, a textbox validating event fires because of missing or wrong data. How can I avoid that?
When I deploy a project, the exe file shows a generic icon rather than the one I thought I'd chosen.
I'm using VS 2015 and this is what I have done:
1. Go to Project => Properies => Resources => Add Resource => Add existing file => Browse folders and select a specific icon
2. In the project...
I was wondering if it's correct -I mean sound programming habit- to refer to a class from another class if they have nothing to do with each other.
For example,
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim c1 As New Class1...
My application draws a rectangle filled with a black brush with a certain degree of transparency on top of a background image. The rectangle is clearly visible except if the background consists of a large gray area, in which case it becomes difficult to distingish.
The way to manually overcome...
In the directory
...\AppName\AppName\bin\Debug\
I have a settings file, AppName.Settings and a text file Data.txt which is also read at run time.
How must I handle them in the deploy project?
I have a large number of old printed photographs which I have been scanning. I've written short descriptions in the file names but I've thought I'd like to place the text on the pictures themselves. Not covering the image but on a narrow white strip I would add at the bottom.
I have the photos...
The thread's tile is precisely that of Microsoft's documentation site:
https://msdn.microsoft.com/en-us/library/4y44hzat(v=vs.71).aspx
I've tried out the stated example and when TextBox1.Text.Length is less than 8, I have included a warning message for display.
The inconvenience is that this...
A vb6 application I wrote years ago would read some default data (mainly pathes) from an ini file at program start.
Now I'm trying to rewrite it in vb.net and was wondering if there is a more convenient way to do this.
I created a setup project but later on I realized I'd forgotten to include the option to add a shortcut to the user's desktop. So I proceeded to add this option but then when I built + rebuilt the project it did not create new setup files.
How am I supposed to handle this?
Is it possible to do this in just two statements?
Dim dd As New DateTime(2017, 3, 24, 10, 1, 33)
dd = dd.AddDays(-11)
dd = dd.AddMonths(-2)
dd = dd.AddYears(-3)
dd = dd.AddHours(4)
dd = dd.AddMinutes(23)
dd = dd.AddSeconds(-32)
Could someone explain in detail how to deploy a vb.net application or direct me to some useful & well explained instructions?
Googling around I found a recipe which seemed to work the first time, but then I tried it on another project and I got a message that the setup project failed to build...
(Coming from vb6 and gradually learning vb.net)
I want to search String1 for occurrences of String2.
If I try String1.Contains(String2) is it possible to include as a parameter the specific position for search start within String1?
When I hit F5 in the IDE my project first compiles and then runs. Can I not run it in interpreter mode as in old VB6?
EDIT: I realize I should have posted in the IDE forum, sorry about that.
Hello, this is my very first post here.
I have been using VB6 for the last few years and I have recently decided to move on to .Net so I'm trying to learn the new features.
In VB6 I would sometimes use the ReDim statement for 2 dimensional arrays like this:
Dim myVar As Double
'...
nCols = 8...
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.