Click here to Skip to main content
15,909,953 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can I exchange variables between two applications (between VB and C# application) Pin
ejuanpp6-Sep-06 3:08
ejuanpp6-Sep-06 3:08 
Questionhelp me Pin
sarojkumarjena6-Sep-06 0:20
sarojkumarjena6-Sep-06 0:20 
AnswerRe: help me Pin
mikone6-Sep-06 0:22
mikone6-Sep-06 0:22 
AnswerRe: help me Pin
Nader Elshehabi6-Sep-06 1:03
Nader Elshehabi6-Sep-06 1:03 
QuestionCustom Button Pin
NaveenReddy.Rv5-Sep-06 23:32
NaveenReddy.Rv5-Sep-06 23:32 
AnswerRe: Custom Button Pin
Amar Chaudhary5-Sep-06 23:45
Amar Chaudhary5-Sep-06 23:45 
AnswerRe: Custom Button Pin
mikone5-Sep-06 23:49
mikone5-Sep-06 23:49 
AnswerRe: Custom Button Pin
Nader Elshehabi6-Sep-06 1:29
Nader Elshehabi6-Sep-06 1:29 
Hello

What Mikone said is right. You have to make your own class and inherit it from Button class. I only wanted to remind you that if you want to make your BackColor as transparent, don't forget:
1- In your class to call SetStyle(ControlStyles.SupportsTransparentBackColor) protected method to allow transparent BackColor.
2- Then make a new public event Call it for example SelectiveClick.
3- Make the original Click event as protected, handle it and then check for mouse position in the client area if it is within the transparent area or not. This is a very tricky part!! be careful that your image is not constant, you'd have to retreive the pixel at which the click was fired, and check if it has RGB value or not.

good LuckBig Grin | :-D

PS.
If you want to make things easy for yourself, I suggest searching the articles for a button that already implements transparency.

RegardsRose | [Rose]

QuestionADO.NET related question Pin
Imtiaz Murtaza5-Sep-06 22:43
Imtiaz Murtaza5-Sep-06 22:43 
AnswerRe: ADO.NET related question Pin
Ravi Bhavnani6-Sep-06 1:07
professionalRavi Bhavnani6-Sep-06 1:07 
QuestionWhat format is the best for a procedure? Pin
steed leung5-Sep-06 22:17
steed leung5-Sep-06 22:17 
AnswerRe: What format is the best for a procedure? Pin
Nader Elshehabi6-Sep-06 1:14
Nader Elshehabi6-Sep-06 1:14 
AnswerRe: What format is the best for a procedure? Pin
steed leung6-Sep-06 16:38
steed leung6-Sep-06 16:38 
QuestionCrystal Report Redistributable - Not Pin
Glen Harvy5-Sep-06 22:06
Glen Harvy5-Sep-06 22:06 
AnswerRe: Crystal Report Redistributable - Not Pin
Aaron Dilliard6-Sep-06 9:33
Aaron Dilliard6-Sep-06 9:33 
GeneralRe: Crystal Report Redistributable - Not Pin
Glen Harvy6-Sep-06 12:11
Glen Harvy6-Sep-06 12:11 
GeneralRe: Crystal Report Redistributable - Not Pin
c#guy38116-Sep-06 17:20
c#guy38116-Sep-06 17:20 
QuestionThe type or namespace name 'rtbText' could not be found (are you missing a using directive or an assembly reference?) Pin
Kyle Bartolo5-Sep-06 22:00
Kyle Bartolo5-Sep-06 22:00 
AnswerRe: The type or namespace name 'rtbText' could not be found (are you missing a using directive or an assembly reference?) Pin
mikone5-Sep-06 23:25
mikone5-Sep-06 23:25 
AnswerRe: The type or namespace name 'rtbText' could not be found (are you missing a using directive or an assembly reference?) Pin
Nader Elshehabi6-Sep-06 1:34
Nader Elshehabi6-Sep-06 1:34 
Questionhow to add C++ code in CSharp Programming Pin
phijophlip5-Sep-06 22:00
phijophlip5-Sep-06 22:00 
AnswerRe: how to add C++ code in CSharp Programming Pin
erfi5-Sep-06 23:36
erfi5-Sep-06 23:36 
AnswerRe: how to add C++ code in CSharp Programming Pin
Nader Elshehabi6-Sep-06 2:06
Nader Elshehabi6-Sep-06 2:06 
Questionplz help me,i want to send/receive data to one hardware device that is conneted with GPIB cable , how can i send data to that device in C#.net Pin
premkamalg5-Sep-06 21:58
premkamalg5-Sep-06 21:58 
AnswerRe: plz help me,i want to send/receive data to one hardware device that is conneted with GPIB cable , how can i send data to that device in C#.net Pin
Nader Elshehabi6-Sep-06 2:33
Nader Elshehabi6-Sep-06 2:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.