Click here to Skip to main content
15,893,644 members
Home / Discussions / C#
   

C#

 
AnswerRe: get string from if statement in c# Pin
OriginalGriff19-Oct-22 11:32
mveOriginalGriff19-Oct-22 11:32 
GeneralRe: get string from if statement in c# Pin
Sycho AN19-Oct-22 12:24
Sycho AN19-Oct-22 12:24 
GeneralRe: get string from if statement in c# Pin
Dave Kreskowiak19-Oct-22 12:33
mveDave Kreskowiak19-Oct-22 12:33 
AnswerRe: get string from if statement in c# Pin
Gerry Schmitz19-Oct-22 14:10
mveGerry Schmitz19-Oct-22 14:10 
AnswerRe: get string from if statement in c# Pin
Pete O'Hanlon21-Oct-22 8:20
mvePete O'Hanlon21-Oct-22 8:20 
QuestionHow to know if 2 ASCII created lines in a command prompt has the same length? Pin
Programmable Physics18-Oct-22 2:19
Programmable Physics18-Oct-22 2:19 
AnswerRe: How to know if 2 ASCII created lines in a command prompt has the same length? Pin
Richard Deeming18-Oct-22 2:35
mveRichard Deeming18-Oct-22 2:35 
AnswerRe: How to know if 2 ASCII created lines in a command prompt has the same length? Pin
OriginalGriff18-Oct-22 3:19
mveOriginalGriff18-Oct-22 3:19 
QuestionAccessControl for Domain Users Pin
ormonds17-Oct-22 18:11
ormonds17-Oct-22 18:11 
AnswerRe: AccessControl for Domain Users Pin
Richard Deeming17-Oct-22 22:11
mveRichard Deeming17-Oct-22 22:11 
GeneralRe: AccessControl for Domain Users Pin
ormonds18-Oct-22 12:40
ormonds18-Oct-22 12:40 
QuestionI am using rdlc report and report viewer control.When i export the rdlc report to pdf the words written in hindi are not correctly displayed in the pdf. Pin
Member 1315824616-Oct-22 23:14
Member 1315824616-Oct-22 23:14 
AnswerRe: I am using rdlc report and report viewer control.When i export the rdlc report to pdf the words written in hindi are not correctly displayed in the pdf. Pin
Richard Deeming16-Oct-22 23:24
mveRichard Deeming16-Oct-22 23:24 
QuestionPreventing an exception from happening when converting to bool Pin
Member 1552753010-Oct-22 3:40
Member 1552753010-Oct-22 3:40 
AnswerRe: Preventing an exception from happening when converting to bool Pin
dan!sh 10-Oct-22 3:51
professional dan!sh 10-Oct-22 3:51 
AnswerRe: Preventing an exception from happening when converting to bool Pin
Richard MacCutchan10-Oct-22 4:07
mveRichard MacCutchan10-Oct-22 4:07 
AnswerRe: Preventing an exception from happening when converting to bool Pin
Eddy Vluggen13-Oct-22 2:29
professionalEddy Vluggen13-Oct-22 2:29 
AnswerRe: Preventing an exception from happening when converting to bool Pin
Raphael Adeniji18-Oct-22 1:15
Raphael Adeniji18-Oct-22 1:15 
GeneralRe: Preventing an exception from happening when converting to bool Pin
Richard Andrew x6431-Oct-22 13:38
professionalRichard Andrew x6431-Oct-22 13:38 
QuestionDragging an item from listBox1 and droping the item into listBox2 code does not work(AllowDrop=true) Pin
Programmable Physics7-Oct-22 1:15
Programmable Physics7-Oct-22 1:15 
AnswerRe: Dragging an item from listBox1 and droping the item into listBox2 code does not work(AllowDrop=true) Pin
OriginalGriff7-Oct-22 1:49
mveOriginalGriff7-Oct-22 1:49 
QuestionBasic use of Linklabel tool in winforms gives Exception Handling Error Pin
Programmable Physics6-Oct-22 1:53
Programmable Physics6-Oct-22 1:53 
This simple code gives Exception Handling Error:

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;

namespace Label_LinkLabel_TextboxKONTROLLERI
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        LinkLabel dynamicLinkLabel = new LinkLabel();
        private void Form2_Load(object sender, EventArgs e)
        {
            dynamicLinkLabel.BackColor = Color.Red;
            dynamicLinkLabel.ForeColor = Color.Blue;
            dynamicLinkLabel.Text = "I am a Dynamic LinkLabel";
            dynamicLinkLabel.TextAlign = (ContentAlignment)HorizontalAlignment.Center;
            dynamicLinkLabel.Text += " Appended text";
            dynamicLinkLabel.Name = "DynamicLinkLabel";
            dynamicLinkLabel.Font = new Font("Georgia", 16);
            Controls.Add(dynamicLinkLabel);
            dynamicLinkLabel.Name = "DynamicLinkLabel";
            string name = dynamicLinkLabel.Name;
            dynamicLinkLabel.Location = new Point(20, 150);
            dynamicLinkLabel.Height = 40;
            dynamicLinkLabel.Width = 300;
            dynamicLinkLabel.BackColor = Color.Red;
            dynamicLinkLabel.ForeColor = Color.Blue;
            dynamicLinkLabel.BorderStyle = BorderStyle.FixedSingle;

            dynamicLinkLabel.ActiveLinkColor = Color.Orange;
            dynamicLinkLabel.VisitedLinkColor = Color.Green;
            dynamicLinkLabel.LinkColor = Color.RoyalBlue;
            dynamicLinkLabel.DisabledLinkColor = Color.Gray;

            dynamicLinkLabel.LinkArea = new LinkArea(0, 22);
            dynamicLinkLabel.Links.Add(24, 9, "http://www.c-sharpcorner.com");
            dynamicLinkLabel.LinkClicked += new LinkLabelLinkClickedEventHandler(LinkedLabelClicked);
        }
        private void LinkedLabelClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            dynamicLinkLabel.LinkVisited = true;
            System.Diagnostics.Process.Start("http://www.c-sharpcorner.com");
        }
    }
}
The code above has been taken from this website: https://www.c-sharpcorner.com/UploadFile/mahesh/linklabel-in-C-Sharp/

Here is the exception:
System.ComponentModel.Win32Exception: 'An error occurred trying to start process 'http://www.c-sharpcorner.com' with working directory 'C:\Users\LENOVO\Desktop\Murat Yücedağ Projeler\Label_LinkLabel_TextboxKONTROLLERI\Label_LinkLabel_TextboxKONTROLLERI\bin\Debug\net6.0-windows'. The system cannot find the file specified.'


Here is the CS8604 Warning:  https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/compiler-messages/nullable-warnings?f1url=%3FappId%3Droslyn%26k%3Dk(CS8604)

I did not understand what causes this. How can I solve this problem?

AnswerRe: Basic use of Linklabel tool in winforms gives Exception Handling Error Pin
CHill606-Oct-22 2:03
mveCHill606-Oct-22 2:03 
AnswerRe: Basic use of Linklabel tool in winforms gives Exception Handling Error Pin
Richard Deeming6-Oct-22 2:11
mveRichard Deeming6-Oct-22 2:11 
QuestionFree licensing solution Pin
Moses Man29-Sep-22 11:45
Moses Man29-Sep-22 11:45 

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.