IT SOLUTIONS
Your TECHNOLOGY partner! 
-Collapse +Expand
C#
Search C# Group:

Advanced
-Collapse +Expand C# Group Home
-Collapse +Expand Message Board
-Collapse +Expand C# KB
-Collapse +Expand C# To/From
To/FromCODEGuides
-Collapse +Expand C# Study Test
PRESTWOODCERTIFIED
-Collapse +Expand C# Store
PRESTWOODSTORE
-Collapse +Expand Members Only
   ► MB LobbyAll Groups   All Groups  

C# Coding Message Board

C# (Visual C# & VS.Net) Q&A

C# Coding Message Board (Q&A). Free help! Answer questions. Part of our C# Group. C# language group as implemented in Microsoft Visual C#. All .Net topics covered including WinForm and WebForm development.

To start a new thread, choose a topic, then click [New Thread].

C# Specific Topics

TopicThreadsPostsLast Active Thread 
C# & WebForms (ASP.Net)10
S 0 n Y
Please Read - .aspx website with .asp code in it.
My entire website is written in .aspx, i have a voting poll that a friend made for me that was written in .asp, I have been trying to research on the internet on how exactly to get my .asp voting poll on my .aspx site. Do any of you .aspx gurus out there know a site with informat...
6 years ago
Nothing New Since Your Last Visit
C# & WinForms1124
cheddar
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 of the class really is WebMethodAttribute? This seems a little useless.
9 years ago
Nothing New Since Your Last Visit
VS.Net General & Other1620
JayPen
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 will display the information about the state in the display box. I have all the information about the states in a bin file and I am trying t...
9 years ago
Nothing New Since Your Last Visit

Newest Posts...

New Posts: C# Board

More...

Thread 10 of 10
Thread Starter  

le-cardinal
Byte stored in reverse order
Hi all,, , I would to read a byte (unsigned char) and to store it in reverse order (b8...b1 becomes b1...b8)., What is the best solution in Code and Time performance to writ this in C?, , Thanks for yours reply,, Daniel
Posted to MB Topic: C# & WinForms
12 years ago
1 Reply:

Bryan.V
in general, this function will reverse a single byte.        public static byte reverse(byte b)        {            byte answer = 0;            for (int i = 0; i < 8; i++)            {    &nbs...
40 months ago
Nothing New Since Your Last Visit
2086
Hits

Thread 9 of 10
Thread Starter  

cheddar
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 of the class really is WebMethodAttribute? This seems a little useless.
Posted to MB Topic: C# & WinForms
9 years ago
1 Reply:

adamlum
Dropping the 'Attribute' part of the is just a convention that is commonly practiced.  You can use the full class name WebMethodAttribute as well without any trouble. If the class name minus the 'Attribute' substring is some sort of keyword or reserved word or something like that, you'll of course have to use the full name in that case. 
6 years ago
Nothing New Since Your Last Visit
2847
Hits

Thread 8 of 10
Thread Starter  

JayPen
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 display the information about the state in the display box. I have all the information about the states in a bin file and I am trying to first declare a form-level record structure, but when I follow the code that is in my book it doesn't work. I am also trying to code the display button so that it will display the correct information in the display text but in a certain format. If anyone has an examples, suggestions, or anywhere I can go that can be more of help then my text book I would really appreciate it. Thank You
Posted to MB Topic: VS.Net General & Other
9 years ago
1 Reply:

mprestwood
If you're still having this issue, can you post the code sample?
6 years ago
Nothing New Since Your Last Visit
1890
Hits

Thread 7 of 10
Thread Starter  

cheddar
MVC in C#
Anybody using patterns in C#, particularly the MVC pattern?
Posted to MB Topic: C# & WinForms
9 years ago
2 replies. Last post:

cocoh
Hello everyone! , , I'm a java developer and I've been given a client project (in a client-server system). I've also been given a choice between Java and C# as the development language for said project. I like java very much, but I was curious about C#, so I decided to try it ( a few days ago )., , The project goes like this:, The client application communicates with the server using a socket (the server is written in another language, btw), and ...
6 years ago
Nothing New Since Your Last Visit
8408
Hits

Thread 6 of 10
Thread Starter  

JayPen
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 will display the information about the state in the display box. I have all the information about the states in a bin file and I am trying to first declare a form-level record structure, but when I follow the code that is in my book it doesn't work. I am also trying to code the display button so that it will display the correct information in the display text but in a certain format. If anyone has an examples, suggestions, or anywhere I can go that can be more of help then my text book I would really appreciate it. Thank You
Posted to MB Topic: VS.Net General & Other
9 years ago
1 Reply:

Rick Carter
Please don't make multiple posts with the same content., , What programming language are you using?, , You're more likely to get help if you post a few lines of the code you are using, and say what error messages you're getting.
8 years ago
Nothing New Since Your Last Visit
2141
Hits

Thread 5 of 10
Thread Starter  

cheddar
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't appear to directly translate., , TIA
Posted to MB Topic: C# & WinForms
9 years ago
2 replies. Last post:

cheddar
Thx for the answer sandman. What I was trying to figure out was abstract methods in non-abstract classes. I am backing up and going through a c# patterns book. I hope the controller pattern holds the solution., , BTW, where in No Cal are you?
9 years ago
Nothing New Since Your Last Visit
2327
Hits

Thread 4 of 10
Thread Starter  

adlerhealthcom@webtv
Code decides on what class/component to use
I am developing an application in C#. A feature I want to insert is to have the code choose what objects to use., , The following scenario should make the question more clearer:, Lets say I was developing a kiosk application for software retailers that would allow instore shoppers to browse and find products faster. We will assume this application will be a boxed package. Since its a prepackaged program, it has to be set up with no customization to the program itself. There will be only one release. (I understand that with the new model of distributed programming, this wouldn't be appropriate, but just to get the point across, lets take everything as face value)., , The point is, the software can't be customized by me every time a new client makes a purchase., , The retail industry is diverse in data storage models. This posses some problems. One firm might be using a SQL Server connected to the retail chain headquarters. Another firm might be using a proprietary program that just trac...
Posted to MB Topic: C# & WinForms
11 years ago
1 Reply:

cheddar
so let me see if I understand. You front end application wont change from client to client but you intend for it to persist or read from their existing datastore? If this is the case you will need to write a mapping program for the client to use. Ideally this app would take the connection information from them. You would have them specify the db name, the db type and user information. The app would them retrieve the schema from the db. Then the u...
11 years ago
Nothing New Since Your Last Visit
1464
Hits

Thread 3 of 10
Thread Starter  

Donald Collins
Hungarian notation
I'm reading "Programming in C#" (O'Reilly) and the book states that Microsoft doesn't recommend using Hungarian notation for C#. Confused Can anyone explain why? Does Prestwood Software have a coding convention for C#? I'd be interested in seeing it. , , Donald Collins
Posted to MB Topic: C# & WinForms
11 years ago
2 replies. Last post:

Scott
Hungarian notation in code has always presented a readability issue. Yes, Microsoft was very gung-ho about Hungarian notation back in the era preceeding object oriented programming, but the change of heart really has to do more with standard practices of object oriented programming, rather than readability., , , In C#, as with all current OO languages, the use of global variables is almost non-existent. Instead, you're dealing with objects that...
11 years ago
Nothing New Since Your Last Visit
1563
Hits

Thread 2 of 10
Thread Starter  

Donald Collins
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]
Posted to MB Topic: VS.Net General & Other
11 years ago
Nothing New Since Your Last Visit
1530
Hits

