Search results for query: *

  • Users: vendiddy
  • Content: Threads
  • Order by date
  1. V

    Getting string width

    Hi, I would like to get the width of a string. Given x & y coordinates I would like to draw a string centered at x, y. I would also like to create a rectangle that surrounds this string. The problem is that I would like to calculate the widths and coordinates of all of the shapes outside of...
  2. V

    Trouble Implementing my Interface

    Hi all. I have a class like so: Public Class Graph Public Interface Node Property ID() As Integer Property Location() As Point End Interface Public Interface Edge Property ID() As Integer Property StartNode() As Node Property EndNode() As Node...
  3. V

    Clearing Table and Adding Rows to It

    Let us say that that I have a Table in an Access database that is called MyItems: +--------------+------------+------------+ | Name (String)| X (Number) | Y (Number) | +--------------+------------+------------+ And that I have a class called TheItem: Class TheItem Sub New(Name as String, X as...
  4. V

    Allowing Focus to a User Control

    I have created a user control which displays some graphics that update in response to keyboard events. The problem is that I only want the user control to respond to keyboard events when it has focus. How do I make it focusable? I've looked at the CanFocus property, but that's ReadOnly. When I...
  5. V

    Remove all Handlers associated with an Event

    Say I have public event myEvent() in a class called myClass. and somewhere in my program, I write AddHandler myClass.myEvent, AddressOf method1 AddHandler myClass.myEvent, AddressOf method2 AddHandler myClass.myEvent, AddressOf method3 Is there a way for myClass to remove all of the handlers...
  6. V

    Event Handled in Certain Order & Supressing Events

    I have two questions about events. (1) Suppose I have 3 methods, A(), B(), and C(), that handle an event. How can I make sure that they are handled in order (A, B, C)? If I call the AddHandler method on these methods in a certain order, will they respond to the event in the same order I...
  7. V

    Extract text from html

    Hi all. I would like to extract only the text from a html file. I want to effectively do the same thing as loading the html file in a web browser, selecting Edit >> Select All, selecting Edit >> Copy, and pasting the contents into Notepad. Thanks. :)
  8. V

    Code-Snippet-Like Functionality

    Hi, I am creating a text editor and trying to make a feature that is similiar to the code snippets feature we all have in our Visual Studio IDEs. I can do the text insertion part. The part I'm not sure how to implement is the code snippet fields. They are the colored boxes that sort of act like...
  9. V

    Getting Paths of Open Explorer Windows

    Is it possible to retrieve the paths of all open explorer windows? For example if the folders "A" and "B" are open in explorer. I want to be able to retrieve their paths and display them in a listbox. I want the user to have the option of selecting a directory that they already have open in...
  10. V

    Grouping Graphics Together

    I am trying to make a program in which you click on the form to place graphical objects. Each graphical object will consist of a group of graphics. For example, if I had a graphics object which was a table, it would consist of strings that make up the data and the lines which make up the...
  11. V

    Use Windows Scripting Host from .NET

    I want to add basic scripting capabilities to an application I am making and I heard about the Windows Scripting Host: http://msdn2.microsoft.com/en-us/library/ms950396.aspx Does anyone know how I would use the Windows Scripting Host to implement very basic scripting in my VB.net program? Thanks.
  12. V

    Trouble Implementing IMessageFilter

    I'm new to this and I'm having trouble implementing the IMessageFilter. I found some code on the internet that detects changes in the clipboard and tried to encapsulate the code into a class using the IMessageFilter. It's not working though, and I don't know why. In the main form_load event...
  13. V

    Debugger not Stopping After Closing Program By Clicking "X"

    Recently, I noticed that the application I made doesn't stop the debugger when I click the X button on the main form. (Meaning that the Play button is greyed out and the Stop and Pause button are enabled) What does this mean? Is my application still running after I've clicked the red X? If so...
  14. V

    Hotkeys not working

    I am trying to use the classes provided in the example from the url below. It encapsulates the same hotkey functionality in a couple of classes. http://www.codeproject.com/vb/net/mclhotkeynet.asp - I'm pretty sure I shouldn't be using 123 and 321 as the ID, but I'm not sure what to do there...
  15. V

    New to Graphics (GDI)

    I am trying to learn graphics for VB.NET, the problem is I'm not really sure how this stuff works. First of all, why do we have a Paint method and when does this method execute? Also, is "ByVal e As System.Windows.Forms.PaintEventArgs" for and what does it mean? What about "ByVal sender As...
  16. V

    Detecting if an Array Changes

    In VB.NET, I would like to run a subroutine whenever any value in an array changes. Is there a way to do this? Thanks. The only idea I have so far is creating a class that acts like an array.
  17. V

    Input for Keystroke Combination

    I am trying to make a text box which displays the current keystroke combination the user is pressing. For example, if I press the control key, the alt key, and the S key, "Ctrl+Alt+S" will be displayed in the textbox. In the VS IDE, if you go to Tools > Customize > Keyboard, and press a...
  18. V

    Adding User Controls to Form During Design-Time

    I am trying to create a user control with a text box which takes input for a keystroke combination (a shortcut). For example, if you press the control key, the alt key, and the s key, "CTRL + ALT + S" should show up in the text box. I am only able to add this user control to my form during...
  19. V

    Incorrect Keycodes (Windows Mobile 5.0 Smarthphone)

    Incorrect Keycodes (Windows Mobile 5.0 Smartphone) The keydown event in the form has this predefined code when I create a Windows Mobile 5.0 Smartphone device application: PrivateSub frmMain_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs)...
  20. V

    Encapsulating Controls in a Class

    I have a MustInherit class called wCommand. It's basically a class that represents a command of any type. I've made (or will make) several subclasses, like wRenameFile, wDeleteFile, wRunProgram, wOpenWebPage, wRetrieveText, etc. The problem is that each command takes different arguments. You...
Back
Top