Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to get the Maximum of Value of In a Rows in DataGridView Pin
Luc Pattyn23-Nov-11 10:11
sitebuilderLuc Pattyn23-Nov-11 10:11 
AnswerRe: How to get the Maximum of Value of In a Rows in DataGridView Pin
PIEBALDconsult23-Nov-11 10:52
mvePIEBALDconsult23-Nov-11 10:52 
GeneralRe: How to get the Maximum of Value of In a Rows in DataGridView Pin
Reiss23-Nov-11 21:02
professionalReiss23-Nov-11 21:02 
AnswerRe: How to get the Maximum of Value of In a Rows in DataGridView Pin
Shameel23-Nov-11 20:06
professionalShameel23-Nov-11 20:06 
GeneralRe: How to get the Maximum of Value of In a Rows in DataGridView Pin
nassimnastaran24-Nov-11 5:09
nassimnastaran24-Nov-11 5:09 
QuestionTabPage Text Pin
Danzy8323-Nov-11 9:42
Danzy8323-Nov-11 9:42 
AnswerRe: TabPage Text Pin
Luc Pattyn23-Nov-11 10:09
sitebuilderLuc Pattyn23-Nov-11 10:09 
AnswerRe: TabPage Text Pin
BillWoodruff23-Nov-11 21:18
professionalBillWoodruff23-Nov-11 21:18 
Here's the way I would approach this: assuming this is WinForms: and, assuming that I wanted all the tabs to always maintain a certain short length

... of course Luc's excellent solution (above) would work great if you are willing to change the width of the TabPage Tab header text when each TabPage is selected ...

1. on the TabControl: set the 'ShowToolTips property to 'true

2. for each Tab:

  a. define a short, hopefully mnemonic, name for the Tab
  b. set the ToolTipText for that Tab to the longer name

3. fill each TabPage with a Panel with its 'Dock property set to 'Fill

Discussion: The Panel that fills each TabPage will not show a ToolTip, but mouse-over the Tab will show the "long name."

  One step further using this suggestion: I suppose if I had a lot of Tabs ... or for future flexibility in revision/maintenance ... I might "automate" this by creating two matching Lists, or a Dictionary, and then, in the Form's 'Load EventHandler, doing the right thing to set each TabPage's 'Text and 'ToolTipText properties in a loop.

  The Occam's Razor solution: Perhaps the simplest, idea of all, if you are willing to use the content area of the TabPage: put a label somewhere on each TabPage showing the full-name.

  Thinking out-of-the-box: create a UserControl that joins a TabControl with a StatusStrip control, and show the full name, and whatever else, in the StatusStrip for each selected TabPage ?
"... Sturgeon's revelation. It came to him that Science Fiction is indeed ninety-percent crud, but that also—Eureka!—ninety-percent of everything is crud. All things—cars, books, cheeses, hairstyles, people and pins are, to the expert and discerning eye, crud, except for the acceptable tithe which we each happen to like." early 1950's quote from Venture Sci-Fi Magazine on the origin of Sturgeon's Law, by author Theodore Sturgeon: source Oxford English Dictionary on-line "Word-of-the-Day."

QuestionCan we get A Name for the Row of DataGridView ... Pin
nassimnastaran23-Nov-11 8:48
nassimnastaran23-Nov-11 8:48 
AnswerRe: Can we get A Name for the Row of DataGridView ... Pin
PIEBALDconsult23-Nov-11 9:04
mvePIEBALDconsult23-Nov-11 9:04 
GeneralRe: Can we get A Name for the Row of DataGridView ... Pin
nassimnastaran23-Nov-11 9:36
nassimnastaran23-Nov-11 9:36 
GeneralRe: Can we get A Name for the Row of DataGridView ... Pin
PIEBALDconsult23-Nov-11 10:29
mvePIEBALDconsult23-Nov-11 10:29 
GeneralRe: Can we get A Name for the Row of DataGridView ... Pin
nassimnastaran24-Nov-11 5:28
nassimnastaran24-Nov-11 5:28 
AnswerRe: Can we get A Name for the Row of DataGridView ... Pin
Luc Pattyn23-Nov-11 10:10
sitebuilderLuc Pattyn23-Nov-11 10:10 
Questionc# Convert a large bitmap into jpeg format Pin
mgulde23-Nov-11 8:04
mgulde23-Nov-11 8:04 
AnswerRe: c# Convert a large bitmap into jpeg format Pin
darkDercane23-Nov-11 9:00
professionaldarkDercane23-Nov-11 9:00 
AnswerRe: c# Convert a large bitmap into jpeg format Pin
harold aptroot23-Nov-11 9:25
harold aptroot23-Nov-11 9:25 
AnswerRe: c# Convert a large bitmap into jpeg format Pin
Luc Pattyn23-Nov-11 10:17
sitebuilderLuc Pattyn23-Nov-11 10:17 
GeneralRe: c# Convert a large bitmap into jpeg format Pin
mgulde23-Nov-11 22:31
mgulde23-Nov-11 22:31 
GeneralTry/Catch Opinions Pin
mjackson1123-Nov-11 7:08
mjackson1123-Nov-11 7:08 
GeneralRe: Try/Catch Opinions Pin
PIEBALDconsult23-Nov-11 7:16
mvePIEBALDconsult23-Nov-11 7:16 
GeneralRe: Try/Catch Opinions Pin
Not Active23-Nov-11 7:28
mentorNot Active23-Nov-11 7:28 
GeneralRe: Try/Catch Opinions Pin
PIEBALDconsult23-Nov-11 7:37
mvePIEBALDconsult23-Nov-11 7:37 
GeneralRe: Try/Catch Opinions Pin
Not Active23-Nov-11 7:47
mentorNot Active23-Nov-11 7:47 
AnswerRe: Try/Catch Opinions Pin
Eddy Vluggen23-Nov-11 7:45
professionalEddy Vluggen23-Nov-11 7:45 

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.