If you are referring to a Label control you can set its Text property to what ever string you want.
I can I simulate a handdrawing of the letter A, for example, in C#?
You can draw what ever you want also as GDI is wrapped up in the System.Drawing[^] namespace
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871) My: Website | Blog
Hey guys, I have alot of data and I want to move them from my Excel file to my access Database, So I wouldn't Have to do any Data Entery !
Is there any way I can do it By C# or the fact that both are part of Microsoft Office, there is a way to do such a thing ?!!
I have a problem re: DataBindings. I binded a textbox with a database in which I would like to show the date in it, but unfortunately I can't remove the time, so that in the textbox the date only is shown. How can I do it? The following is the code I used for databinding.
i think this code will help you ;
but first you should sign on the domain as a administrator
then add the active directory refference to the code below:
using System.DirectoryServices;// the active dirctory library
/// Summary description for WebForm1.
public class WebForm1 : System.Web.UI.Page
protected System.Web.UI.WebControls.Label Label1;
protected System.Web.UI.WebControls.Button Button1;
protected System.Web.UI.WebControls.ListBox ListBox1;
private void Page_Load(object sender, System.EventArgs e)
// Put user code to initialize the page here
private void retrivedata(string strDoamin)
DirectoryEntry obDirEntry = null;
obDirEntry = new DirectoryEntry("WinNT://" + strDoamin);
DirectoryEntries entries = obDirEntry.Children;
foreach (DirectoryEntry chil in entries )
if ( chil.SchemaClassName =="User")// to retrive the user only
ListBox1.Items.Add( chil.Name + "//" +chil.SchemaClassName);
catch (Exception ex)
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
private void InitializeComponent()
this.Button1.Click += new System.EventHandler(this.Button1_Click);
this.Load += new System.EventHandler(this.Page_Load);
how to rotate images in cycle with link.
iam developing project to the musium.There various type of ancient type Categoriesare available. I have devided all in 6 Categories,so i like to rotate all Categoriesin cycle with picture.further more each Category has link that related to other information. Please give Ideas to begin project.
Last Visit: 31-Dec-99 18:00 Last Update: 22-Sep-23 9:46