Click here to Skip to main content
14,392,668 members
   

C#

 
GeneralRe: Argument 1: cannot convert from 'object' to 'string' Pin
OriginalGriff31-Oct-19 3:20
mveOriginalGriff31-Oct-19 3:20 
AnswerRe: Argument 1: cannot convert from 'object' to 'string' Pin
Richard MacCutchan31-Oct-19 2:37
mveRichard MacCutchan31-Oct-19 2:37 
GeneralRe: Argument 1: cannot convert from 'object' to 'string' Pin
Member 1463942031-Oct-19 2:57
MemberMember 1463942031-Oct-19 2:57 
GeneralRe: Argument 1: cannot convert from 'object' to 'string' Pin
Dave Kreskowiak31-Oct-19 3:16
mveDave Kreskowiak31-Oct-19 3:16 
GeneralRe: Argument 1: cannot convert from 'object' to 'string' Pin
Richard Deeming31-Oct-19 3:45
communityengineerRichard Deeming31-Oct-19 3:45 
QuestionCreate New Label when click button in window form, move it when click and move mouse, and save it again when close file exe Pin
Member 1045263729-Oct-19 22:10
MemberMember 1045263729-Oct-19 22:10 
AnswerRe: Create New Label when click button in window form, move it when click and move mouse, and save it again when close file exe Pin
OriginalGriff29-Oct-19 22:44
mveOriginalGriff29-Oct-19 22:44 
GeneralRe: Create New Label when click button in window form, move it when click and move mouse, and save it again when close file exe Pin
Member 1045263730-Oct-19 0:07
MemberMember 1045263730-Oct-19 0:07 
Hi!

Thanks for your reply,

Here is my code. i just only create new label.

<pre>using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace Form1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        bool selected = false;
        private void Form1_Load(object sender, EventArgs e)
        {

        }
        int B = 1;
        public System.Windows.Forms.Label AddNewLabel()
        {
            System.Windows.Forms.Label newLabel = new System.Windows.Forms.Label();
            this.Controls.Add(newLabel);
            newLabel.Top = B * 28;
            newLabel.Left = 50;
            newLabel.Text = "DOOR EXIT " + this.B.ToString();
            if (B >= 5)
            {
                newLabel.Top = B * 28;
                newLabel.Left = 100;
            }
            else
            {
                newLabel.Left = 50;
            }
            B = B + 1;
            newLabel.BorderStyle = BorderStyle.FixedSingle;
            newLabel.TextAlign = ContentAlignment.MiddleCenter;
            if(newLabel.MouseMove)
            {
                newLabel.Location = e.Location;
            }
            return newLabel;
        }
        private void btn_Create_Click(object sender, EventArgs e)
        {
            AddNewLabel();
        }
    }
}


GeneralRe: Create New Label when click button in window form, move it when click and move mouse, and save it again when close file exe Pin
OriginalGriff30-Oct-19 0:22
mveOriginalGriff30-Oct-19 0:22 
QuestionHow to solve complex captcha in C# Pin
rflprado29-Oct-19 6:53
Memberrflprado29-Oct-19 6:53 
AnswerRe: How to solve complex captcha in C# Pin
OriginalGriff29-Oct-19 6:55
mveOriginalGriff29-Oct-19 6:55 
AnswerRe: How to solve complex captcha in C# Pin
OriginalGriff29-Oct-19 6:56
mveOriginalGriff29-Oct-19 6:56 
Questionc sharp Pin
Member 1115563928-Oct-19 10:41
MemberMember 1115563928-Oct-19 10:41 
AnswerRe: c sharp Pin
OriginalGriff28-Oct-19 11:37
mveOriginalGriff28-Oct-19 11:37 
QuestionRe: c sharp Pin
ZurdoDev28-Oct-19 11:45
professionalZurdoDev28-Oct-19 11:45 
Questionarray manipulation Pin
Member 1463677628-Oct-19 0:54
MemberMember 1463677628-Oct-19 0:54 
AnswerRe: array manipulation Pin
OriginalGriff28-Oct-19 1:32
mveOriginalGriff28-Oct-19 1:32 
AnswerRe: array manipulation Pin
ZurdoDev28-Oct-19 11:46
professionalZurdoDev28-Oct-19 11:46 
GeneralRe: array manipulation Pin
Nathan Minier29-Oct-19 2:18
professionalNathan Minier29-Oct-19 2:18 
GeneralRe: array manipulation Pin
ZurdoDev29-Oct-19 2:22
professionalZurdoDev29-Oct-19 2:22 
GeneralRe: array manipulation Pin
Nathan Minier29-Oct-19 2:53
professionalNathan Minier29-Oct-19 2:53 
QuestionSend values from one form to another form Pin
Member 1115563927-Oct-19 11:41
MemberMember 1115563927-Oct-19 11:41 
AnswerRe: Send values from one form to another form Pin
Luc Pattyn27-Oct-19 12:40
sitebuilderLuc Pattyn27-Oct-19 12:40 
GeneralRe: Send values from one form to another form Pin
OriginalGriff27-Oct-19 13:08
mveOriginalGriff27-Oct-19 13:08 
GeneralRe: Send values from one form to another form Pin
Luc Pattyn27-Oct-19 13:12
sitebuilderLuc Pattyn27-Oct-19 13:12 

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.