Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: GPerk
  • Order by date
  1. GPerk

    How to get mouse position on SCREEN outside the VB form

    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...
  2. GPerk

    Saving Picturebox to a file

    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...
  3. GPerk

    How to turn on debug checkpoints in my source code

    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?
  4. GPerk

    How to turn on debug checkpoints in my source code

    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...
  5. GPerk

    mschart intallation problem

    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?
  6. GPerk

    mschart intallation problem

    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...
  7. GPerk

    mschart intallation problem

    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...
  8. GPerk

    How to send Control commands to Webbrowser control

    Jebenson, Thanks for the info. Works perfectly!
  9. GPerk

    How to print RichTextbox with colored parts

    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...
  10. GPerk

    How to print RichTextbox with colored parts

    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 =...
  11. GPerk

    How to send Control commands to Webbrowser control

    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") '...
  12. GPerk

    How to send Control commands to Webbrowser control

    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?
  13. GPerk

    Listbox Sort not working as intended

    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...
  14. GPerk

    Listbox Sort not working as intended

    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...
  15. GPerk

    Text size in Browser control

    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...
  16. GPerk

    Ghost images on saved image

    I discovered the cause of the 'ghost' lines. To move a line, for example, each time I dragged one end of the line, the programs first erased the old line by redrawing the line using the Form's Backcolor: g.DrawLine(penBackColor, .Loc1, .Loc2) and then drawing the object in the new location...
  17. GPerk

    Ghost images on saved image

    I am drawing basic shapes on a Form. To draw a line (1)mouse down to start the line (2)with mouse down, drag to lengthen the line (3) mouse up. Same procedure for rectangle, circles, ellipses,etc. I am using: Dim bm As Bitmap Dim g As Graphics and bm = New Bitmap(Me.Width, Me.Height...
  18. GPerk

    VB2008: DirectX component not found

    After reading a post at http://www.gamedev.net/community/forums/topic.asp?topic_id=220179 which discussed a simular problem, I found the .dll files on my computer at C:\Windows\Microsoft.NET\DirectX for Managed Code\1.0.2902.0 In the IDE, I clicked on Project, Add Reference, Browse, looked...
  19. GPerk

    VB2008: DirectX component not found

    Jeb, thanks for the quick reply. VB2008: Under Project/Add Reference/.NET I have several entries that start with "Microsoft.DirectX Version 1.0.2902.0". Under " /COM there is "Microsoft DirectX Transforms Core Type Library My system: Doing a search for files with "DirectX" in the file...
  20. GPerk

    VB2008: DirectX component not found

    I just downloaded and installed DirectX SDK. That seemed to go well. But now VB2008 does not recognize "Imports Microsoft.DirectX". In the Toolbox, I right-clicked on Components and selected "Choose Items", but Microsoft.DirectX does not appear in any of the 3 lists there. How do I get my...

Part and Inventory Search

Back
Top