Click here to Skip to main content
15,919,567 members
Home / Discussions / C#
   

C#

 
AnswerRe: PredicateBuilder Question Pin
Luc Pattyn10-Jul-19 7:41
sitebuilderLuc Pattyn10-Jul-19 7:41 
GeneralRe: PredicateBuilder Question Pin
Kevin Marois10-Jul-19 7:52
professionalKevin Marois10-Jul-19 7:52 
GeneralRe: PredicateBuilder Question Pin
Luc Pattyn10-Jul-19 7:55
sitebuilderLuc Pattyn10-Jul-19 7:55 
QuestionAvoid ASP Page Refresh after button click Pin
ahmadroheed9-Jul-19 18:04
ahmadroheed9-Jul-19 18:04 
AnswerRe: Avoid ASP Page Refresh after button click Pin
Gerry Schmitz10-Jul-19 6:22
mveGerry Schmitz10-Jul-19 6:22 
QuestionI have two questions concerning what Visual Studio adds when you make a GUI project Pin
Member 129742359-Jul-19 13:29
Member 129742359-Jul-19 13:29 
AnswerRe: I have two questions concerning what Visual Studio adds when you make a GUI project Pin
Dave Kreskowiak9-Jul-19 14:06
mveDave Kreskowiak9-Jul-19 14:06 
AnswerRe: I have two questions concerning what Visual Studio adds when you make a GUI project Pin
BillWoodruff9-Jul-19 17:00
professionalBillWoodruff9-Jul-19 17:00 
'NameSpaces [^] control semantic scope: the context in which specific names (Classes, Methods, Fields, Properties, etc.) have meaning. They are a tool you can use to organize your code, and, when using different libraries that have duplicate names, to ensure isolation of one meaning from another (prevent name clashes).

Going a little "deeper:" we can view NameSpaces as an abstraction of an underlying code base that involves Assemblies; see this to explore this further: [^]

C# allows multiple NameSpaces in one file; other languages (ex. Java) do not.

It is very typical to use 3rd. party tools, or code libraries (dll's), and typical that you need to import code which will have their own NameSpaces. In C# Visual Studio you do this from the Solution/Project/References/Add Reference menu in the Solution Explorer.

Then, you enable the imported code to become available by adding a 'using statement with the name of the NameSpace.
Member 12974235 wrote:
Public Partial Class MainWindow:Window
This is the default declaration of a newly created WPF app.
Quote:
<global.microsoft.visualbasic.compilerservices.designergenerated()> _
Partial Class Form1
Inherits System.Windows.Forms.Form
This what the Designer.vb file in a VB app uses.
Quote:
public partial class Form1
C# declaration.
«Where is the Life we have lost in living? Where is the wisdom we have lost in knowledge? Where is the knowledge we have lost in information?» T. S. Elliot

AnswerRe: I have two questions concerning what Visual Studio adds when you make a GUI project Pin
OriginalGriff9-Jul-19 20:24
mveOriginalGriff9-Jul-19 20:24 
GeneralRe: I have two questions concerning what Visual Studio adds when you make a GUI project Pin
BillWoodruff9-Jul-19 22:20
professionalBillWoodruff9-Jul-19 22:20 
GeneralRe: I have two questions concerning what Visual Studio adds when you make a GUI project Pin
OriginalGriff9-Jul-19 22:25
mveOriginalGriff9-Jul-19 22:25 
GeneralRe: I have two questions concerning what Visual Studio adds when you make a GUI project Pin
BillWoodruff10-Jul-19 7:01
professionalBillWoodruff10-Jul-19 7:01 
GeneralRe: I have two questions concerning what Visual Studio adds when you make a GUI project Pin
OriginalGriff10-Jul-19 8:06
mveOriginalGriff10-Jul-19 8:06 
GeneralRe: I have two questions concerning what Visual Studio adds when you make a GUI project Pin
Member 1297423510-Jul-19 3:33
Member 1297423510-Jul-19 3:33 
GeneralRe: I have two questions concerning what Visual Studio adds when you make a GUI project Pin
OriginalGriff10-Jul-19 4:34
mveOriginalGriff10-Jul-19 4:34 
GeneralRe: I have two questions concerning what Visual Studio adds when you make a GUI project Pin
BillWoodruff10-Jul-19 6:43
professionalBillWoodruff10-Jul-19 6:43 
AnswerRe: I have two questions concerning what Visual Studio adds when you make a GUI project Pin
Gerry Schmitz10-Jul-19 6:49
mveGerry Schmitz10-Jul-19 6:49 
QuestionTo me this error msg is very cryptic! I am using VS2017 with MS Excel 2007 Pin
Greg Gonzales8-Jul-19 11:43
Greg Gonzales8-Jul-19 11:43 
AnswerRe: To me this error msg is very cryptic! I am using VS2017 with MS Excel 2007 Pin
Dave Kreskowiak8-Jul-19 11:54
mveDave Kreskowiak8-Jul-19 11:54 
GeneralRe: To me this error msg is very cryptic! I am using VS2017 with MS Excel 2007 Pin
Greg Gonzales8-Jul-19 17:09
Greg Gonzales8-Jul-19 17:09 
Questionhelp Pin
Member 145235257-Jul-19 13:40
Member 145235257-Jul-19 13:40 
AnswerRe: help Pin
Mycroft Holmes7-Jul-19 17:48
professionalMycroft Holmes7-Jul-19 17:48 
GeneralRe: help Pin
OriginalGriff7-Jul-19 18:46
mveOriginalGriff7-Jul-19 18:46 
GeneralRe: help Pin
Member 145235257-Jul-19 21:49
Member 145235257-Jul-19 21:49 
GeneralRe: help Pin
OriginalGriff7-Jul-19 22:09
mveOriginalGriff7-Jul-19 22:09 

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.