Click here to Skip to main content
15,886,847 members
Home / Discussions / C#
   

C#

 
AnswerRe: conversion from Uint32 to float Pin
Luc Pattyn8-May-18 2:56
sitebuilderLuc Pattyn8-May-18 2:56 
QuestionWebServices Pin
Member 22364197-May-18 23:17
Member 22364197-May-18 23:17 
AnswerRe: WebServices Pin
Eddy Vluggen7-May-18 23:38
professionalEddy Vluggen7-May-18 23:38 
AnswerRe: WebServices Pin
OriginalGriff7-May-18 23:43
mveOriginalGriff7-May-18 23:43 
GeneralRe: WebServices Pin
Member 22364198-May-18 19:35
Member 22364198-May-18 19:35 
GeneralRe: WebServices Pin
Mycroft Holmes8-May-18 20:31
professionalMycroft Holmes8-May-18 20:31 
Questionc# Why can I not get this to work? Pin
tomas0007-May-18 1:21
tomas0007-May-18 1:21 
AnswerRe: c# Why can I not get this to work? Pin
Luc Pattyn7-May-18 2:42
sitebuilderLuc Pattyn7-May-18 2:42 
Hi,

I see several issues:

1.
the code shown does not compile; there are several syntax errors in method OnSelected().
Please show actual code, and if you consider it necessary to shorten the code, keep it correct.

2.
I fail to see the logic in your code structure: both Class1 and Form1 create a new Apath. Are you sure that is what you want? They will be distinct objects.

3.
I fail to see how your OnSelected() method will ever execute. There seems to be nothing that calls it. Therefore num1 remains at its initial value (which is null), and that is what gets shown by your MessageBox, which is kind enough to treat null as an empty string.


Suggestions:

1.
Use descriptive names, not just Form1 and Button1.

2.
Provide some context information when asking a question here; it helps us understand what it is all about.

3.
If what you want is the path of your .exe file, you should have a look at the Assembly class and try something like
string exePath=Assembly.GetCurrentAssembly().Location;


Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

AnswerRe: c# Why can I not get this to work? Pin
User 74293389-May-18 23:24
professionalUser 74293389-May-18 23:24 
Questionnow how can i get the splitted values in a textbox from seperate line in c# using text file Pin
Mohamed Fahad M6-May-18 4:14
Mohamed Fahad M6-May-18 4:14 
AnswerRe: now how can i get the splitted values in a textbox from seperate line in c# using text file Pin
Gerry Schmitz6-May-18 5:02
mveGerry Schmitz6-May-18 5:02 
AnswerRe: now how can i get the splitted values in a textbox from seperate line in c# using text file Pin
OriginalGriff6-May-18 6:47
mveOriginalGriff6-May-18 6:47 
QuestionThe data contract type “…” cannot be deserialized because the required data members Pin
Ruhul Md Amin5-May-18 9:36
Ruhul Md Amin5-May-18 9:36 
AnswerRe: The data contract type “…” cannot be deserialized because the required data members Pin
OriginalGriff5-May-18 20:45
mveOriginalGriff5-May-18 20:45 
GeneralRe: The data contract type “…” cannot be deserialized because the required data members Pin
Ruhul Md Amin6-May-18 1:52
Ruhul Md Amin6-May-18 1:52 
Questionwhen have you used a C# SortedList<TKey, TValue> ? Pin
BillWoodruff5-May-18 7:44
professionalBillWoodruff5-May-18 7:44 
AnswerRe: when have you used a C# SortedList<TKey, TValue> ? Pin
Gerry Schmitz5-May-18 8:42
mveGerry Schmitz5-May-18 8:42 
GeneralRe: when have you used a C# SortedList<TKey, TValue> ? Pin
BillWoodruff5-May-18 23:21
professionalBillWoodruff5-May-18 23:21 
GeneralRe: when have you used a C# SortedList<TKey, TValue> ? Pin
Gerry Schmitz6-May-18 4:33
mveGerry Schmitz6-May-18 4:33 
GeneralRe: when have you used a C# SortedList<TKey, TValue> ? Pin
BillWoodruff6-May-18 6:55
professionalBillWoodruff6-May-18 6:55 
GeneralRe: when have you used a C# SortedList<TKey, TValue> ? Pin
Gerry Schmitz6-May-18 7:33
mveGerry Schmitz6-May-18 7:33 
GeneralRe: when have you used a C# SortedList<TKey, TValue> ? Pin
BillWoodruff6-May-18 23:23
professionalBillWoodruff6-May-18 23:23 
AnswerRe: when have you used a C# SortedList<TKey, TValue> ? Pin
jschell5-May-18 11:29
jschell5-May-18 11:29 
GeneralRe: when have you used a C# SortedList<TKey, TValue> ? Pin
BillWoodruff5-May-18 23:25
professionalBillWoodruff5-May-18 23:25 
GeneralRe: when have you used a C# SortedList<TKey, TValue> ? Pin
jschell12-May-18 9:22
jschell12-May-18 9:22 

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.