Jump to content

C# Kod Sorunu


muco33
 Share

Recommended Posts

arkadaşlar birden fazla texbox var e.Graphics.DrawString(txtTc.Text, txtTc.Font, new SolidBrush(Color.Black), new Point(50, 50)); bu kodla bir textboxdaki yazının çıktısını alıyorum ama birden fazla textbox olduğu için \n komudunu kullanmam lazım ama nereye yazacağımı bilmiyorum....
Link to comment
Share on other sites

\n sadece textlerde olur. Sen çizgi çizdiriyorsun. Bu nedenle y ekseninde bi artış gösterirsen alt alta çıkar. Örneğin;


e.Graphics.DrawString(txtTc.Text, txtTc.Font, new SolidBrush(Color.Black), new Point(50, [b]50[/b]));
e.Graphics.DrawString(txtTc.Text, txtTc.Font, new SolidBrush(Color.Black), new Point(50, [b]60[/b]));

dersen alt alta yazdırabilirsin.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...