button

how to change the shape of button

Page 1 of 1

6 Replies - 2735 Views - Last Post: 20 January 2010 - 01:54 AM Rate Topic: -----

#1 shweta_lect  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 13-January 10

button

Post icon  Posted 13 January 2010 - 12:22 AM

how to change the shape of button
Is This A Good Question/Topic? 0
  • +

Replies To: button

#2 thava  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 180
  • View blog
  • Posts: 1,606
  • Joined: 17-April 07

Re: button

Posted 13 January 2010 - 02:25 AM

why do you need this
Was This Post Helpful? 0
  • +
  • -

#3 FXRev  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 26
  • Joined: 13-January 10

Re: button

Posted 13 January 2010 - 05:51 PM

Basically you can remove the style and use picture with your own style.
Or you can use OCXs of more stylish buttons (the isButton is a great one)
Was This Post Helpful? 0
  • +
  • -

#4 sram  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 05-January 10

Re: button

Posted 19 January 2010 - 01:10 AM

you can insert a circle or rectangle shape from the Visual Basic PowerPacks in the Toolbox. Then you can add an event handler of clicking to any of them so they act as a button like this:
Public Class Form1

	Private Sub OvalShape1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OvalShape1.Click
			  ( Add your code here.)
	End Sub

	Private Sub RectangleShape1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RectangleShape1.Click
			   ( Add your code here.)
	End Sub
End Class


Good Luck,
Sram
Was This Post Helpful? 0
  • +
  • -

#5 raziel_  Icon User is offline

  • Like a lollipop
  • member icon

Reputation: 465
  • View blog
  • Posts: 4,255
  • Joined: 25-March 09

Re: button

Posted 19 January 2010 - 04:38 AM

but that is vb.net dude
Was This Post Helpful? 0
  • +
  • -

#6 bilalmukadam28  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 29-December 09

Re: button

Posted 20 January 2010 - 01:18 AM

to change the back shape click on the button and from image import any picture for your background
Was This Post Helpful? 0
  • +
  • -

#7 RobC  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 24-March 07

Re: button

Posted 20 January 2010 - 01:54 AM

View Postshweta_lect, on 12 Jan, 2010 - 11:22 PM, said:

how to change the shape of button


You don't mention what shape ? ?
If you provide more info, it avoids some of us providing useless guesses.

This might be one of those useless guesses -
You could add a Shape control and set it's BackStyle to Opaque.
You then could place a Label over it, and set it's BackStyle to Transparent.
You use the Label's Caption, to provide the Caption.
You use the Label's Click event to insert your code.
HTH,
Rob
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1