Search results

  1. F

    UserControl DesignMode

    Does anybody know how I can detect a mouse move or mouse click when in design time. I have an empty user control that draws a border around the control when the mouse moves over it OR is clicked on it. This works fine in runtime however I would like the same functionality when in design time. I...
  2. F

    Convert Inches to Pixels in PrintDocument

    Using a printdocument class I want to print a rectangle in the middle of an A4 page that is 3 x 5 inches. I have used the following code in the PrintDocument_PrintPage event method but the box is massive and I can't seem to calculate how to convert inches into dots/pixels. Can somebody help me...
  3. F

    Active Directory Password

    I am writing a basic active directory integration into my latest application and am struggling. I've found code that will allow me to validate users and change their passwords but I'm struggling to find how to identify how many days a users has left to change their password. For example, on our...
  4. F

    Loosely Coupled Applications

    I want to be able to develop what I class as a loosley coupled system but have no idea where to start. Essentially what I want to do is develop two or three different applications that are totally unrelated in any way. Each application performs its own task such as capturing data on a serial...
  5. F

    API Declarations

    I am writing an application that requires integration with a third party piece of hardware. The hardware has a API defined that allows me to use the hardware. Unfortunately I am struggling badly trying to write the correct declaration for each API Call in VB2005. I've looked all over the place...
  6. F

    Ownership Discussion

    I work for a company as a software developer. During the last couple of months I have noticed a demand among our customers for a niche piece of software. Unfortunately as I am fully loaded working on paid projects my boss cannot afford to take me off paid work to spend time working on a piece of...
  7. F

    Thread Looping

    Does anybody know how I can put a method running in a seperate thread into a wait loop without consuming my CPU? I have created a method called ProcessJobs. This method runs on a seperate thread and waits for a flag to be set true. Upon the flag being set to true, tasks are performed and the...
  8. F

    TextBox custom borders and background

    I have come across a need to modify the textbox control (i.e. add colored borders and a gradient background). I have a seen a couple of example on how to modify the border color which consist of creating a new usercontrol, adding a textbox and manually drawing a border. I would prefer however...
  9. F

    GUI Synchronization

    I am in the design stages for an application and have hit a stumbling block. Essentially I would like to be able to run several independent applications on a PC as windows services. The problem I have is that I'd like to write a generic GUI interface which can be used by the applications to...
  10. F

    SubForms

    Does anybody know how I can embed one form in another? I have a form very much like an open dialog which is opened when users click certain buttons throughout my application. This works fine however I have a form now where it would be much easier to simply embed the standalone form into a parent...
  11. F

    Application Architecture

    I want to develop a client-server series of applications whereby a series of business objects exist on a server and one or more clients (windows apps, ce apps or pocket pc apps) can integerate with the server. I have looked into a couple of options and am struggling to make a decision as to...
  12. F

    Debugging Pocket PC app

    Hello, I am developing a pocket pc application using visual studio 2003 (vb). I have created a new project and want to debug the application however I'm finding this impossible as ever. My pocket pc 2002 emulator starts up, installs the cf framework and then vs bombs out with the following...
  13. F

    Virtual Ports

    I want to write my own "Virtual Serial Port" utility very much like the one at www.virtual-serial-port.com. I could buy the control but it would defeat the object of writing my own. Somehow I need to create a two ports and link the two together via some sort of pipe. I've been looking around and...
  14. F

    GDI Scrolling Problem

    I am creating a user control that displays two boxes. Box 1 is displayed at the top of the control and Box 2 is positioned just below it. I have set AutoScroll=True and purposefully set the AutoScrollMinimum size to twice the height of the user control in order to force a vertical scrollbar. I...
  15. F

    Property Inspector

    I have created a structure as shown below Public Structure MarginStruc Public Left As Integer Public Top As Integer Public Width As Integer Public Height As Integer Public Sub New(ByVal iLeft As Integer, ByVal iWidth As Integer, ByVal iTop As Integer, ByVal iHeight As...
  16. F

    Audio Convertor

    I would like to write an application that converts files from CDA to MP3 formats and vice-versa. Does anybody know where I might start with something like this? I have been looking for information on the file formats or for components (preferably free) that would do the job. Can anybody help me?
  17. F

    Usercontrol Focus Problem

    I have created a simple component that inherits directly from System.Windows.Forms.Usercontrol. I have overridden the OnGotFocus and the OnLostFocus methods so that if somebody selects the control a border is drawn around it. If somebody tabs away from the control it looses focus and the border...
  18. F

    Data Types

    Does anybody know how I can create a data type in VB.Net. I want to be able to create a data type called "EmailAddress" and then assign it as such: dim Email as EmailAddress Once, declared I want to be able to use it just as I would a string or integer data type: Email = "mike@someplace.com"...
  19. F

    Business Objects

    I am currently banging my head against a wall as to what is the best solution for the following problem. Any help/advice you can provide me with will be greatly appreciated. I have an application which will contains two collections of objects. People and Companies. I wish to maintain a list of...
  20. F

    Square Brakets [] ???

    I am having a look through some examples on how to manipulate the datagrid control and keep coming across a coding method which I cannot find an explaination for. When passing a CurrencyManager object (source) to a function, the source is enclosed in square brackets. Does anybody know why this...
Top Bottom