Click here to Skip to main content
15,890,282 members
Home / Discussions / C#
   

C#

 
AnswerRe: Issue with the below code Pin
BillWoodruff26-Jul-17 4:00
professionalBillWoodruff26-Jul-17 4:00 
GeneralRe: Issue with the below code Pin
Paul McGann26-Jul-17 10:34
professionalPaul McGann26-Jul-17 10:34 
AnswerRe: Issue with the below code Pin
Ravi Bhavnani28-Jul-17 8:00
professionalRavi Bhavnani28-Jul-17 8:00 
AnswerRe: Issue with the below code Pin
BenScharbach12-Aug-17 9:42
BenScharbach12-Aug-17 9:42 
QuestionCreate an API in winform Pin
JohnPL25-Jul-17 18:56
JohnPL25-Jul-17 18:56 
QuestionRe: Create an API in winform Pin
Richard MacCutchan25-Jul-17 20:39
mveRichard MacCutchan25-Jul-17 20:39 
AnswerRe: Create an API in winform Pin
Bernhard Hiller25-Jul-17 20:42
Bernhard Hiller25-Jul-17 20:42 
AnswerRe: Create an API in winform Pin
BillWoodruff25-Jul-17 22:23
professionalBillWoodruff25-Jul-17 22:23 
Consider three scenarios:

1. you want to provide a library of methods and data ... without visual UI ... to external clients: you create a Class Library which compiles to a 'dll.

2. you want to provide a re-usable Control which integrates methods and data with a visual UI to external clients: you create a WinForm Control (Component) which compiles to a 'dll.

3. you want to provide a Win application which integrates methods and data with a visual UI to external clients, which can be started with the System.Diagnostics resources (Process.Start), to which you can pass command line arguments etc. : you create an 'exe.

In all three cases, I'd follow Bernard's advice, and separate out logic, algorithms, data constant values, etc., into a Class Library that had no dependencies on the UI.

However, you can add a reference to a WinForm '.exe to another WinForm Project, and then access methods and data in that '.exe without starting it with Process.Start; without running it by invoking its Main Method. If you have static Classes defined: their contents can be used immediately; other non-static Classes will, of course, need to be instantiated with 'new to use their contents.

But, while .NET let's you "get away with this," you're, imho, creating a "monster" Smile | :)
«Differences between Big-Endians, who broke eggs at the larger end, and Little-Endians gave rise to six rebellions: one Emperor lost his life, another his crown. The Lilliputian religion says an egg should be broken on the convenient end, which is now interpreted by the Lilliputians as the smaller end. Big-Endians gained favor in Blefuscu.» J. Swift, 'Gulliver's Travels,' 1726CE

AnswerRe: Create an API in winform Pin
F-ES Sitecore25-Jul-17 22:57
professionalF-ES Sitecore25-Jul-17 22:57 
QuestionMultiple checkbox Pin
sunsher25-Jul-17 1:04
sunsher25-Jul-17 1:04 
AnswerRe: Multiple checkbox Pin
OriginalGriff25-Jul-17 1:19
mveOriginalGriff25-Jul-17 1:19 
GeneralRe: Multiple checkbox Pin
sunsher25-Jul-17 3:22
sunsher25-Jul-17 3:22 
GeneralRe: Multiple checkbox Pin
Eddy Vluggen25-Jul-17 3:37
professionalEddy Vluggen25-Jul-17 3:37 
Questionc # how to split packet in the desire format Pin
Member 1293627224-Jul-17 7:49
Member 1293627224-Jul-17 7:49 
AnswerRe: c # how to split packet in the desire format Pin
OriginalGriff24-Jul-17 8:07
mveOriginalGriff24-Jul-17 8:07 
AnswerRe: c # how to split packet in the desire format Pin
BillWoodruff24-Jul-17 8:45
professionalBillWoodruff24-Jul-17 8:45 
QuestionC# Windows Forms and OpenTK (glControl) Pin
mprada24-Jul-17 3:21
mprada24-Jul-17 3:21 
AnswerRe: C# Windows Forms and OpenTK (glControl) Pin
Richard MacCutchan24-Jul-17 3:39
mveRichard MacCutchan24-Jul-17 3:39 
GeneralRe: C# Windows Forms and OpenTK (glControl) Pin
mprada24-Jul-17 3:56
mprada24-Jul-17 3:56 
GeneralRe: C# Windows Forms and OpenTK (glControl) Pin
Richard MacCutchan24-Jul-17 5:03
mveRichard MacCutchan24-Jul-17 5:03 
Generalfirst program in visual c# Pin
dinesh kumar sharma22-Jul-17 20:48
dinesh kumar sharma22-Jul-17 20:48 
QuestionRe: first program in visual c# Pin
Peter_in_278022-Jul-17 21:55
professionalPeter_in_278022-Jul-17 21:55 
GeneralRe: first program in visual c# Pin
OriginalGriff22-Jul-17 22:39
mveOriginalGriff22-Jul-17 22:39 
GeneralRe: first program in visual c# Pin
BenScharbach12-Aug-17 9:31
BenScharbach12-Aug-17 9:31 
Questionmake a video tutorial Pin
Member 1330981721-Jul-17 3:46
Member 1330981721-Jul-17 3:46 

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.