PrestwoodBoards.com
-Collapse +Expand

C#

Search C# Group:

Advanced
-Collapse +Expand C# Group Home◄╣
-Collapse +Expand Message Board
-Collapse +Expand Knowledge Base
-Collapse +Expand C# To/From
To/FromCODEGuides
-Collapse +Expand C# Study Test
PRESTWOODCERTIFIED
-Collapse +Expand C# Store
PRESTWOODSTORE
-Collapse +Expand Members Only
   PrestwoodBoardsAll Groups   

New to PrestwoodBoards?

Sign up, it's free and anyone can join.

Join Today for a free account,
or Sign In if you are already a member.

C# Group

Welcome Guest!

This page is the C# Group home page (summary page).


C# (Visual C# & VS.Net)

C# language group as implemented in Microsoft Visual C#. All .Net topics covered including WinForm and WebForm development.

About the C# Language
C# .NET is all the rage these days - and rightfully so.  With roots in C, C++ - and even a Delphi-like flavor, C# is a great development language.  Better yet, its "host" IDE, Visual Studio, is a wonderful development environment.  Whether you are targeting desktop applications, web services or ASP NET ImageASP .NET, C# is a great way to go.

If you're also a VB.Net coder, consider joining our VB.Net language group too and if you're a Visual C++ coder, consider joining our C++ group.

C# Content!
Chat!
C# Board:
Posts =  44
Threads =  27
Unanswered =  5
Topics =  3
Research!
C# KB:
Articles =  25
News =  1
10 Min Starts =  2
Code =  54
Dictionary =  7
Translate!
To/From Code:
Topics =  50
Code =  660
Study!
eCertified:
Beg Q. =  4
Int Q. =  6
Adv Q. =  7
Write!
Member Blogs:
Blogs =  2
Entries =  2

What's happening now! C# Group!

(New, updated, and unanswered.)

New: C# Message Board Posts

Go To: C# Message Board
 Thread StarterReplies Last Post Topic
Sign In To Check If Stuff Is New
936
Hits
State Project
I am student in a programming class, but was looking for some help. I am developing a project that involves building a program that when I type in a state it w...
1
Please don't make multiple posts with the same content. What programming language are you using? Y...
12/21/2005
VS.Net General & Other
Sign In To Check If Stuff Is New
712
Hits
Project
I am student in a programming class, but was looking for some. I am developing a project that involves building a program that when I type in a state it will d...
1
If you're still having this issue, can you post the code sample?
6/4/2007
VS.Net General & Other
Sign In To Check If Stuff Is New
1487
Hits
Attributes
Am I to understand correctly that Attributes can omit the word Attribute when they are referenced? I.E. Although WebMethod is used all the time the correct name...
1
Dropping the 'Attribute' part of the is just a convention that is commonly practiced.  You can ...
6/21/2007
C# & WinForms
Sign In To Check If Stuff Is New
731
Hits
abstract keyword
do methods defined with the abstract keyword have to be defined inside of an abstract class? I am converting some vb.net code and the MustOverride keyword doesn...
2
Thx for the answer sandman. What I was trying to figure out was abstract methods in non-abstract cla...
2/3/2004
C# & WinForms
More...

Unanswered: C# Message Board

 Thread StarterReplies Last Post Topic
