Click here to Skip to main content
15,900,714 members
Home / Discussions / C#
   

C#

 
GeneralRe: RASDIALPARAMS via byte array Pin
leppie23-Aug-03 1:28
leppie23-Aug-03 1:28 
GeneralI FOUND IT ! Pin
HG24-Aug-03 23:04
HG24-Aug-03 23:04 
Generalperformance issue updating datatable Pin
troels_sorensen21-Aug-03 21:51
troels_sorensen21-Aug-03 21:51 
Question[Help]How to get width & height of the text? Pin
xfqiu21-Aug-03 21:15
xfqiu21-Aug-03 21:15 
AnswerRe: [Help]How to get width & height of the text? Pin
Nnamdi Onyeyiri21-Aug-03 23:31
Nnamdi Onyeyiri21-Aug-03 23:31 
Questionhow to download UtilityLibrary? Pin
dongdongrojiny21-Aug-03 20:56
dongdongrojiny21-Aug-03 20:56 
AnswerRe: how to download UtilityLibrary? Pin
J. Dunlap21-Aug-03 21:11
J. Dunlap21-Aug-03 21:11 
GeneralRe: how to download UtilityLibrary? Pin
leppie22-Aug-03 13:58
leppie22-Aug-03 13:58 
GeneralEncrypt/Decrypt byte array into SQLServer image field Pin
chlock21-Aug-03 15:23
chlock21-Aug-03 15:23 
GeneralRe: Encrypt/Decrypt byte array into SQLServer image field Pin
Daniel Turini22-Aug-03 4:26
Daniel Turini22-Aug-03 4:26 
GeneralRe: Encrypt/Decrypt byte array into SQLServer image field Pin
chlock22-Aug-03 5:37
chlock22-Aug-03 5:37 
GeneralTool bar buttons remain pressed Pin
sumeat21-Aug-03 14:56
sumeat21-Aug-03 14:56 
GeneralRe: Tool bar buttons remain pressed Pin
joan_fl22-Aug-03 7:55
joan_fl22-Aug-03 7:55 
GeneralRe: Tool bar buttons remain pressed Pin
sumeat22-Aug-03 8:27
sumeat22-Aug-03 8:27 
QuestionGet installer to create empty folders? Pin
vlusardi21-Aug-03 12:44
vlusardi21-Aug-03 12:44 
AnswerRe: Get installer to create empty folders? Pin
Martey21-Aug-03 18:34
Martey21-Aug-03 18:34 
GeneralRe: Get installer to create empty folders? Pin
vlusardi22-Aug-03 5:23
vlusardi22-Aug-03 5:23 
Generalfirst step in C# Pin
aguest21-Aug-03 12:05
aguest21-Aug-03 12:05 
hello
i starting learning a c# and i am in my first step.
i find an exemple who talk about spliting a windows and i tryed to exucute but i acount a problem the sample don't work and i have many error .
i want to know the step to do to creat a project for this sample.

<br />
using System;<br />
using System.Drawing;<br />
using System.Windows.Forms;<br />
<br />
<br />
<br />
public class UnPanelUnSplitter : Form<br />
{<br />
	private Splitter splitter1;<br />
	private Panel panel1;<br />
<br />
<br />
	public UnPanelUnSplitter()<br />
	{<br />
		InitializeComponent();<br />
	}<br />
<br />
<br />
	private void InitializeComponent()<br />
	{<br />
		this.splitter1 = new Splitter();<br />
		this.panel1 = new Panel();<br />
		this.SuspendLayout();<br />
		// <br />
		// splitter1<br />
		// <br />
		this.splitter1.Dock = System.Windows.Forms.DockStyle.Left;<br />
		// <br />
		// panel1<br />
		// <br />
		this.panel1.BackColor = System.Drawing.Color.Yellow;<br />
		this.panel1.Dock = System.Windows.Forms.DockStyle.Left;<br />
		this.panel1.Resize += new EventHandler(PanelOnResize);<br />
		this.panel1.Paint += new PaintEventHandler(PanelOnPaint);<br />
		// <br />
		// Fenêtre UnPanelUnSplitter<br />
		// <br />
		this.BackColor = System.Drawing.Color.Red;<br />
		this.ClientSize = new System.Drawing.Size(319, 322);<br />
		this.Controls.AddRange(new System.Windows.Forms.Control[] {<br />
						  this.splitter1,<br />
						  this.panel1});<br />
		this.Text = "Un panel avec un splitter";<br />
		this.ResumeLayout(false);<br />
		this.Resize += new EventHandler(PanelOnResize);<br />
		this.Paint += new PaintEventHandler(PanelOnPaint);<br />
<br />
	}<br />
<br />
<br />
<br />
	static void Main() <br />
	{<br />
		Application.Run(new UnPanelUnSplitter());<br />
	}<br />
<br />
<br />
<br />
<br />
	void PanelOnResize(object o, EventArgs e)<br />
	{<br />
		Control control = (Control)o;<br />
		control.Invalidate();			<br />
	}<br />
<br />
<br />
	void PanelOnPaint(object o, PaintEventArgs args)<br />
	{<br />
		Control panel = (Control)o;<br />
		Graphics grfx = args.Graphics;<br />
		grfx.DrawLine(Pens.Black, 0, 0, panel.Width-1, panel.Height-1);<br />
		grfx.DrawLine(Pens.Black, panel.Width-1, 0, 0, panel.Height-1);<br />
		grfx.DrawEllipse(Pens.Black, 0, 0, panel.Width-1, panel.Height-1);<br />
	}<br />
}<br />

GeneralRe: first step in C# Pin
MeisterBiber21-Aug-03 22:05
MeisterBiber21-Aug-03 22:05 
GeneralRe: first step in C# Pin
MeisterBiber22-Aug-03 12:05
MeisterBiber22-Aug-03 12:05 
GeneralProblem with FileLoadException Pin
adaoja21-Aug-03 9:47
adaoja21-Aug-03 9:47 
Questionwraping text in a cell of a datagrid? Pin
mikemilano21-Aug-03 9:38
mikemilano21-Aug-03 9:38 
AnswerRe: wraping text in a cell of a datagrid? Pin
Ista21-Aug-03 14:43
Ista21-Aug-03 14:43 
Questiondeploy 2 components w/ one installer? Pin
vlusardi21-Aug-03 6:25
vlusardi21-Aug-03 6:25 
GeneralVB.NET to C# converter Pin
Iftikhar Ahmad Dar21-Aug-03 5:31
Iftikhar Ahmad Dar21-Aug-03 5:31 

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.