Click here to Skip to main content
16,016,087 members
Home / Discussions / C#
   

C#

 
GeneralRe: updating a database Pin
Colin Angus Mackay21-Oct-04 3:11
Colin Angus Mackay21-Oct-04 3:11 
GeneralRe: updating a database Pin
steve_rm21-Oct-04 3:53
steve_rm21-Oct-04 3:53 
GeneralRe: updating a database Pin
Colin Angus Mackay21-Oct-04 5:02
Colin Angus Mackay21-Oct-04 5:02 
QuestionHigh performance buffer pooling? Pin
Hugo Hallman21-Oct-04 2:40
Hugo Hallman21-Oct-04 2:40 
AnswerRe: High performance buffer pooling? Pin
Heath Stewart21-Oct-04 7:41
protectorHeath Stewart21-Oct-04 7:41 
GeneralScrollBar Problem Pin
ee9903521-Oct-04 2:07
ee9903521-Oct-04 2:07 
GeneralRe: ScrollBar Problem Pin
Heath Stewart21-Oct-04 7:26
protectorHeath Stewart21-Oct-04 7:26 
GeneralRe: ScrollBar Problem Pin
ee9903521-Oct-04 8:46
ee9903521-Oct-04 8:46 
As you notice, i´m not an expert in programation. I´m usign picturebox because it´s the only manner that I found to solve my problem.
I have a linkedlist with all the elements that I want to put in the panel, and I do something like this...

panelCenas.EnableAutoScrollHorizontal = true;

for(int i = 0; i < cenaslist.LastIndex(); i++)
{
cenasBox = new PictureBox();

cenasBox.Image = cenaslist.GetAtPosition(i + 1);
cenasBox.Tag = cenaslist.GetTagAtPosition(i + 1);
cenasBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
cenasBox.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
cenasBox.Size = new System.Drawing.Size(96, 72);
cenasBox.Location = new System.Drawing.Point(i*96+1, 0);
cenasBox.MouseMove += new System.Windows.Forms.MouseEventHandler(cenasBox_MouseMove);
cenasBox.MouseDown += new System.Windows.Forms.MouseEventHandler(cenasBox_MouseDown);
cenasarrayList.Add( (PictureBox)cenasBox );

TipCenas.SetToolTip( (PictureBox) cenasarrayList[i], Convert.ToString(cenaslist.GetTimeAtPosition(i+1)));
panelCenas.Controls.Add( (PictureBox)cenasarrayList[i]);
}

panelCenas.VisibleAutoScrollVertical = false;


How can I do this with the Graphics.DrawImage?!!! Could you explain it to me.

Thank you very much, Sérgio
GeneralRe: ScrollBar Problem Pin
Heath Stewart21-Oct-04 9:07
protectorHeath Stewart21-Oct-04 9:07 
GeneralChanging the Form icon Pin
Tony D. Abel21-Oct-04 2:03
Tony D. Abel21-Oct-04 2:03 
GeneralRe: Changing the Form icon Pin
perlmunger21-Oct-04 7:16
perlmunger21-Oct-04 7:16 
GeneralRe: Changing the Form icon Pin
Tony D. Abel22-Oct-04 5:36
Tony D. Abel22-Oct-04 5:36 
GeneralRegister Window Message Pin
ppp00121-Oct-04 1:42
ppp00121-Oct-04 1:42 
QuestionHow to find the window handle of MessageWindow instance of C# compact framework? Pin
ting66821-Oct-04 1:41
ting66821-Oct-04 1:41 
Generalcreate COM in c# Pin
ppp00121-Oct-04 1:32
ppp00121-Oct-04 1:32 
GeneralRe: create COM in c# Pin
perlmunger21-Oct-04 7:02
perlmunger21-Oct-04 7:02 
QuestionHow to convert a string to int ? Pin
Andres Coder21-Oct-04 0:39
Andres Coder21-Oct-04 0:39 
AnswerRe: How to convert a string to int ? Pin
Xiangyang Liu 刘向阳21-Oct-04 0:49
Xiangyang Liu 刘向阳21-Oct-04 0:49 
AnswerRe: How to convert a string to int ? Pin
Yuvaraj N21-Oct-04 1:00
Yuvaraj N21-Oct-04 1:00 
AnswerRe: How to convert a string to int ? Pin
J4amieC21-Oct-04 1:02
J4amieC21-Oct-04 1:02 
GeneralGetting Information about Windows Share Folders Pin
Yuvaraj N21-Oct-04 0:13
Yuvaraj N21-Oct-04 0:13 
GeneralMarshalling Inline Arrays Pin
David M. Kean20-Oct-04 22:42
David M. Kean20-Oct-04 22:42 
GeneralC# com interfacing with c++ Pin
Dylan van Heerden20-Oct-04 22:01
Dylan van Heerden20-Oct-04 22:01 
GeneralRe: C# com interfacing with c++ Pin
perlmunger21-Oct-04 7:22
perlmunger21-Oct-04 7:22 
GeneralRe: C# com interfacing with c++ Pin
Dylan van Heerden21-Oct-04 8:54
Dylan van Heerden21-Oct-04 8:54 

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.