Interface suggestions

J

Jay B. Harlow [MVP - Outlook]

Matthew,
The only way I know of to change the Default is to derive a new class from
the original & override the value. Then use this new class on my forms
instead of the original.

Something like:

Imports System.ComponentModel

Public Class ButtonEx
Inherits System.Windows.Form.Button

Public Sub New()
MyBase.FlatStyle = FlatStyle.System
End Sub

<DefaultValue(GetType(FlatStyle), "System")> _
Public Shadows Property FlatStyle() As FlatStyle
Get
Return MyBase.FlatStyle
End Get
Set(ByVal value As FlatStyle)
MyBase.FlatStyle = value
End Set
End Property

End Class

Then every place I would have used a System.Windows.Form.Button I would use
a ButtonEx instead.

Note ButtonBase.FlatStyle is not defined as overridable so we have to
Shadows it here. Ideally we want to use Overrides instead of Shadows,
however Shadows here is OK as we are simply delegating the base property!
The reason we need the DefaultValue attribute on it to let the Designer know
that the FlatStyle value has a default value of System (not Standard as
Button has). Even with Shadows the designer is able to use the other
attributes it needs from ButtonBase.FlatStyle.

You can apply the same code to extended Label, CheckBox, RadioButton, and
GroupBox controls also.

Hope this helps
Jay

Matthew said:
Is there a programmatic way to change all my buttons and stuff to
flatstyle.system?
I normally set them in the designer, however you should be able to use
something like:
Code:
[/QUOTE]
I just noticed this slows the load time of my program by over a second!
Changing the flatstyle in the designer is looking more attractive all the
time.
Is there a way to change the default flatstyle in the designer?

Matthew
[/QUOTE]
 
C

Cor Ligthert

Matthew,

A question, did you look at my sample what I have added to this thread 3
days ago?

As far as I see are all your questions in this thread, with the exception of
the visual styles, in that sample however setting the flat style with that
will be very easy?

Cor

Matthew said:
Is there a programmatic way to change all my buttons and stuff to
flatstyle.system?
I normally set them in the designer, however you should be able to use
something like:
Code:
[/QUOTE]
I just noticed this slows the load time of my program by over a second!
Changing the flatstyle in the designer is looking more attractive all the
time.
Is there a way to change the default flatstyle in the designer?

Matthew
[/QUOTE]
 
C

Cor Ligthert

Matthew,

It looks very nice and there are parts what can be possitive citisized

When I was you , I would not think about it a while, you have done a lot of
work, listening to advises, used them in. Take another part of your program
and wait on what the customers like or what you find in some weeks/months.

Devellopers are no customers, what they find important can be for a customer
completly unimportant until they tell you.

Just my thought,

Cor
 
C

Cor Ligthert

Doh,

Mathew or others skip this message I thought that it was the thread of
somebody with the name Tym, where was a long thread and my sample did cover
all the questions.

To quick written and sand

My fault sorry

Cor

Cor Ligthert said:
Matthew,

A question, did you look at my sample what I have added to this thread 3
days ago?

As far as I see are all your questions in this thread, with the exception
of the visual styles, in that sample however setting the flat style with
that will be very easy?

Cor

Matthew said:
Is there a programmatic way to change all my buttons and stuff to
flatstyle.system?
I normally set them in the designer, however you should be able to use
something like:
Code:
[/QUOTE]
I just noticed this slows the load time of my program by over a second!
Changing the flatstyle in the designer is looking more attractive all the
time.
Is there a way to change the default flatstyle in the designer?

Matthew
[/QUOTE]
[/QUOTE]
 
M

Matthew

Doh,
Mathew or others skip this message I thought that it was the thread of
somebody with the name Tym, where was a long thread and my sample did
cover all the questions.

To quick written and sand

My fault sorry

Cor

Cor,

That is really no problem. I really appreciate all your assistance!

Matthew
 
M

Matthew

When I was you , I would not think about it a while, you have done a lot
of work, listening to advises, used them in. Take another part of your
program and wait on what the customers like or what you find in some
weeks/months.

Devellopers are no customers, what they find important can be for a
customer completly unimportant until they tell you.
That's a good point. Now, I'm off to find some customers...

;-)

Matthew
 
M

Matthew

You all have been most helpful with ideas for my countdown program. I have
one final (hopefully) question.
Does anybody have an idea for a company name for me?

I plan to market the program to businesses, churches, and individuals to
count down to the start of an event.
I don't have any other software to sell, and no imediate plans to create
anything else.

Thanks in advance,

Matthew
 
L

Larry Serflaten

Matthew said:
I plan to market the program to businesses, churches, and individuals to
count down to the start of an event.

There is a very large difference between need, and want, and willing to
pay for....

If you have not fullfiled a need, then you have to pitch your product
to those who have extra money to throw around on 'nifty gadgets'.
Finding your target audience may be one of the tougher things you do....

I don't have any other software to sell, and no imediate plans to create
anything else.

If you expect anything more than pennies per year, you will have to change
that before you can expect to earn more than you spend on advertising.
How many companies can you name that make exactly one product?

I am not trying to discourage your activities, but I would suggest you do
a little research into who might actually 'need' your product, and how
you can reach them without spending all your profits before they are earned.

I'd also suggest, rather than moving to market with one item, that you spend
more time in the developer's chair, making new products. Not only will
you end up with more to offer, but your skills will increase whereby you
might revisit those first few, adding in things you've learned along the way.

LFS
 
M

Matthew

Larry Serflaten said:
There is a very large difference between need, and want, and willing to
pay for....

If you have not fullfiled a need, then you have to pitch your product
to those who have extra money to throw around on 'nifty gadgets'.
Finding your target audience may be one of the tougher things you do....



If you expect anything more than pennies per year, you will have to change
that before you can expect to earn more than you spend on advertising.
How many companies can you name that make exactly one product?

I am not trying to discourage your activities, but I would suggest you do
a little research into who might actually 'need' your product, and how
you can reach them without spending all your profits before they are
earned.

I'd also suggest, rather than moving to market with one item, that you
spend
more time in the developer's chair, making new products. Not only will
you end up with more to offer, but your skills will increase whereby you
might revisit those first few, adding in things you've learned along the
way.

LFS

Thanks for your comments. I will think about this further.

Matthew
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top