Answer Questions
MiguelGandia Parsing a string
Hello guys, i'm searching for an advice of how to parse a string. here is an example: --bla345"cool"but no-- And I need only the text double closed by ", which is 'cool'. My second question is about parsing multyline comments /* */. So if i have --bla bla /*nice thing */ alabala-- my target is get the 'nice thing' string away of the "sentence". Hope someone will find time to help me :) ...Show All
Wakko2k Getting diffgram errors when saving datatable to an xml file with timestamp col in the table!
I used this code to save a datatable to an XML file with rowstates dt.WriteXml( @"C:\TestXMl.xml" , XmlWriteMode .DiffGram); but It generates an error if a timestamp column is in the table How can I solve that you help is appreciated... I removed the timestamp because it was marked as readonly in my dataset...Thanks ...Show All
pbiffar time
How do i get the current time in c# Cisco Hi You can call this funtion :- Rather than build your own GetTime function you can also get .NET to do the work for you. string s = DateTime .Now.ToString(); If you want more control over how the date and or time is represented in the string you can use the ToString (string) overload with a custom format pattern string s = D ...Show All
-Antilles- !!! IF MICROSOFT HEAR US!!!
I just saw another thread with "Can i make a app that doesnt use the .NET. The framework is too big 23 MB".. SO... Can Microsoft create a .Net Framework just for c# not for asp or j# or visual basic providing only the neccesary dlls Please!!!! This makes me laught! You are kidding, right All the .NET Languages just create MSIL code, so the .NET Framework is allready only for 1 language. But please tell me, what is wrong with a 3 ...Show All
jukes23 Using timers & their accuracy
Hello, I have implemented a countdown clock using the timer class is c# but am having problems with the accuracy of the countdown. I started off with the Forms.Timers and also tried the System.Timers versions. Neither kept up with the standard system clock after only a short while of running (less than 5 minutes). I am using an interval of 100ms. When the tick event occurs it triggers various updating to controls (labels) and a separate form usi ...Show All
Patrick Grimme Reading large .csv file loading is very slow.
First let me state that I am very new to C#. I learned C++ in college but that was in 99 and have been coding mainly mainframe since then. So I am kind of new to the .Net platform as well. The problem that I am having is when I am loading in a .csv file it is taking a long time before the user can do anything because the program is busy loading my data into my array. Is there a better way for me to do a read then using StreamReader. Here is a sn ...Show All
TGnat Integration of MSDN Library with Visual Studio 2005
I have installed two versions of MSDN Library, and still my VS2005 doesn't recognise any local help at all. Because of some legacy code I need to keep VS2002, VS2003 and VS2005 on my system. My VS2005 is Team Edition for Software Developers. My installed versions of MSDN Library are Octover 2005 DVD for VS2003, and 8.0.50727.137. Thank you. I had loads of trouble as well. The "regular" ...Show All
kingces C# 2.0 RTM compler incompatability with c# 1.1
I have an existing application that declares a class that derives from System.Windows.Forms.Form and an interface. This compiled and worked correctly in 1.1 but an error is reported during in C# 2.0 "IRecitalMirageForm - type is not supported by the language" public class Form1 : System.Windows.Forms. Form , IRecitalMirageForm Is there any workaround for this behavior IRecitalMirageForm is an interf ...Show All
KingMartin Profile Name
Can someone tell me how to get the current profile in XP. Well, I guess I could say, I am trying to create a directory, but the path would depend on the users profile name. Example : C:\Documents and Settings\Administrator\Desktop. How would I get the profile name of the user. I believe this is the function call that you are looking for: http://msdn2.microsoft.com/library/system.environment.getfolderpath.aspx It will allow you t ...Show All
ibrahem Garbage Collection
I am running Ants Profiler to do memory testing on our ASP.net application. The Profiler reveals that 308,313 System.String objects had been allocated and 17,900 are currently still on the heap. That means to me that .Net has released 290,413 from memory. Is there anything that I can do to reclaim the that memory or am I at the mercy of .Net's GC Any help is appreciated You might want to thi ...Show All
Katrin Crystal Report in Win form app in c#
Hi, I have tried to use the methods as posted by many experts on dynamically assigning the database and server login info into the code. However it is still prompting me to key in the login info. I had developed the database and server in an environment using different db name and server name from the client's side. The following is my code on setting the login info. CrystalReport1 rsource = new CrystalReport1(); rs ...Show All
S. Allard A couple of small newbie C# questions.
I'm making a breakout game in C# to try and help myself understand Structs. I used this code to define a "brick" object... struct obj_brick { int x, y; Boolean removed; Image sprite_index; public void draw( Graphics g) { if (removed == false ) {g.DrawImage(sprite_index, new Point (x, y));}} public void remove() {removed = true ;} } I can easily now create instances of obj_brick like so: obj_brick myBrick = new obj_brick(); //cr ...Show All
Dan Fort JIT optimization
This isn't specific to C#, but the issue probably is most relevant to C#. I'm helping someone do a scientific project using CodeDOM, and he's measuring the speedup. It's super impressive. It lead me to ask whether the JIT is detecting a lot of dead code and optimizing it out (turns out it wasn't.) But for future reference, is there a document on the kind of optimizations that JIT employs I've done some experiments, and it looks like ...Show All
lennie where i can find it to download?
i'm looking for SCCP 2006..i'm msdn subscriber..but i can't find it for download... Any help .. In fact to access Subscriber Downloads and Product Keys....need first to Associate your subscription with your Passport , but where can i find the " Benefit Access Number" where can i register to get this NUMBER one link please... ok..as ...Show All
catfishJVL how do i prevent "show desktop" or "windows key+m" from minimizing my program?
hi, i don't want my program to be on "TopMost" but i also don't want it to minimize. Never. even if i disable the minimize feature, the program can still be minimized by clicking on the "show desktop" icon or pressing Windows Key+M. I'd like to prevent that. Can someone tell me a possible way to do it btw, the "show desktop" button doesn't trigger the 'resize' or 'changesize' event in the form. Thanks, i fou ...Show All
