How-FormLoad and default "caplock"on ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Agnes

    #1

    How-FormLoad and default "caplock"on ?

    Once form _Load, i want to set the caplocks on .
    How can I do that ??
    Or I want to set it When the user press "New" button in my program, I want
    to Caplocks on .
    Thanks a lot.

    I try
    (1)System.Windo ws.Forms.SendKe ys.Send(System. Windows.Forms.K eys.CapsLock)
    (2)sendKeys.Sen d("{CAPLOCKS} ")
    BUT IT DOESN'T WORK
    Please Help



  • Peter Proost

    #2
    Re: How-FormLoad and default "caplock&q uot;on ?

    Hi, why do you need the capslock to be on? Can't you use Ucase, because most
    people don't like it when a program changes their settings.

    Greetz Peter


    --
    Programming today is a race between software engineers striving to build
    bigger and better idiot-proof programs, and the Universe trying to produce
    bigger and better idiots. So far, the Universe is winning.

    "Agnes" <agnes@dynamict ech.com.hk> schreef in bericht
    news:uoxfrIiqFH A.3920@TK2MSFTN GP09.phx.gbl...[color=blue]
    > Once form _Load, i want to set the caplocks on .
    > How can I do that ??
    > Or I want to set it When the user press "New" button in my program, I want
    > to Caplocks on .
    > Thanks a lot.
    >
    > I try
    > (1)System.Windo ws.Forms.SendKe ys.Send(System. Windows.Forms.K eys.CapsLock)
    > (2)sendKeys.Sen d("{CAPLOCKS} ")
    > BUT IT DOESN'T WORK
    > Please Help
    >
    >
    >[/color]


    Comment

    • Herfried K. Wagner [MVP]

      #3
      Re: How-FormLoad and default &quot;caplock&q uot;on ?

      "Agnes" <agnes@dynamict ech.com.hk> schrieb:[color=blue]
      > Once form _Load, i want to set the caplocks on .[/color]

      Lack of Information – Programmaticall y Toggling the LOCK keys from VB.NET
      <URL:http://weblogs.asp.net/robgruen/archive/2004/04/15.aspx>

      --
      M S Herfried K. Wagner
      M V P <URL:http://dotnet.mvps.org/>
      V B <URL:http://classicvb.org/petition/>

      Comment

      Working...