I am used to using third party controls when it comes to setting up
appearences. But, now I am using Visual Basic.Net controls that come standard
with the product. I've come across a frustration situation with the combo box
and text box controls.
I setup the text box control appearence settings the way I want the control
to appear. Basically, I have set the "Border Style=FixedSing le", which
results in the control taking on a flat appearence and a black border around
the control.
Now, I want to make my combo box take on the same appearence, as I like all
of the controls in my application to take on the same characteristics . Now,
for the combo box I look in the Apperance Group and do not find a "Border
Style" property. The only thing clost to it that I see is the
"FlatStyle=Flat ", which makes the combo box control appear flat, but the
border of the control is not highlight with a black border, thus both of my
controls look nothing alike.
Now, I have read some books on VB.Net and if I recall correctly, these
controls inherit from the Control class. I would take this to mean that all
the controls take on the same properties and methods as inherited from the
base control class.
But, what I have found is that both the text box and combo box controls have
different Appearence properties and thus I cannot use a common set of
settings to make the controls look the same, using the same appearance
settings. I come from an Access background, and I always give the controls in
my application the same appearance and it makes my application look very
professional.
How can I make the combo box and text box controls take on the same
appearancees so they look to take on the same Appearance characteristics .
If anyone can help me get these two controls to take on the same appearance
characteristics , that would be greatly appreciated.
Greg 3 2364
Greg,
Be aware that something can be inherited, but also a piece can be shadowed,
which means that the behaviour is changed.
However, maybe this helps http://www.vb-tips.com/ControlBorder.aspx
Cor
"Greg" <Ac**********@n ewsgroups.nospa mschreef in bericht
news:55******** *************** ***********@mic rosoft.com...
>I am used to using third party controls when it comes to setting up
appearences. But, now I am using Visual Basic.Net controls that come
standard
with the product. I've come across a frustration situation with the combo
box
and text box controls.
I setup the text box control appearence settings the way I want the
control
to appear. Basically, I have set the "Border Style=FixedSing le", which
results in the control taking on a flat appearence and a black border
around
the control.
Now, I want to make my combo box take on the same appearence, as I like
all
of the controls in my application to take on the same characteristics .
Now,
for the combo box I look in the Apperance Group and do not find a "Border
Style" property. The only thing clost to it that I see is the
"FlatStyle=Flat ", which makes the combo box control appear flat, but the
border of the control is not highlight with a black border, thus both of
my
controls look nothing alike.
Now, I have read some books on VB.Net and if I recall correctly, these
controls inherit from the Control class. I would take this to mean that
all
the controls take on the same properties and methods as inherited from the
base control class.
But, what I have found is that both the text box and combo box controls
have
different Appearence properties and thus I cannot use a common set of
settings to make the controls look the same, using the same appearance
settings. I come from an Access background, and I always give the controls
in
my application the same appearance and it makes my application look very
professional.
How can I make the combo box and text box controls take on the same
appearancees so they look to take on the same Appearance characteristics .
If anyone can help me get these two controls to take on the same
appearance
characteristics , that would be greatly appreciated.
Greg
That example would have a few problems in the real world, e.g.
1) It does not enumerate the controls recursively. Only the
controls that are direct children of the form, but not those of
groupboxes, etc.
2) It draws the rectangles on the form, rather than the
textboxes. In other words, the rectangles would be drawn
behind the textboxes. I have not run the sample, but I cannot
see how it could possibly work.
3) If a single pixel of the form background is exposed (i.e.
invalidated by another form moved away from it), all the
textbox borders would be redrawn (or rather, they would not
- see above). If, on the other hand, a textbox on the form
was invalidated (the textbox window - not the value),
nothing would happen, which is the exact opposite of what
is needed.
4) Even if it worked, similar code would have to be written
to handle other control types, i.e. the TypeOf case would
have to be extended.
5) This snippet of code would have to be added to every
form that needed to control its children in this manner.
The correct approach would be to create a "MyTextBox" class
(or whatever) that inherits from TextBox and override some of the
base methods to handle custom drawing and provide properties
for controlling its appearance when dropped on a form.
Regards,
Joergen Bech
On Tue, 20 May 2008 06:37:27 +0200, "Cor Ligthert[MVP]"
<no************ @planet.nlwrote :
>Greg,
Be aware that something can be inherited, but also a piece can be shadowed, which means that the behaviour is changed.
However, maybe this helps
http://www.vb-tips.com/ControlBorder.aspx
Cor
"Greg" <Ac**********@n ewsgroups.nospa mschreef in bericht news:55******* *************** ************@mi crosoft.com...
>>I am used to using third party controls when it comes to setting up appearences. But, now I am using Visual Basic.Net controls that come standard with the product. I've come across a frustration situation with the combo box and text box controls.
I setup the text box control appearence settings the way I want the control to appear. Basically, I have set the "Border Style=FixedSing le", which results in the control taking on a flat appearence and a black border around the control.
Now, I want to make my combo box take on the same appearence, as I like all of the controls in my application to take on the same characteristics . Now, for the combo box I look in the Apperance Group and do not find a "Border Style" property. The only thing clost to it that I see is the "FlatStyle=Fla t", which makes the combo box control appear flat, but the border of the control is not highlight with a black border, thus both of my controls look nothing alike.
Now, I have read some books on VB.Net and if I recall correctly, these controls inherit from the Control class. I would take this to mean that all the controls take on the same properties and methods as inherited from the base control class.
But, what I have found is that both the text box and combo box controls have different Appearence properties and thus I cannot use a common set of settings to make the controls look the same, using the same appearance settings. I come from an Access background, and I always give the controls in my application the same appearance and it makes my application look very professional .
How can I make the combo box and text box controls take on the same appearancees so they look to take on the same Appearance characteristics .
If anyone can help me get these two controls to take on the same appearance characteristic s, that would be greatly appreciated.
Greg
Joergen,
It is only meant to show that it can be done.
For the rest, I completely agree with you about this and your other message
in this thread.
I don't think that I can add something to that.
Cor
"Joergen Bech @ post1.tele.dk>" <jbech<NOSPAMNO SPAMschreef in bericht
news:7c******** *************** *********@4ax.c om...
>
That example would have a few problems in the real world, e.g.
1) It does not enumerate the controls recursively. Only the
controls that are direct children of the form, but not those of
groupboxes, etc.
2) It draws the rectangles on the form, rather than the
textboxes. In other words, the rectangles would be drawn
behind the textboxes. I have not run the sample, but I cannot
see how it could possibly work.
3) If a single pixel of the form background is exposed (i.e.
invalidated by another form moved away from it), all the
textbox borders would be redrawn (or rather, they would not
- see above). If, on the other hand, a textbox on the form
was invalidated (the textbox window - not the value),
nothing would happen, which is the exact opposite of what
is needed.
4) Even if it worked, similar code would have to be written
to handle other control types, i.e. the TypeOf case would
have to be extended.
5) This snippet of code would have to be added to every
form that needed to control its children in this manner.
The correct approach would be to create a "MyTextBox" class
(or whatever) that inherits from TextBox and override some of the
base methods to handle custom drawing and provide properties
for controlling its appearance when dropped on a form.
Regards,
Joergen Bech
On Tue, 20 May 2008 06:37:27 +0200, "Cor Ligthert[MVP]"
<no************ @planet.nlwrote :
>>Greg,
Be aware that something can be inherited, but also a piece can be shadowed, which means that the behaviour is changed.
However, maybe this helps
http://www.vb-tips.com/ControlBorder.aspx
Cor
"Greg" <Ac**********@n ewsgroups.nospa mschreef in bericht news:55****** *************** *************@m icrosoft.com...
>>>I am used to using third party controls when it comes to setting up appearences . But, now I am using Visual Basic.Net controls that come standard with the product. I've come across a frustration situation with the combo box and text box controls.
I setup the text box control appearence settings the way I want the control to appear. Basically, I have set the "Border Style=FixedSing le", which results in the control taking on a flat appearence and a black border around the control.
Now, I want to make my combo box take on the same appearence, as I like all of the controls in my application to take on the same characteristics . Now, for the combo box I look in the Apperance Group and do not find a "Border Style" property. The only thing clost to it that I see is the "FlatStyle=Fl at", which makes the combo box control appear flat, but the border of the control is not highlight with a black border, thus both of my controls look nothing alike.
Now, I have read some books on VB.Net and if I recall correctly, these controls inherit from the Control class. I would take this to mean that all the controls take on the same properties and methods as inherited from the base control class.
But, what I have found is that both the text box and combo box controls have different Appearence properties and thus I cannot use a common set of settings to make the controls look the same, using the same appearance settings. I come from an Access background, and I always give the controls in my application the same appearance and it makes my application look very professiona l.
How can I make the combo box and text box controls take on the same appearancee s so they look to take on the same Appearance characteristi cs.
If anyone can help me get these two controls to take on the same appearance characteristi cs, that would be greatly appreciated.
Greg This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: VINAY |
last post by:
Dear All,
The subject line could be bit confusing. So let me explain in
details, please have patience. I have developed an ActiveX
Control(Combo Box Control) in VB6 for a touch screen application since
the user had problems working with the small Combo Box Button and
Scroll Box Scroll Button that appears in the Combo Box Control Shipped
with VB. While going through questions in this group i learnt that one
can change the size of the...
|
by: Steve Jorgensen |
last post by:
I'm now working at a company that uses automated testing, and I've made
some changes to an application that should now, still pass all
automated regression tests.
The trouble is, we're also switching from Access 2000 to Access 2003,
and Office 2003 products now break Microsoft's own rules, ignoring the
Windows appearance settings and subtituting their own special Office
menu styles.
This causes 2 annoying problems. First, all...
|
by: Mevar81 |
last post by:
Hi to everybody.I have a problem with the PropertyGrid
control.I want to display not all the properties of a
generic Control(Button,TextBox,ComboBox,ecc.).In general
I don't want to display only one category(Appearance,
Behavior,ecc.) but I want to chose directly which
properties to show.I've read that I can use the
SelectedObjects to put an array of object with some
properties in common with the SelectedObject,and only
properties in...
|
by: Eldon Ferran de Pol |
last post by:
Hi all
I've got a custom control that has several image based properties
I wan't each of these properties to use the standard .Net dialog box for selecting a URL that appears when setting the src property in various standard ASP.NET controls
Is there anyway for me to link my custom property into this standard dialog box
Thanks for any advice
|
by: Shimon Sim |
last post by:
I have a custom composite control
I have following property
| |
by: BlueSky |
last post by:
Hi All,
Is there an equivalent html control or asp control in .NET that does
the following -
<ul>
<li>list item1</li>
<li>list item2</li>
<li>list item3</li>
</ul>
Thanks for any tip!
|
by: Mark Olbert |
last post by:
This involves a family of related, databound ASPNET2 composite controls.
I've managed to arrange things so that the composite controls restore themselves from ViewState on postback after they're initially
configured during DataBind(). Thanks to Steven Cheng for pointing out that you have to set the constituent control properties after
you add them to the composite control collection for the restore to work!
However, I now have a...
|
by: vtxr1300 |
last post by:
I'm trying to create a login box control to use that simply exposes the
username, password and remember me properties when the login button is
clicked. I have the button click wired up and working and at one time,
the username was holding state. I don't know what I changed, but now
nothing holds state. I've read a number of messages about making sure
that the controls are added to the control collection during
CreateChildControls, which...
|
by: David |
last post by:
Hello all. I am trying to implement my first server control and have
run into two problems that I cannot solve. I need the assistance of
someone with more experience.
My goal was to create an input button that would allow for both text
and an image on it. I am attempting to accomplish this by basing off
of the asp:button control. I added a property for the image url and
one to determine if the image is displayed on the left or right...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |