Click here to Skip to main content
15,893,486 members
Home / Discussions / C#
   

C#

 
GeneralRe: Voice over lan Pin
Richard MacCutchan5-Oct-09 0:51
mveRichard MacCutchan5-Oct-09 0:51 
GeneralRe: Voice over lan Pin
rosae6195-Oct-09 1:57
rosae6195-Oct-09 1:57 
QuestionCapture Images from webcam Pin
Abdul Rahman Hamidy3-Oct-09 18:46
Abdul Rahman Hamidy3-Oct-09 18:46 
AnswerRe: Capture Images from webcam Pin
Luc Pattyn3-Oct-09 22:00
sitebuilderLuc Pattyn3-Oct-09 22:00 
QuestionPreventing the user to resize the ListView columns Pin
SimpleData3-Oct-09 7:05
SimpleData3-Oct-09 7:05 
AnswerRe: Preventing the user to resize the ListView columns Pin
Luc Pattyn3-Oct-09 8:29
sitebuilderLuc Pattyn3-Oct-09 8:29 
GeneralRe: Preventing the user to resize the ListView columns Pin
SimpleData3-Oct-09 8:38
SimpleData3-Oct-09 8:38 
GeneralRe: Preventing the user to resize the ListView columns Pin
Manas Bhardwaj3-Oct-09 9:31
professionalManas Bhardwaj3-Oct-09 9:31 
SimpleData wrote:
Yes it has and supports canceling but user can change the width even it's canceled. Just the resizing animation isn't shown.


You can use the ColumnWidthChanging [^]event of the listview.
But surprisingly, it seems to have a bug which MS has accepted. You can have a look here[^].

A possible workaround would be to cancel the event, and set the old width again. (kinda dirty...)

private void listView1_ColumnWidthChanging(object sender, ColumnWidthChangingEventArgs e)
{
	e.NewWidth = this.listView1.Columns[e.ColumnIndex].Width;
	e.Cancel = true;				
}


Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

GeneralRe: Preventing the user to resize the ListView columns Pin
DaveyM693-Oct-09 9:34
professionalDaveyM693-Oct-09 9:34 
GeneralRe: Preventing the user to resize the ListView columns Pin
SimpleData3-Oct-09 10:09
SimpleData3-Oct-09 10:09 
Joke[Message Deleted] Pin
Muammar©3-Oct-09 1:56
Muammar©3-Oct-09 1:56 
GeneralRe: Big chief, no fart! Pin
Luc Pattyn3-Oct-09 2:03
sitebuilderLuc Pattyn3-Oct-09 2:03 
GeneralRe: Big chief, no fart! Pin
Muammar©3-Oct-09 2:19
Muammar©3-Oct-09 2:19 
GeneralRe: Big chief, no fart! Pin
Xmen Real 3-Oct-09 2:13
professional Xmen Real 3-Oct-09 2:13 
GeneralRe: Big chief, no fart! Pin
Muammar©3-Oct-09 2:18
Muammar©3-Oct-09 2:18 
Questionhow to store OnComm values in a single string variable Pin
Mads1153-Oct-09 1:12
Mads1153-Oct-09 1:12 
AnswerRe: how to store OnComm values in a single string variable Pin
freakyit3-Oct-09 1:46
freakyit3-Oct-09 1:46 
AnswerRe: how to store OnComm values in a single string variable Pin
Luc Pattyn3-Oct-09 2:02
sitebuilderLuc Pattyn3-Oct-09 2:02 
AnswerRe: how to store OnComm values in a single string variable Pin
dan!sh 3-Oct-09 2:10
professional dan!sh 3-Oct-09 2:10 
AnswerRe: how to store OnComm values in a single string variable Pin
PIEBALDconsult3-Oct-09 6:34
mvePIEBALDconsult3-Oct-09 6:34 
QuestionDataGridViewCombo Pin
jacobsan43-Oct-09 0:35
jacobsan43-Oct-09 0:35 
AnswerRe: DataGridViewCombo Pin
Xmen Real 3-Oct-09 1:42
professional Xmen Real 3-Oct-09 1:42 
AnswerRe: DataGridViewCombo Pin
dan!sh 3-Oct-09 2:07
professional dan!sh 3-Oct-09 2:07 
QuestionRe: DataGridViewCombo Pin
jacobsan43-Oct-09 2:44
jacobsan43-Oct-09 2:44 
QuestionImplementing MVC architecture in Windows Form Pin
srikrishnakrishna murthy2-Oct-09 23:46
srikrishnakrishna murthy2-Oct-09 23:46 

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.