473,320 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Custom Command Button of Irregular Shape & of Different Color

I am trying hard to make Custom Command Buttons of Irregular Shape and of Different colours in Active X Interface Wizard but am not successful. Irregular Shape Buttons i.e.; Triangular, Arrow Shape and Hexagonal are made and are responding in click event but I am not able to provide colors to them. I used Window API programming also but buttons are not getting colored. Kindly help.
I am calling Window API "gdi 32" in Modules and Putting Shapes, colors etc in Active X Component but am not able to color buttons.

Thanks
Sunil Borwankar
Nov 6 '06 #1
5 11512
LacrosseB0ss
113 100+
This probably isn't the BEST way to do it and I don't really know what you're trying to do but a cheater would do the following:

Create a shape object on your form. Make it whatever shape and colour you would like. Then use the Shape1_Click() method in code to call it. This should work. I vaguely remember doing it once before.

Hope this works/helps
- LB
Nov 6 '06 #2
This probably isn't the BEST way to do it and I don't really know what you're trying to do but a cheater would do the following:

Create a shape object on your form. Make it whatever shape and colour you would like. Then use the Shape1_Click() method in code to call it. This should work. I vaguely remember doing it once before.

Hope this works/helps
- LB
Sir,
Shape provides only Square, Rectangle, Circle or Elips, where as I want Triangular, Hexagonal and Arrow Shape, Colored Command Buttons.
Shall I get help in this regard?
-SB
Nov 7 '06 #3
Killer42
8,435 Expert 8TB
Sir,
Shape provides only Square, Rectangle, Circle or Elips, where as I want Triangular, Hexagonal and Arrow Shape, Colored Command Buttons.
Shall I get help in this regard?
-SB
You might try these links (just found, not investigated)...And please, let us know how things turn out.
Nov 9 '06 #4
Dear Friend
I want to generate "Arrow shaped botton" in Java Applet .
It seems you already made it , Could you please provide code to me !

Regards

Tony
Jan 6 '07 #5
Killer42
8,435 Expert 8TB
I want to generate "Arrow shaped botton" in Java Applet .
It seems you already made it , Could you please provide code to me !
Given that this is in the Visual Basic forum, I doubt that the source would be written in Java.
Jan 6 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Robert Neville | last post by:
I am having some trouble with some old code revolving around custom form navigation buttons. My main form has a sub-form with these custom navigation buttons. In other words, the code should be...
9
by: Melissa | last post by:
What is the code to delete a command button from a form? Can the code be run from the click event of the button to be deleted? Thanks! Melissa
16
by: MLH | last post by:
In Access 97 and Access 2.0 applications, if a command button has the focus, the spacebar will 'PRESS" the key. How does one go about disabling this annoying BEATURE?
2
by: dskillingstad | last post by:
I'm trying to assign a custom value to a textbox. Here's what I have. I've created a module and "default value" code for a textbox which generates a custom auto-number (yyyy-0000) when a New...
2
by: ppyrstr | last post by:
I have been trying to figure out how to have a custom control that is irregular (non-rectangular) not interfere with other elements on the screen that may interfere with it's "regular" shape (the...
14
by: Kevin | last post by:
A couple of easy questions here hopefully. I've been working on two different database projects which make use of multiple forms. 1. Where's the best/recommended placement for command buttons...
2
by: Senthil | last post by:
Hi All I need to create an Excel report and create a command button and have to run a macro on the click event that will print all the pages in the Excel workbook. I am able to create the report...
1
by: adrianm4380 | last post by:
Is it possible to call the on click event procedure for a command button on a custom toolbar? I have a menu of buttons that open various forms in varying ways that are all controlled in the on...
2
by: Suprim | last post by:
Hi, In visual basic 6 program i am tired of using command button of rectangular and square shape. So I want to make the command button of different shape. For example, of round and oval shape. I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.