Click here to Skip to main content
14,575,478 members
   

C#

 
GeneralTo be honest Pin
Ennis Ray Lynch, Jr.11-Jun-09 4:43
MemberEnnis Ray Lynch, Jr.11-Jun-09 4:43 
GeneralRe: To be honest Pin
SimpleData11-Jun-09 4:47
MemberSimpleData11-Jun-09 4:47 
GeneralRe: To be honest Pin
Dave Kreskowiak11-Jun-09 5:16
mveDave Kreskowiak11-Jun-09 5:16 
GeneralRe: To be honest Pin
saurabh sahay11-Jun-09 6:15
Membersaurabh sahay11-Jun-09 6:15 
AnswerRe: Common encryption method in PHP and C# Pin
saurabh sahay11-Jun-09 6:14
Membersaurabh sahay11-Jun-09 6:14 
GeneralRe: Common encryption method in PHP and C# Pin
SimpleData11-Jun-09 6:51
MemberSimpleData11-Jun-09 6:51 
AnswerRe: Common encryption method in PHP and C# Pin
saurabh sahay11-Jun-09 8:18
Membersaurabh sahay11-Jun-09 8:18 
QuestionToolStripPanel Drawing Pin
baehoo11-Jun-09 4:01
Memberbaehoo11-Jun-09 4:01 
I am trying to get a ToolStripPanel to have the same drawing style as the embedded ToolStrips, so that it looks like one continuous bar. I have the ToolStrips using the ToolStripProfessionalRenderer so that they are styled the same as the Windows Task Bar.

I have gotten close by creating a new Renderer derived from ToolStripProfessionalRenderer:

class CustomRenderer : ToolStripProfessionalRenderer
{
   protected override void OnRenderToolStripPanelBackground(ToolStripPanelRenderEventArgs e)
   {
      base.OnRenderToolStripPanelBackground(e);

      LinearGradientBrush lgb = new LinearGradientBrush(e.ToolStripPanel.ClientRectangle, this.ColorTable.ToolStripGradientBegin, this.ColorTable.ToolStripGradientEnd, LinearGradientMode.Vertical);
      e.Graphics.FillPath(lgb, e.ToolStripPanel.ClientRectangle);
   }
}


This creates the gradient look with the correct colors, but they do not match up quite right. It seems as if the gradient has a higher number of colors, so the spread is drawn out longer.

I have accounted for the border of the ToolStrips (which is not shown in this code), yet they still don't match up quite right.

Anyone know how to make this happen?
Questiongrid view updation Pin
nagendra.vk11-Jun-09 3:17
Membernagendra.vk11-Jun-09 3:17 
AnswerRe: grid view updation Pin
EliottA11-Jun-09 4:28
MemberEliottA11-Jun-09 4:28 
AnswerRe: grid view updation Pin
saurabh sahay11-Jun-09 5:32
Membersaurabh sahay11-Jun-09 5:32 
QuestionFingerprint recognition SDK Pin
Matt Cavanagh11-Jun-09 3:08
MemberMatt Cavanagh11-Jun-09 3:08 
QuestionRe: Fingerprint recognition SDK Pin
Harvey Saayman11-Jun-09 3:11
MemberHarvey Saayman11-Jun-09 3:11 
AnswerRe: Fingerprint recognition SDK Pin
Matt Cavanagh11-Jun-09 3:30
MemberMatt Cavanagh11-Jun-09 3:30 
GeneralRe: Fingerprint recognition SDK Pin
Dave Kreskowiak11-Jun-09 4:04
mveDave Kreskowiak11-Jun-09 4:04 
AnswerRe: Fingerprint recognition SDK Pin
RyanEK11-Jun-09 14:13
MemberRyanEK11-Jun-09 14:13 
QuestionSQL Connection dropping Pin
iitksculler11-Jun-09 2:25
Memberiitksculler11-Jun-09 2:25 
AnswerRe: SQL Connection dropping Pin
Ennis Ray Lynch, Jr.11-Jun-09 3:15
MemberEnnis Ray Lynch, Jr.11-Jun-09 3:15 
AnswerRe: SQL Connection dropping Pin
saurabh sahay11-Jun-09 6:34
Membersaurabh sahay11-Jun-09 6:34 
QuestionLooking for a spesific control Pin
teknolog12311-Jun-09 1:53
Memberteknolog12311-Jun-09 1:53 
AnswerRe: Looking for a spesific control Pin
Rob Philpott11-Jun-09 2:36
MemberRob Philpott11-Jun-09 2:36 
AnswerRe: Looking for a spesific control [modified] Pin
saurabh sahay11-Jun-09 6:36
Membersaurabh sahay11-Jun-09 6:36 
GeneralRe: Looking for a spesific control Pin
teknolog12312-Jun-09 7:19
Memberteknolog12312-Jun-09 7:19 
GeneralRe: Looking for a spesific control Pin
saurabh sahay12-Jun-09 13:18
Membersaurabh sahay12-Jun-09 13:18 
QuestionDatagridview double enter event handler Pin
spikekirk11-Jun-09 1:31
Memberspikekirk11-Jun-09 1:31 

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.