Answer Questions
Joe K How to display totals
I have a SQL table containing following column: date_shipped, product, quantity In a C# asp.net application, I want to display the data as below: 11/1/2005 prod A 5000 prob A 3000 prod B 2000 ---------------- Total 10000 11/2/2005 prod A 2000 prob A 3000 prod B 2000 --------- ...Show All
max909 How to make a form non-resizeable
Hi , I would like to fix the form size and make it non-resizeable. May I know which form properties should I be using Thanks Or u can set the Form's MaximizeBox property to false. so that there won't be maximize option for the form. alwz_nikhil wrote: Or u can set the Form's MaximizeBox property to false. so that there won't be maximize option for the ...Show All
Ritesh Parikh Writing directly to the console buffer
First, my situation: I'm trying to make a simple 2d game using the Console and special characters. I need to update the map quickly, is there any way to directly access the characters and change them without having to do Console.Write I need to do it very quickly so it doesn't flicker :) Try playing around console API functions, as it will give you more control over console printing. Use GetStdHandle with -11 ...Show All
David Roberto Johnson Problem loading web forms
I am new in C# and I am building a simple web form with just a label, but when I try to run it, comes a messages saying that the page cannot be loaded. What coud it be Is it user permissions or somethig Thanks and then you press strg+f5 in visual studio 2005 Thats strange actually the page should be shown in the internet explorer. please use the asp.net forums for web related queries Cathal ...Show All
Sagacity handling exceptions .
you know when you do a try catch .. and you catch an exception... what do the developpers do with the exception basically what is the use of try/catch i know its for catching an exception .. but what do developpers do with it usually Thanks, But do you like pop a messagebox to the user with the exception message I mean do you let the user know that there was an error ...Show All
James_lh Cannot focus my own window
Hi, I have written a C# dialogue application that runs other programmes (via a COM interface) that bring themselves to the front. After they've finished and hidden again, my own window should be focused again, but it isn't. Even when I call Focus() or BringToFront() on the form, nothing happens. Any other window that's been there, too, will be focused in the end. Doesn't Focus() work for windows How can I focus my window then Running Wi ...Show All
Nassir READ PERMISSION
is there a way to read a file being used by another process i am implementing a file scanner and i keep getting an exception: The process cannot access the file "E:\aaa\process.exe" because it is being used by another process. is there a library of some sort like http://www.gotdotnet.com/Community/UserSamples/Download.aspx SampleGuid=E6098575-DDA0-48B8-9ABF-E0705AF065D9 which grants access to the file i am using C# .net 2003. please help. ...Show All
Andrey Shur XML Parsing Question
Hi Everyone, I have an XML question si anyone is up for it. I have small groups of xml documents (typically representing 2 or three pages of data - 1 xml doc = 1 page), the application that I'm writing needs to concatinate these into one xml document. so I have the following code: string xmlFilename = "c:\\temp\\pauls.xml"; XmlTextWriter writer = new XmlTextWriter(xmlFilename, System.Text.Encoding.UTF8); writer.Formatting = Sys ...Show All
sambhav The SqlParameter is already contained by another...
Hi All, I have the following code: List<SqlParameter> lstParams = new List<SqlParameter >(); SqlParameter pGuidAccount = new SqlParameter("@guid_account", guid_account); lstParams.Add(pGuidAccount); ChkValue = AppUtility.DBCore.SqlExecuteScalar("isp_has_transaction", stParams); ChkValue = AppUtility.DBCore.SqlExecuteScalar("isp_has_totalled_to_account", lstParam2); As you can se ...Show All
zogman Implementing System.Collections.Generic.IEnumerator<T> GetEnumerator()
I'm a bit new to enumerations at the generic level, so bear with me. I have a foreach loop that I'm trying to navigate through, but my enumerator isn't working properly. I'll have to post the code to give all of you a better idea of what I am trying to accomplish. This is in my application: RobotParts rods = new RobotParts<Rod>(joint); //joint is an object being passed in foreach (Rod rb in rods) { // Do Stuff } ...Show All
wilsonjan Sockets
How can I handle over 1000 live sockets each client socket is almost always reading / writing few bytes is it really practical to create a thread for each socket what is the best wat do handle this kind of a problem thanks, Shimi. Async sockets aren't like Threads. Whenever data arrives or there's a need to process, a thread from th ...Show All
Ralf Gruenewald How to create a new instance of the template type?
Hi everyone :) Lets see what my problem is. public class MyClass<T> { public MyClass() { T entity = new T(); //This is wrong. } } My question is, how can I create an instance of type T in such case, thanks You can specify the empty ctor by doing this: public class MyClass<T> where T: new () { public MyClass() { T entity = new T(); } } Great! Thanks a lot. :) ...Show All
G.G. Messagebox.show
I am new at this so be easy. I have a messagebox.show that I want to display the result of a SQL select statement in. How do I do this please. I am using C# 2005. After reading your post to my question it did make me think about what I was trying to do. So, I decided that rather than do a MessageBox I would do it in a form. That worked out perfect. Thanks for at least making thin outside the box. It was a r ...Show All
goodtimes AutoIndenting on Visual C# Express
Hi I'm relatively new to visual C#. I'm learning both visual C# and C# in general. However, I'm having trouble with the auto indent. In some ways it's great and in others it's driving me crazy. Here's how I like to indent: class MyClass{ //it puts this bracket down one line when I close it =( public static void Main(){ //this one it leaves alone =) ...Show All
Robin Xu Help ( i mean it) lol
I want to make a Clock in Viuall C# and my Clock(digital) work fine and tell the right time but the problem is my dad want me to make a sperate tab where i would put a text box in witch i can change the time but the only probelm is i don't kniow how can somone pleez help me ! anyone pleez! Well To make the Clock i put in a label and a timer control and then i put this code for the timer: DateTi ...Show All