Thread 1 of 10
Thread Starter  

Mike Prestwood
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 .NET compatible. This is the really cool part of .NET that will "require" Visual Studio .NET. The other really neat features of .NET are open standard features and are implemented just as well or perhaps even better on other tools (like Borland Delphi)., , For Delphi to fully support .NET Borland will need to implement CLR compatible compiler. Once done, then you could write CLR applications with CLR-capable Delphi. This would include all target platforms including Windows CE / PocketPC applications., , [URL=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguidnf/html/cpconcross-languageinteroperability.asp]Click here[/URL] to read an article on this subject from the Microsoft web site.
Posted to MB Topic: VS.Net General & Other
12 years ago
Nothing New Since Your Last Visit
1317
Hits
More...

Unanswered: C# Message Board

Answer an unanswered thread. Even old threads. Our goal is to have a complete and thorough resource.


Thread 4 of 4

Donald Collins
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]
Posted to MB Topic: VS.Net General & Other
11 years ago
Nothing New Since Your Last Visit
1530
Hits

Thread 3 of 4

Mike Prestwood
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 .NET compatible. This is the really cool part of .NET that will "require" Visual Studio .NET. The other really neat features of .NET are open standard features and are implemented just as well or perhaps even better on other tools (like Borland Delphi)., , For Delphi to fully support .NET Borland will need to implement CLR compatible compiler. Once done, then you could write CLR applications with CLR-capable Delphi. This would include all target platforms including Windows CE / PocketPC applications., , [URL=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguidnf/html/cpconcross-languageinteroperability.asp]Click here[/URL] to read an article on this subject from the Microsoft web site.
Posted to MB Topic: VS.Net General & Other
12 years ago
Nothing New Since Your Last Visit
1317
Hits

Thread 2 of 4

Mike Prestwood
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 brainer. Go to it., , Four of us from Prestwood will be at the Nov 6th SF event so let us know if you'll be there too., , [URL=http://msdn.microsoft.com/events/devdays/?Submit=Return+to+DevDays+2001+Homepage]Click Here[/URL] for more info.
Posted to MB Topic: VS.Net General & Other
12 years ago
Nothing New Since Your Last Visit
1548
Hits

Thread 1 of 4

Mike Prestwood
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 sharp) as "the first true component-oriented language in the C/C++ family." The programming model of components with associated data (properties) and behaviors (events) is supported more naturally by C#, than by Java, he said. "[Java] emulates properties with naming conventions for access methods and emulates event handlers with adapters and plumbing," said Hejlsberg. Both Java and C++ enable a component-oriented style of programming, he agreed, but he drew the distinction that in those languages, "components are not first-class"ùmeaning that in C#, simple operations such as changing the label on a graphical button control are handled with simpler syntax and fewer lines of code because the button is a component that takes responsibility for its own look and feel. Component orientation, said...
Posted to MB Topic: C# & WinForms
12 years ago
Nothing New Since Your Last Visit
1741
Hits
More...

Icon Legend:
Since your last logged visit:
- New to you or updated since your last visit (sign in now to activate).
- NOT new to you since your last visit (sign in now to activate).



-
  Load Time=less than 1 second.
 
Print This
-
 
Have a question? Need our services? Contact us now.
--Mike Prestwood

Call: 916-726-5675

email: info@prestwood.com


-
 
Connect With Us...
PrestwoodBoards
Join Us!
Facebook
Like our page!
Twitter
Follow us!
LinkedIn
Join Group
YouTube
View channel.
Go ahead!   Use Us! Call: 916-726-5675 


©1995-2013 Prestwood IT Solutions.   [Security & Privacy]   Made in the U.S.A..   No H1-B.   No offshoring.