Windows XP Button vs Framework window form button

  • Thread starter Thread starter A-PK
  • Start date Start date
A

A-PK

Hi,

How could I create the same button and tab of windows XP in vb.net
i found that the button that I create in vb.net is different with windows xp
one.

anyone know how to do that ? pls advise me
 
Hi,
If you are using .NET version 1.1 (VS.NET 2003), then this can be achieved very easily.

You need to do the following.

1. Set the FlatStyle property of the Button Control to "System"
2. Add the following line to the Static Main method (if C#) or before the InitializeComponent() method call (for VB.NET)
Application.EnableVisualStyles()

Hope this helps...

Regards,
Ramjee


----- A-PK wrote: -----

Hi,

How could I create the same button and tab of windows XP in vb.net
i found that the button that I create in vb.net is different with windows xp
one.

anyone know how to do that ? pls advise me
 
how about TabControl ?

Ramjee Tangutur said:
Hi,
If you are using .NET version 1.1 (VS.NET 2003), then this can be achieved very easily.

You need to do the following.

1. Set the FlatStyle property of the Button Control to "System"
2. Add the following line to the Static Main method (if C#) or before the
InitializeComponent() method call (for VB.NET)
 
Great : ) that is working fine : )

do you have any idea how to use to windows xp default ico ?
use default windows ico on my vb.net application

Ramjee Tangutur said:
Hi,
If you are using .NET version 1.1 (VS.NET 2003), then this can be achieved very easily.

You need to do the following.

1. Set the FlatStyle property of the Button Control to "System"
2. Add the following line to the Static Main method (if C#) or before the
InitializeComponent() method call (for VB.NET)
 
I am able to change to button and tab now.

but when i insert application.ebablevisualstyles() code in. the image that
was supposed to be shown in listview1 one did not show up
if i take out that code. then i am able to show the image in listview. pls
guide me what is the problem

listview1.items.add("test",0)

0 is refering to the imagelist1 object where the image is zero.
already associate image1 for listview smallimagelist and largeimagelist
property

pls guide. thank you


Ramjee Tangutur said:
Hi,
If you are using .NET version 1.1 (VS.NET 2003), then this can be achieved very easily.

You need to do the following.

1. Set the FlatStyle property of the Button Control to "System"
2. Add the following line to the Static Main method (if C#) or before the
InitializeComponent() method call (for VB.NET)
 
On Fri, 27 Feb 2004 14:36:53 +0800, A-PK wrote:

Right after the call to EnableVisualStyles, call
Application.DoEvents.
 
Back
Top