Sign In To Check If Stuff Is New
600
Hits
Visual Studio .NET Now Available
MSDN Subscribers can download Visual Studio .NET. (January 15, Announcement) [URL=http://msdn.microsoft.com/subscriptions/]http://msdn.microsoft.com/subscriptions/[/URL]
0New!
1/16/2002
VS.Net General & Other
Sign In To Check If Stuff Is New
488
Hits
Common Language Runtime (CLR)
The Common Language Runtime (CLR) is part of the Microsoft .NET initiative. CLR provides the common foundation necessary for language interoperability. Through CLR any development tool can be made .NE...
0New!
10/17/2001
VS.Net General & Other
Sign In To Check If Stuff Is New
535
Hits
Microsoft DevDays 2001 only $99
Microsoft is holding a great one day seminar on .NET for only $99. With the 2 for 1 early bird special it's only $50 each. Two tracks 10 1 hour courses (attend your choice of 5). This one is a no brai...
0New!
9/27/2001
VS.Net General & Other
Sign In To Check If Stuff Is New
576
Hits
Anders on C# versus Java
The following is a clip from another web site I thought everybody might enjoy. It was authored by Peter Coffee. 'When I met with Microsoft language architect Anders Hejlsberg, he described C# (C sha...
0New!
9/17/2001
C# & WinForms
More...

New: C# Knowledge Base Posts

Go To: C# Knowledge Base
    KB Article KB Topic
Sign In To Check If Stuff Is New
383
Hits

Code
1. Consuming an RSS feed in ASP.NET

Using this quickie code snippet, you can attach an ASP:Gridview  to an external RSS Feed.

All you need to accomplish this is the URL of a usable feed.

5/1/2010
WebForms Coding Tasks
Sign In To Check If Stuff Is New
552
Hits

KB Post
2. Using a Legacy Windows DLL in ASP.NET

This article will show how to access a function in a legacy COM dll from a ASP.NET web page. By legacy I mean a dll that is not a .NET managed code dll (a Win32 DLL). 

11/5/2009
WebForms Coding Tasks
Sign In To Check If Stuff Is New
660
Hits

KB Post
3. Using GenericIdentity for Cross Platform Authentication in the .NET framework

When designing a WinForms application, the most straightforward way to authenticate a user is usi...

11/2/2009
WebForms Coding Tasks
Sign In To Check If Stuff Is New
416
Hits

Code
4. C# Empty String Check (String.IsNullOrEmpty)

The .Net framework offers a static method in the string class: String.IsNullOrEmpty.

9/19/2009
C#
More...

New: To/From Code

Go To: C# To/From Guides

Code Snippets

  Code Snippet Created
1. Multiple Line Comment 1/1/2009
2. Substring 1/1/2009
3. Prevent Derivation 1/1/2009
4. Abstraction 1/1/2009
5. End of Statement 1/1/2009
6. Case Sensitivity 1/1/2009
7. Literals 1/1/2009
8. Variables 1/1/2009
9. Assignment 1/1/2009
10. String Cancatenation 1/1/2009

Topics

  Topic Category Created
1. Array Data Structures 3/20/2010
2. Comments Language Basics 1/1/2009
3. Left of String Commands 1/1/2009
4. Prevent Derivation OOP Details 1/1/2009
5. Abstraction OOP Details 1/1/2009
6. End of Statement Language Basics 1/1/2009
7. Case Sensitivity Language Basics 1/1/2009
8. Literals Language Basics 1/1/2009
9. Variables Language Basics 1/1/2009
10. Assignment Operators 1/1/2009

New: eCertified Study Questions

Go To: eCertified
Question Level Type Based on KB Post KB Topic
Which of the following lines of code wil... 1 MC C# End of Statement (;) Language Basics
">In C# you can declare and use a variable... 1 TF C# Case Sensitivity (Yes) Tool Basics
You can overload static constructors. 3 TF C# Constructors (Use clas... OOP
If you do not create a developer defined... 1 TF C# Constructors (Use clas... OOP
The method name of a constructor is? 2 MC C# Constructors (Use clas... OOP
When defining your own class, the defaul... 3 MC C# Access Modifiers OOP
Given these 3 lines ... 2 MC C# Base Class (System.Obj... OOP
Which of the following correctly creates an object instance and calls the IntroduceYourself method?">Given this class: 2 MC C# Class..Object (class..... OOP
You can add abstract members ONLY to abs... 2 TF C# Abstraction (abstract,... OOP
Given the following ... 3 MC C# Finalizer (~ClassName) OOP

Weekly C# Lesson

[Print Lesson]

Week 35, Posted Monday 8/30/2010

Content changes every Monday @ 1AM!! Check back once per week. Learn! Review! Test Yourself!

FAQ of the Week
Question:

Can I use a Win32 DLL in my Visual Studio.Net application?



Answer:

Yes. The trick is to use the [DllImport] attribute, followed by declarations for each of the DLL's functions and procedures.

Tip of the Week

None This Week
Code Snippet of the Week
[DllImport] attribute

This code allows you to use Win32 DLLs in your .NET applications.

public class Form1 : System.Windows.Forms.Form
{
[DllImport("GetMyCode.dll")]
public static extern string GenerateMyCode(string pProduct,
string pVersion, string pName);

// other form properties, etc...

Note that, below the [DllImport] attribute, you must declare the functions and procedures exported by the DLL you want to use.

Definition of the Week
Attribute:  An attribute is a "shorthand" mechansim for having additional metadata included in your assembly.

Attributes cause additional metadata to be included in your assembly and, utilized when reflected over by another class. For your convenience, many, many useful attributes are pre-defined.

In C#, attributes are designated by enclusure in square brackets. For example, the [DllImport] attribute allows .NET to utilize Win32 DLLs. Another example is the [Serializable] attribute, which causes your class to be persisted to disk.

Link of the Week
The Official Microsoft ASP.Net Site

Microsoft portal site for the ASP.NET development community.

File of the Week
Free E-Book on C# .NET Essentials

Lastest C# Flashcard

Our flashcards are part of our library of tidbits.

Tidbits are FAQs, Definitions, Tips, and Code Snippets from our knowledge base.

Consuming an RSS feed in ASP.NET

Using this quickie code snippet, you can attach an ASP:Gridview  to an external RSS Feed.

All you need to accomplish this is the URL of a usable feed.

Create a ASP AJAX webform, and drop in a GRIDVIEW control, and a button.  Double click the button control and add this code.  You'll need to add these two namespaces to your using section.

using System.Xml;
using System.Data;

This snippet will fill it with DICE ASP.NET open postings.

protected void Button1_Click(object sender, EventArgs e)
{
    XmlTextReader myReader = new
XmlTextReader("http://rss.dice.com//system/net-jobs.xml");
    DataSet myDataSet = new DataSet();
    myDataSet.ReadXml(myReader);
    GridView1.DataSource=myDataSet.Tables[3];
    GridView1.DataBind();
}
Posted By Bryan Valencia, Post #102107, KB Topic: WebForms Coding Tasks
 
344 People Online Now!!  
Online Now: Sign In to see who's online now!  Not a member? Join Prestwood now. It's free!