Click here to Skip to main content
15,906,645 members
Home / Discussions / C#
   

C#

 
AnswerRe: threading with events Pin
Christian Graus24-Nov-08 19:09
protectorChristian Graus24-Nov-08 19:09 
GeneralRe: threading with events Pin
asugix26-Nov-08 2:31
asugix26-Nov-08 2:31 
AnswerRe: threading with events Pin
N a v a n e e t h24-Nov-08 19:54
N a v a n e e t h24-Nov-08 19:54 
QuestionHow to change Label contrl's height and width runtime Pin
Software_Guy_12324-Nov-08 18:14
Software_Guy_12324-Nov-08 18:14 
AnswerRe: How to change Label contrl's height and width runtime Pin
Corayzon24-Nov-08 18:20
Corayzon24-Nov-08 18:20 
GeneralRe: How to change Label contrl's height and width runtime Pin
Software_Guy_12324-Nov-08 21:43
Software_Guy_12324-Nov-08 21:43 
GeneralRe: How to change Label contrl's height and width runtime Pin
Software_Guy_12326-Nov-08 18:08
Software_Guy_12326-Nov-08 18:08 
GeneralRe: How to change Label contrl's height and width runtime Pin
harschel1-Dec-09 1:13
harschel1-Dec-09 1:13 
Ya thanks Kumar,
Measurestring really helped it.
IF any one wants the code snippet :
int iTop = 0;
for (int icounter = 0; icounter < someCollectionObject.Count; icounter++)
{
Label lblctrl = new Label();
lblctrl.Name = "lbl" + icounter.ToString();
lblctrl.Image = "Put the image locaiton here "
lblctrl.ImageAlign = ContentAlignment.TopLeft;
string txtToShow = string.Empty;
txtToShow = " " + someCollectionObject[icounter];
lblctrl.Text = txtToShow;
lblctrl.Font = new System.Drawing.Font("Arial", 7f, System.Drawing.FontStyle.Bold);
lblctrl.ForeColor = Color.LemonChiffon;
lblctrl.Top = iTop;
Graphics g = Graphics.FromHwnd(this.Handle);
SizeF sz = g.MeasureString(txtToShow, lblctrl.Font, 100);
lblctrl.Width = "You can have any constant width you wanted";
lblctrl.Height = (int)sz.Height -10;

iTop += lblctrl.Height;
}
QuestionC# :: Drag virtual file from listview to windows explorer Pin
Corayzon24-Nov-08 16:56
Corayzon24-Nov-08 16:56 
AnswerRe: C# :: Drag virtual file from listview to windows explorer Pin
Giorgi Dalakishvili26-Nov-08 8:53
mentorGiorgi Dalakishvili26-Nov-08 8:53 
Questionicons Pin
viciouskinid24-Nov-08 15:51
viciouskinid24-Nov-08 15:51 
AnswerRe: icons Pin
Christian Graus24-Nov-08 15:51
protectorChristian Graus24-Nov-08 15:51 
GeneralRe: icons Pin
viciouskinid24-Nov-08 16:16
viciouskinid24-Nov-08 16:16 
AnswerRe: icons Pin
Paul Conrad24-Nov-08 16:51
professionalPaul Conrad24-Nov-08 16:51 
AnswerRe: icons Pin
asugix24-Nov-08 17:32
asugix24-Nov-08 17:32 
QuestionVS-2005 C# windows forms and MS-Access 2003 Pin
AndieDu24-Nov-08 15:15
AndieDu24-Nov-08 15:15 
AnswerRe: VS-2005 C# windows forms and MS-Access 2003 Pin
Mycroft Holmes24-Nov-08 15:21
professionalMycroft Holmes24-Nov-08 15:21 
GeneralRe: VS-2005 C# windows forms and MS-Access 2003 Pin
AndieDu24-Nov-08 15:36
AndieDu24-Nov-08 15:36 
GeneralRe: VS-2005 C# windows forms and MS-Access 2003 Pin
Mycroft Holmes24-Nov-08 15:44
professionalMycroft Holmes24-Nov-08 15:44 
GeneralRe: VS-2005 C# windows forms and MS-Access 2003 Pin
Christian Graus24-Nov-08 15:51
protectorChristian Graus24-Nov-08 15:51 
GeneralRe: VS-2005 C# windows forms and MS-Access 2003 Pin
Paul Conrad24-Nov-08 16:53
professionalPaul Conrad24-Nov-08 16:53 
AnswerRe: VS-2005 C# windows forms and MS-Access 2003 Pin
Vimalsoft(Pty) Ltd24-Nov-08 19:21
professionalVimalsoft(Pty) Ltd24-Nov-08 19:21 
QuestionExtracting Cell Data From A DataGridView Pin
Rafone24-Nov-08 10:26
Rafone24-Nov-08 10:26 
AnswerRe: Extracting Cell Data From A DataGridView Pin
TxPomeroy24-Nov-08 11:44
TxPomeroy24-Nov-08 11:44 
GeneralRe: Extracting Cell Data From A DataGridView Pin
Rafone24-Nov-08 12:46
Rafone24-Nov-08 12: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.