Re: DTPicker
From: Bob (anonymous_at_discussions.microsoft.com.invalid)
Date: 08/07/04
- Previous message: Steve: "Ignoring the <enter> Key"
- In reply to: Don Hanfland: "Re: DTPicker"
- Next in thread: Rick Rothstein: "Re: DTPicker"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 6 Aug 2004 19:54:20 -0700
Hi Don:
I was just wondering about the DTPicker. I thought that I could not, but I
wanted to ask someone who knows more than I do.
On the BestFit issue, for every cell of the column in the Flexgrid, I have
to check to see how wide it is ,and then find the best format that fits.
Unfortunately, I could not come up with a generic format to fit no matter
the value of the cell. So, after playing a lot, I decided to stick to my
own routine which I pasted it in one of the messages. The only change I had
to make was that instead of using the TextWidth property of VB, I am using
the API function. The API made the code about 3 times faster on my machine,
which is great for large number of cells. I could not make it any faster
than this. As you know, in excel if I fill all the columns with random
number, and then go and make the width of the column larger, the new best
fit values are displayed almost instantaneously. On my grid it takes about
2 to 3 seconds for 65000 rows. I guess I can live with it.
Thanks for asking and all your help.
Bob
"Don Hanfland" <fakemail@no.spam> wrote in message
news:%23AlUc1$eEHA.248@TK2MSFTNGP12.phx.gbl...
> Hi Bob,
>
> The text portion of the dtp is like a maskeditbox but is limited to only
> date time types of formats, so you won't be able to have it blank in the
> beginning at least not that I have been able to do.
>
> BTW; how did you make out on the Best Fit Format of Numbers post of yours?
>
> Impressed with all your learning!
> Don Hanfland [MVP -VB]
>
>
> "Bob" <anonymous@discussions.microsoft.com.invalid> wrote in message
> news:uMBxRy2eEHA.1356@TK2MSFTNGP09.phx.gbl...
> > Hello all:
> >
> > in VB 6.0, by default, if you use a DTpicker control, in its text box
> > portion it is divided into 3 parts, one of the day, one for the month
and
> > one for the year. Is there a way, to make it a simple textbox, without
> the
> > "/", so that users can simply type? I know that if you type "/", the
> > control ignore them, but for looks, when the control receives focus, I
> want
> > the text portion to be completely blank.
> >
> > I appreciate all your help.
> >
> > Bob
> >
> >
>
>
- Previous message: Steve: "Ignoring the <enter> Key"
- In reply to: Don Hanfland: "Re: DTPicker"
- Next in thread: Rick Rothstein: "Re: DTPicker"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|