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].
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...
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.
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...
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
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.
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.
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
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 ...
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
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.
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
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?
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...
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...
I'm reading "Programming in C#" (O'Reilly) and the book states that Microsoft doesn't recommend using Hungarian notation for C#. Can anyone explain why? Does Prestwood Software have a coding convention for C#? I'd be interested in seeing it. , , Donald Collins
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...
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.
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.
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.
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...