Re: InputBox SIP? (was Re: "Unexpected error" strangeness...(ipaq vb.n
From: Daniel Moth (dmoth74_at_hotmail.com)
Date: 01/05/05
- Next message: Daniel Moth: "Re: InputBox SIP? (was Re: "Unexpected error" strangeness...(ipaq vb.n"
- Previous message: Paul [Paradise Solutions]: "PORT Command Usage in FTP and the Compact Framework"
- In reply to: Sergey Bogdanov: "Re: InputBox SIP? (was Re: "Unexpected error" strangeness...(ipaq vb.n"
- Next in thread: I HATE PDAs: "Re: InputBox SIP? (was Re: "Unexpected error" strangeness...(ipaq vb.n"
- Messages sorted by: [ date ] [ thread ]
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? >>>> >>>>/ >> >>
- Next message: Daniel Moth: "Re: InputBox SIP? (was Re: "Unexpected error" strangeness...(ipaq vb.n"
- Previous message: Paul [Paradise Solutions]: "PORT Command Usage in FTP and the Compact Framework"
- In reply to: Sergey Bogdanov: "Re: InputBox SIP? (was Re: "Unexpected error" strangeness...(ipaq vb.n"
- Next in thread: I HATE PDAs: "Re: InputBox SIP? (was Re: "Unexpected error" strangeness...(ipaq vb.n"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|