Re: Enumerated List of Formats
- From: "Brian" <bkstigler@xxxxxxx>
- Date: Thu, 9 Jun 2005 08:28:38 -0700
The user would be setting a property on my custom textbox user control.
tbCustom.format = "0.0"
This custom textbox has code to perform validation of the text being
entered. It checks for invalid alphanumeric characters, number precision,
max and min value limits. It basically prevents the user from entering an
invalid number in the field and provides user feedback via field flashing
red with bad inputs and tool tips based on Max and Min value limits.
The last thing the control does is set the format to what is desired once
the data entry is complete.
So when I try to create the Enum for format........
Private Enum tbFormat
"0"
"0.0"
"0.#"
etc...
End Enum
VB doesn't take it. I want the "format" property to be of the enum type
tbFormat.
Does this help clear up the question???
Thanks.
"Larry Serflaten" <serflaten@xxxxxxxxxxxxxx> wrote in message
news:OglDoYQbFHA.2768@xxxxxxxxxxxxxxxxxxxxxxx
>
> "Brian" <bkstigler@xxxxxxx> wrote
> > I would like to set up an enumerated list of formats for a user to
select
> > from for a custom textbox control. I can't seem to get it to work. My
list
> > would include things like...
> >
> > "0"
> > "0.0"
> > "0.#"
> > "Scientific" - which I know there is vbScientific
> >
> > etc...
> >
> >
> > Is there a good way to do this??? I thought it would be easy. I must
be
> > missing something.
> >
> > Any help greatly appreciated.
>
>
> What specifically would the user be looking at? A listbox? A Combobox?
> Both of those support text, so where is the problem?
>
> LFS
>
.
- Follow-Ups:
- Re: Enumerated List of Formats
- From: Larry Serflaten
- Re: Enumerated List of Formats
- From: Tim Baur
- Re: Enumerated List of Formats
- From: Saga
- Re: Enumerated List of Formats
- References:
- Enumerated List of Formats
- From: Brian
- Re: Enumerated List of Formats
- From: Larry Serflaten
- Enumerated List of Formats
- Prev by Date: Re: TAPI
- Next by Date: Re: Showing a modal form in the Taskbar
- Previous by thread: Re: Enumerated List of Formats
- Next by thread: Re: Enumerated List of Formats
- Index(es):
Relevant Pages
|