Click here to Skip to main content
15,887,421 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# Attributes Pin
Bernhard Hiller11-Jun-13 22:51
Bernhard Hiller11-Jun-13 22:51 
Question/r is removed from string parameter Pin
Rock Star.11-Jun-13 21:30
Rock Star.11-Jun-13 21:30 
AnswerRe: /r is removed from string parameter Pin
Bernhard Hiller11-Jun-13 22:54
Bernhard Hiller11-Jun-13 22:54 
AnswerRe: /r is removed from string parameter Pin
Ron Beyer12-Jun-13 5:48
professionalRon Beyer12-Jun-13 5:48 
AnswerRe: /r is removed from string parameter Pin
jschell12-Jun-13 8:53
jschell12-Jun-13 8:53 
QuestionC# obtain values from windows form Pin
classy_dog11-Jun-13 10:53
classy_dog11-Jun-13 10:53 
AnswerRe: C# obtain values from windows form Pin
Rob Philpott11-Jun-13 10:59
Rob Philpott11-Jun-13 10:59 
AnswerRe: C# obtain values from windows form Pin
Eddy Vluggen11-Jun-13 11:47
professionalEddy Vluggen11-Jun-13 11:47 
C#
static void Main(string[] args)
{
  using (var f = new RejectForm())
  {
    if (DialogResult.OK == f.ShowDialog())
    {
       string someValue = f.TheValue;
    }
    else 
    {
      // Cancel?
    }
  }
}

You'd need public properties in your RejectForm, similar to the code below;
C#
public class RejectForm: Form
{
    public string TheValue
    {
      get { return theValueTextBox.Text; }
    }
}

Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

GeneralRe: C# obtain values from windows form Pin
classy_dog11-Jun-13 17:51
classy_dog11-Jun-13 17:51 
AnswerRe: C# obtain values from windows form Pin
Eddy Vluggen11-Jun-13 22:28
professionalEddy Vluggen11-Jun-13 22:28 
AnswerRe: C# obtain values from windows form Pin
Caldazar8712-Jun-13 10:45
Caldazar8712-Jun-13 10:45 
GeneralRe: C# obtain values from windows form Pin
Eddy Vluggen12-Jun-13 10:53
professionalEddy Vluggen12-Jun-13 10:53 
QuestionForm-Designer-like application needed. Help appreciated. Pin
Member 1004349811-Jun-13 10:22
Member 1004349811-Jun-13 10:22 
AnswerRe: Form-Designer-like application needed. Help appreciated. Pin
Eddy Vluggen11-Jun-13 10:38
professionalEddy Vluggen11-Jun-13 10:38 
GeneralRe: Form-Designer-like application needed. Help appreciated. Pin
Member 1004349811-Jun-13 12:16
Member 1004349811-Jun-13 12:16 
AnswerRe: Form-Designer-like application needed. Help appreciated. Pin
Ron Beyer11-Jun-13 12:25
professionalRon Beyer11-Jun-13 12:25 
GeneralRe: Form-Designer-like application needed. Help appreciated. Pin
Member 1004349811-Jun-13 12:34
Member 1004349811-Jun-13 12:34 
GeneralRe: Form-Designer-like application needed. Help appreciated. Pin
Ron Beyer11-Jun-13 12:40
professionalRon Beyer11-Jun-13 12:40 
GeneralRe: Form-Designer-like application needed. Help appreciated. Pin
Member 1004349811-Jun-13 12:53
Member 1004349811-Jun-13 12:53 
QuestionButton acting as Key Pin
Jassim Rahma11-Jun-13 5:41
Jassim Rahma11-Jun-13 5:41 
AnswerRe: Button acting as Key Pin
Richard MacCutchan11-Jun-13 6:26
mveRichard MacCutchan11-Jun-13 6:26 
AnswerRe: Button acting as Key Pin
Thomas Daniels11-Jun-13 6:45
mentorThomas Daniels11-Jun-13 6:45 
QuestionChanging a CSS attribute in C# Code Pin
mrkeivan10-Jun-13 23:15
mrkeivan10-Jun-13 23:15 
AnswerRe: Changing a CSS attribute in C# Code Pin
Bernhard Hiller10-Jun-13 23:49
Bernhard Hiller10-Jun-13 23:49 
Questionvbscript to c# Pin
fernando_moca10-Jun-13 18:47
fernando_moca10-Jun-13 18:47 

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.