I need to be able to get the position of the mouse (or cursor) when it is outside of the program's VB form.
I have tried using Cursor.Position and display the X,Y values on the form.
But when the cursor leaves the boundaries of the Form, no values are returned.
( BTW, what is the difference...
I am trying to draw something on a Picturebox and save the drawing with the PB.Image.Save.
But I get the shown near the end of the following code.
Imports System.Drawing
Imports System.Drawing.Drawing2D
Imports System.Drawing.Imaging
Imports System.Text
Public Class Form1
Private Sub...
More info on the post:
When I set a breakpoint, the icon on the line is bright red.
But when I run the program, these icons turn to a light color with a tiny ! in the lower right edge.
It appears that I have breakpoints disabled.
How do I turn them back on?
When I started working on a program today, suddenly the debug checkpoints (Red dot on left by linenumbers) DONT'T WORK.
I am trying to find the cause of "Argument out of range exception was unhandled" error, but without the checkpoint I can't find the cause.
How can I turn the debug checkpoints...
Thanks for your help.
I made several attempts to download different files that I found online, and now I have a control called "Chart1".
Is this the same as "MSCHART",
or is it a scaled down, earlier version?
Mark,
Thanks for the reply.
But it does not appear under the Data tab either.
I tried installing the MS Chart control again, and it ran without any errors. But this time I looked at the Installation Log, clicked the Verbose option, and here are last "few" lines from the log:
Created new...
I want to use MSCHART to plot some data in a VB 2008 program.
When I click on the Toolbox tab, and then right-click on the Toolbox, then click on Choose Items, the Choose Toolbox Items windows is display.
But when I click on the COM Components tab, MSCHART is NOT included in the list.
I have...
While doing more searchs on the net I found a few solutions, most were very long and dense.
But the simple way of getting it printed is to save the rtf
to a file, thusly:
Private Sub btnSaveRTF_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSaveRTF.Click...
I am using the following code to color certain parts of the text in a RichTexbox.
Private Sub SetRed()
Dim I, L As Integer, S As String
L = 106
For I = 2 To nStk + 2
With RTB
.SelectionStart = I * L + 14
.SelectionLength =...
Jebenso,
Thank you! That does the job!
Here is my sub:
Private Sub WB_DocumentCompleted(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WB.DocumentCompleted
Clipboard.Clear()
WB.Focus()
SendKeys.SendWait("^a") '...
I can manually do a Control-A to select all the text on a WebBrowser control, and a Control-C to copy it to the clipboard.
But...
How can I get my VB.NET program to send AUTOMATICALLY a command (such as Control-A or Control-C) to the WebBrowser control?
Thanks, Bluejay07.
Then that means the control is converting everything to lower case to determine the sort sequence.
I knew that search engines and the internet in general did that; didn't know VB2008 also does.
But it used to work the way I wanted it to, until I rebuilt the program a few...
I have several data files where the first 8 characters on each line is the date in YYYYMMDD format.
Immediately following the date is a one-letter code.
For example:
20100531P Some data
20100531n Some more data
When I add these two lines to the listbox, I want them in the sequence shown in the...
I have some programs that use a webbrowser control.
All were working fine...until one day I inadvertently changed something (I don't what) on the desktop and since then ALL the programs are displayed with enlarged controls and textsize.
Could someone tell me what it was that I changed?
(My...
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.