Advice - creating a Find dialog

  • Thread starter Thread starter Mark Erikson
  • Start date Start date
M

Mark Erikson

One of the next features I was hoping to implement is an MS Word-style
Find dialog. By Word-style, I mean a non-full-screen dialog that sits
over the main form and has controls on it (a textbox, buttons, etc),
stays on top until you close it, but still lets you tap and enter text
on the main form. I'm not quite sure what the exact term is for this
kind of behavior... "semi-modal", perhaps?

Anyway, I've been doing some newsgroup scanning in preparation for
this feature, and thus far I'm not really seeing any definitive
answers. I've seen some references to setting a Form's ControlBox,
Minimize, and Maximize properties to false. I've also fiddled a bit
with setting the Form's FormBorderStyle to FBS.None, but that hasn't
given me anything satisfactory.

I've posted a screenshot of what I'm trying to duplicate at
http://acemarke.ionichost.com/find.html . If anyone knows a way to
pull that off using managed code or P/Invoke, please let me know. If
that can't be done inside C#, then I can live with doing another
method. Sure be nice to get this one to work, though.

Thanks in advance for any help!

Mark Erikson
 
William Ryan said:
I have a post using a 'log-in' box which is essentially
the same thing you want to do at devbuzz.... this will
walk you through it, but if you have any questions, let
me know.

http://forums.devbuzz.com/tm.asp?
m=24015&p=5&tmode=1&smode=1

Good Luck,

Bill

W.G. Ryan
(e-mail address removed)
www.knowdotnet.com


Um... maybe I'm missing something, but that thread (a discussion on
how to create a splashscreen) doesn't appear to have much to do with
what I'm trying to accomplish. I did a search through those forums
for other posts you've made, but didn't see any that appeared
relevant.

Here's a recap of what I'm trying to accomplish.

I want to create a dialog box that's:

1) NOT full screen.
2) Stays on top when I tap the main form (pop open Word or Visual
Studio and look at how the Find dialog works - that's my goal).


I know it can be done, because I've found a PocketPC program that does
it. I'd just like to know if anyone has experience or tips in trying
to duplicate it in C#.

Mark Erikson
 
One of my posts from the past may help you... Search for "Form TopMost"...

Cheers
Daniel
 
Mark,

Here's the post you probably need.

David
This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
| From: "Daniel Moth" <[email protected]>
| References: <[email protected]>
<[email protected]>
| Subject: Re: Advice - creating a Find dialog
| Date: Sun, 10 Aug 2003 11:19:01 +0100
| Lines: 69
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: dsl-217-155-140-110.zen.co.uk 217.155.140.110
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:30571
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| One of my posts from the past may help you... Search for "Form TopMost"...
|
| Cheers
| Daniel
|
|
| | > I have a post using a 'log-in' box which is essentially
| > the same thing you want to do at devbuzz.... this will
| > walk you through it, but if you have any questions, let
| > me know.
| >
| > http://forums.devbuzz.com/tm.asp?
| > m=24015&p=5&tmode=1&smode=1
| >
| > Good Luck,
| >
| > Bill
| >
| > W.G. Ryan
| > (e-mail address removed)
| > www.knowdotnet.com
| >
| >
| >
| > >-----Original Message-----
| > >One of the next features I was hoping to implement is an
| > MS Word-style
| > >Find dialog. By Word-style, I mean a non-full-screen
| > dialog that sits
| > >over the main form and has controls on it (a textbox,
| > buttons, etc),
| > >stays on top until you close it, but still lets you tap
| > and enter text
| > >on the main form. I'm not quite sure what the exact
| > term is for this
| > >kind of behavior... "semi-modal", perhaps?
| > >
| > >Anyway, I've been doing some newsgroup scanning in
| > preparation for
| > >this feature, and thus far I'm not really seeing any
| > definitive
| > >answers. I've seen some references to setting a Form's
| > ControlBox,
| > >Minimize, and Maximize properties to false. I've also
| > fiddled a bit
| > >with setting the Form's FormBorderStyle to FBS.None, but
| > that hasn't
| > >given me anything satisfactory.
| > >
| > >I've posted a screenshot of what I'm trying to duplicate
| > at
| > >http://acemarke.ionichost.com/find.html . If anyone
| > knows a way to
| > >pull that off using managed code or P/Invoke, please let
| > me know. If
| > >that can't be done inside C#, then I can live with doing
| > another
| > >method. Sure be nice to get this one to work, though.
| > >
| > >Thanks in advance for any help!
| > >
| > >Mark Erikson
| > >.
| > >
|
|
|
|
 
Back
Top