Click here to Skip to main content
15,888,082 members
Home / Discussions / C#
   

C#

 
QuestionMessage Removed Pin
6-Apr-10 2:10
mrkeivan6-Apr-10 2:10 
AnswerRe: coding for a software which is gonna run on a server Pin
Pete O'Hanlon6-Apr-10 3:35
mvePete O'Hanlon6-Apr-10 3:35 
AnswerRe: coding for a software which is gonna run on a server Pin
PIEBALDconsult6-Apr-10 4:34
mvePIEBALDconsult6-Apr-10 4:34 
GeneralRe: coding for a software which is gonna run on a server Pin
mrkeivan6-Apr-10 7:25
mrkeivan6-Apr-10 7:25 
GeneralRe: coding for a software which is gonna run on a server Pin
PIEBALDconsult6-Apr-10 9:13
mvePIEBALDconsult6-Apr-10 9:13 
QuestionHow i can create dvdplayer in directshow? Pin
Nematjon Rahmanov6-Apr-10 1:44
Nematjon Rahmanov6-Apr-10 1:44 
QuestionPanel array [modified] Pin
peropata6-Apr-10 1:36
peropata6-Apr-10 1:36 
AnswerRe: Panel array Pin
WillemM6-Apr-10 4:49
WillemM6-Apr-10 4:49 
You can add panels dynamically to a form by doing something similar to the following:

Form parentForm; // Set this to the form you want the panels added to

foreach(var drawing in Drawings)
{
  MyCustomPanel myPanel = new MyCustomPanel();
  myPanel.Drawing = drawing;

  // Set the location and size to the values you need

  parentForm.Controls.Add(myPanel);
}


The trick here is to create a custom control derived from panel that will paint the drawing you assign to it. Here's a basic skeleton to get you on the way

public class MyCustomPanel: Panel
{
  public Drawing Drawing { get; set; }

  protected override void OnPaint(object sender,PaintEventArgs e)
  {
    // Draw the image here using e.Graphics
  }
}


GeneralRe: Panel array [modified] Pin
peropata6-Apr-10 7:39
peropata6-Apr-10 7:39 
QuestionHow to get DataGridView Checkbox Checked or not ! [modified] Pin
Sr...Frank6-Apr-10 1:16
Sr...Frank6-Apr-10 1:16 
AnswerRe: How to get DataGridView Checkbox Checked or not ! Pin
Eddy Vluggen6-Apr-10 3:41
professionalEddy Vluggen6-Apr-10 3:41 
GeneralRe: How to get DataGridView Checkbox Checked or not ! Pin
Sr...Frank6-Apr-10 4:22
Sr...Frank6-Apr-10 4:22 
GeneralRe: How to get DataGridView Checkbox Checked or not ! Pin
Eddy Vluggen6-Apr-10 4:59
professionalEddy Vluggen6-Apr-10 4:59 
AnswerRe: How to get DataGridView Checkbox Checked or not ! Pin
carlecomm7-Apr-10 2:37
carlecomm7-Apr-10 2:37 
GeneralRe: How to get DataGridView Checkbox Checked or not ! Pin
Ashrafuddin7-Jun-11 19:15
Ashrafuddin7-Jun-11 19:15 
Questionkeeping sql connection open Pin
teknolog1236-Apr-10 0:31
teknolog1236-Apr-10 0:31 
AnswerRe: keeping sql connection open Pin
Pete O'Hanlon6-Apr-10 1:10
mvePete O'Hanlon6-Apr-10 1:10 
GeneralRe: keeping sql connection open Pin
teknolog1236-Apr-10 1:56
teknolog1236-Apr-10 1:56 
GeneralRe: keeping sql connection open Pin
Not Active6-Apr-10 2:31
mentorNot Active6-Apr-10 2:31 
GeneralRe: keeping sql connection open Pin
Pete O'Hanlon6-Apr-10 3:22
mvePete O'Hanlon6-Apr-10 3:22 
AnswerRe: keeping sql connection open Pin
PIEBALDconsult6-Apr-10 4:35
mvePIEBALDconsult6-Apr-10 4:35 
QuestionSending Large Files in C# using TCP Client/Server [modified] Pin
EvanSaunders5-Apr-10 23:43
EvanSaunders5-Apr-10 23:43 
AnswerRe: Sending Large Files in C# using TCP Client/Server Pin
Garth J Lancaster6-Apr-10 0:43
professionalGarth J Lancaster6-Apr-10 0:43 
GeneralRe: Sending Large Files in C# using TCP Client/Server Pin
EvanSaunders6-Apr-10 1:26
EvanSaunders6-Apr-10 1:26 
AnswerRe: Sending Large Files in C# using TCP Client/Server Pin
Garth J Lancaster6-Apr-10 0:55
professionalGarth J Lancaster6-Apr-10 0:55 

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.