Re: InputBox SIP? (was Re: "Unexpected error" strangeness...(ipaq vb.n

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Daniel Moth (dmoth74_at_hotmail.com)
Date: 01/05/05


Date: Wed, 5 Jan 2005 10:55:22 -0000

Sure... the Original VB Poster is now aware of both options. Note that
building a custom control with designer support is only possible with C#

Cheers
Daniel

--
http://www.danielmoth.com/Blog/
"Sergey Bogdanov" <sergey.bogdanov@gmail.com> wrote in message
news:%23hh0SSq8EHA.2316@TK2MSFTNGP15.phx.gbl...
> Yes, you are right that InputPanel can be showed as InputPanel.Enabled =
> true but it requires that InputPanel must be placed on the form. I've
> suggested more completed approach; TextBox shows/hides input panel itself
> without any additional components.
>
> Best regards,
> Sergey Bogdanov
>
>
> Daniel Moth wrote:
>> Unless I have missed something in this thread, there is no need to
>> pinvoke; instead  use InputPanel.Enabled = true/false as appropriate.
>>
>> Cheers
>> Daniel
>> --
>> http://www.danielmoth.com/Blog/
>>
>>
>> "Sergey Bogdanov" <sergey.bogdanov@gmail.com> wrote in message
>> news:%23g7ucjp8EHA.2180@TK2MSFTNGP12.phx.gbl...
>>
>>>You should catch Focus event to activate a SIP and hide the SIP on
>>>LostFocus event. The best way is to write your own TextBoxEx control
>>>which is derived from TextBox control and call this function on
>>>Focus/LostFocus events:
>>>
>>>
>>>public static void SIPShow(bool show)
>>>{
>>>SipShowIM(show ? SIPF_ON : SIPF_OFF);
>>>}
>>>
>>>const uint SIPF_OFF = 0x0;
>>>const uint SIPF_ON = 0x1;
>>>
>>>[DllImport("coredll.dll")]
>>>private extern static void SipShowIM(uint dwFlag);
>>>
>>>
>>>Best regards,
>>>Sergey Bogdanov
>>>
>>>
>>>I HATE PDAs wrote:
>>>
>>>>"Dan  Bass" wrote:
>>>>
>>>>
>>>>
>>>>>Is there any way you can get a PDA, and connect it to your development
>>>>>box?
>>>>>You'd be able to debug and step through your application to find out
>>>>>more details of what's going wrong.
>>>>>
>>>>>If not, distribute a debug build, and saturate the source with debug
>>>>>logging comments which log details of stages to disk, and allow you
>>>>>then to track where the application got to, where it didn't and what
>>>>>errors are coming up.
>>>>>
>>>>>Finally, ensure you're using try/catches, and get the Exception.Message
>>>>>and Exception.StackTrace to help narrow down the bugs.
>>>>
>>>>
>>>>Heh.  Shortly after posting the original message, i did all of that.
>>>>I'm a bit annoyed at myself for not having thought of it before i
>>>>complained to y'all, but i'm pretty new to VB and PDA development and
>>>>thought it might be a compatibility thing with the PDA.  (From what i'd
>>>>seen, an ipaq has more little quirks than most other PDAs.)
>>>>
>>>>Fun part is, once i put the logging and exception handling in, things
>>>>magically just worked.  I took the logging out, and so far it still
>>>>works.  The only thing i noticed was something about a WebException (for
>>>>now i just put in a generic exception handler that catches everything
>>>>and MsgBox'es the .message for it), but that was to be expected since
>>>>the PDA didn't have internet access at the time.
>>>>
>>>>I'm still curious as to why the error message appeared in the textbox as
>>>>opposed to popping up a dialog...but as long as the stuff works, i can
>>>>live without worrying too much about that.  :)
>>>>
>>>>BTW...I've noticed on most forms, when you enter a text box the input
>>>>panel pops up.  On my login form, though, it doesn't.  (Recall that the
>>>>login form is really an InputBox, as the "login code" is a unique id.)
>>>>Is there a way to make this happen when one uses InputBox to ask for
>>>>info, or do i have to make a real form and have an event handler show
>>>>the panel?
>>>>
>>>>/
>>
>>


Relevant Pages

  • Re: InputBox SIP? (was Re: "Unexpected error" strangeness...(ipaq vb.n
    ... You should catch Focus event to activate a SIP and hide the SIP on ... The best way is to write your own TextBoxEx control ... >>Is there any way you can get a PDA, and connect it to your development box? ... On my login form, though, it doesn't. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: MP3s, stereo, WLAN and remote controlling
    ... Also have a look at the forums at www.remotecentral.com ... PDA section and Pronto froums are good. ... Also a forum on Netremote site ... Can also be used to control other apps on the ...
    (microsoft.public.pocketpc)
  • InputBox SIP? (was Re: "Unexpected error" strangeness...(ipaq vb.n
    ... > If not, distribute a debug build, and saturate the source with debug logging ... compatibility thing with the PDA. ... Fun part is, once i put the logging and exception handling in, things ... On my login form, though, it doesn't. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Modal JDialog Components not Painting
    ... Everything works fine on the laptop but on the PDA I get a paint/refresh ... When I showit only one control is visible, ... The method createContextTablefills records from a database into ... So it looks like the extra time involved for the PDA to get the records back ...
    (comp.lang.java.gui)
  • Re: MP3s, stereo, WLAN and remote controlling
    ... Girder and JRiver Media Centre. ... Allows control of media from the pd, with feed back of the track/album cover ... video etc etc) from any where you are as long as your pda has wlan access. ... > play files/songs from the server. ...
    (microsoft.public.pocketpc)