Click here to Skip to main content
15,921,577 members
Home / Discussions / C#
   

C#

 
GeneralRe: turn off Server.exe Pin
vunhat2-Jun-07 11:17
vunhat2-Jun-07 11:17 
AnswerRe: turn off Server.exe Pin
Hesham Yassin6-Jun-07 8:36
Hesham Yassin6-Jun-07 8:36 
Questionfind path Pin
vunhat1-Jun-07 18:07
vunhat1-Jun-07 18:07 
AnswerRe: find path Pin
xibeifeijian1-Jun-07 18:46
xibeifeijian1-Jun-07 18:46 
GeneralRe: find path Pin
vunhat2-Jun-07 10:39
vunhat2-Jun-07 10:39 
GeneralRe: find path Pin
vunhat2-Jun-07 11:52
vunhat2-Jun-07 11:52 
AnswerRe: find path Pin
Hesham Yassin6-Jun-07 8:38
Hesham Yassin6-Jun-07 8:38 
Questiontablelayoutpanel help please it's urgent Pin
dinosors1-Jun-07 17:03
dinosors1-Jun-07 17:03 
[b]hey to all the forum
i create a tablelayoutpanel populated with label and pictureBox automaticlly loaded from a folder
and xml file
and i wanna know when the user select (click) on one of the picture or the label
and what's the coordinate of the selected cell
this is the code my tablelayoutpanel is named miniature[/b]


<code>imgSize = new Size(170, 170);
scanDirectory(folder, "*.jpg", System.IO.SearchOption.TopDirectoryOnly);
String selectedImage = selectedImg;
if (imgList == null)
return;
int a = 0;
miniature.ColumnCount = imgList.Length;

foreach (String img in imgList)
{
com_image.Text = com_image.Text + img + "\r\n";
l = new Label();
l.Text = img;
l.TextAlign = ContentAlignment.TopCenter;
miniature.Controls.Add(l, a, 2);
PictureBox pb = new PictureBox();
pb.Size = imgSize;
pb.SizeMode = PictureBoxSizeMode.Zoom;
pb.Image = Image.FromFile(img);
pb.BackColor = Color.White;
pb.Tag = img;
miniature.Controls.Add(pb, a, 0);
a++;
}


</code>


i tried miniature.GetCellPosition(); and miniature.PointToClient(new Point(e.X, e.Y));
but i don't know how to convert point to controls

thanks in advance
AnswerRe: tablelayoutpanel help please it's urgent Pin
Paul Conrad1-Jun-07 17:44
professionalPaul Conrad1-Jun-07 17:44 
QuestionRe: tablelayoutpanel help please it's urgent Pin
dinosors1-Jun-07 17:53
dinosors1-Jun-07 17:53 
AnswerRe: tablelayoutpanel help please it's urgent Pin
Paul Conrad1-Jun-07 17:57
professionalPaul Conrad1-Jun-07 17:57 
GeneralRe: tablelayoutpanel help please it's urgent Pin
dinosors1-Jun-07 18:00
dinosors1-Jun-07 18:00 
AnswerRe: tablelayoutpanel help please it's urgent Pin
Paul Conrad1-Jun-07 18:00
professionalPaul Conrad1-Jun-07 18:00 
GeneralRe: tablelayoutpanel help please it's urgent Pin
dinosors1-Jun-07 18:01
dinosors1-Jun-07 18:01 
AnswerRe: tablelayoutpanel help please it's urgent Pin
dinosors1-Jun-07 18:04
dinosors1-Jun-07 18:04 
GeneralRe: tablelayoutpanel help please it's urgent Pin
Paul Conrad1-Jun-07 18:12
professionalPaul Conrad1-Jun-07 18:12 
Questionhow to change the color of TEXT programmatically? Pin
Khoramdin1-Jun-07 16:39
Khoramdin1-Jun-07 16:39 
AnswerRe: how to change the color of TEXT programmatically? Pin
Paul Conrad1-Jun-07 16:46
professionalPaul Conrad1-Jun-07 16:46 
Questionhow to print any control in vc#2005 ? Pin
hdv2121-Jun-07 14:45
hdv2121-Jun-07 14:45 
AnswerRe: how to print any control in vc#2005 ? Pin
mikker_1232-Jun-07 16:49
mikker_1232-Jun-07 16:49 
Questionfade in /fade out Pin
half-life1-Jun-07 14:21
half-life1-Jun-07 14:21 
AnswerRe: fade in /fade out Pin
xibeifeijian1-Jun-07 18:50
xibeifeijian1-Jun-07 18:50 
GeneralRe: fade in /fade out Pin
half-life2-Jun-07 1:36
half-life2-Jun-07 1:36 
Questionusercontrol Pin
half-life1-Jun-07 14:20
half-life1-Jun-07 14:20 
QuestionHow can I avoid waiting for a response after an HttpWebRequest POST? Pin
kontrolakka1-Jun-07 9:40
kontrolakka1-Jun-07 9:40 

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.