all groups > c# > june 2005 > threads for sunday june 19
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Counting lines in a file
Posted by jabailo NO[at]SPAM texeme.com at 6/19/2005 11:26:24 PM
Which would be faster for counting lines in a StreamReader:
(a) iterate through a file using .ReadLine() and adding to a counter, i++
(b) doing a .ReadToEnd() and then using an IndexOf() method to count the
occurances of \r\n
(c) doing a .ReadToEnd() and using a RegEx to count the number... more >>
Waiting for async webservices to finish.
Posted by jabailo NO[at]SPAM texeme.com at 6/19/2005 10:26:37 PM
I am looping through a text file, and with each row, I launch a web service,
asynchronously.
Before I move on to the next step in the process, I want to make sure that
all the web services have completed.
How can I do this?
If I were to just put a Thread.Sleep with some arbitrary numb... more >>
trap Mouse click
Posted by S³awomir Speth at 6/19/2005 8:53:45 PM
hi all
How trap mouse click outside my control - like close popup menu
... more >>
Msgbox for C#
Posted by Ant at 6/19/2005 7:02:02 PM
Hello, I'm a newbie to C#. Does it have a Msgbox function like VB6 i.e.
MsgBox "Hello World". What is the equivelant function? Does it have one?
Thanks for your time on this simple question... more >>
Updating table with no key field
Posted by Zest4Csharp at 6/19/2005 6:45:02 PM
hi,
I have a database table without a key field. I managed to view the contents
of the table through a DataSet in a DataGrid in C#. The user can edit the
data in the grid.
Can someone show me how to update the sourse database? I cannot use a
standard 'WHERE' claus simply because there is no ... more >>
MD5 expert, help!
Posted by Jesper at 6/19/2005 2:42:01 PM
Hi,
I'm using the following code snippet kindly provided by one of you guys a
couple of days ago.
using ( FileStream fs = System.IO.File.OpenRead(@"C:\x3.zip") )
{
MD5 m5 = MD5.Create();
byte[] hash = m5.ComputeHash(fs);
string base64Hash = Convert.ToBase64String(hash);
Console.WriteLin... more >>
Removing a Request variable
Posted by Gus Gustafson at 6/19/2005 2:02:02 PM
I set ndi in a repost of a page:
window.location.href=
'../Test/test.aspx' +
'?ndi=' +
theform.domain_SELECT.options.selectedIndex;
In the test.aspx.cs code-behind, I test if ndi is set as
if ( Request [ "ndi" ] != null )
How ca... more >>
How can I edit email headers?
Posted by Mark at 6/19/2005 12:30:02 PM
Hi,
I have used the following solution:
http://support.microsoft.com/default.aspx?scid=kb;en-us;819398
The application works perfect but I would like to extend its capabilities.
I need to edit the email header that is created, to allow multi format
emails.
How and where can I add t... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Global application settings for restricted users
Posted by Dennis C. Drumm at 6/19/2005 7:19:51 AM
Is there one place (local xml file, registry, etc.) that all user can read
and write to??
I have some settings that applicable to all users, but when a restricted
rights user start my application, these global settings cannot be updated,
since it seems they cannot write to an xml or ini set... more >>
Reflection and descendants of Control
Posted by tony lock at 6/19/2005 1:28:02 AM
I asked this question a while ago, but I now have more information on the
problem.
I have a set of Classes inherited from control that make up a simulation
model. The user drops them on a MDI form to create the model.
Because Control is not serializeable, I am using Reflection to pick up ... more >>
Override static derived variable
Posted by knocte at 6/19/2005 12:00:00 AM
Hello.
I have a problem with C# language. I want to define an algorithm on a
static function inside an abstract class. This function calls a static
variable inside the same class. Then I want to define some derived
classes wich inherit the function and override the variable, but it
does... more >>
attribute??
Posted by perspolis at 6/19/2005 12:00:00 AM
Hi everyone
I wanted to know which class Attribute is used to show a description for
methods of a defined class??
thx in advance
... more >>
How to transfer a string to char array
Posted by ad at 6/19/2005 12:00:00 AM
I have a string variable say:
string sMyString="aeiou"
How can I transfer sMyString into a char array?
... more >>
Service or run at startup
Posted by No one at 6/19/2005 12:00:00 AM
I have a console app that needs to run on a server when it boots up.
Doe I need to turn this into a service or is there another wya?
Thanks... more >>
show description?
Posted by perspolis at 6/19/2005 12:00:00 AM
hi all
how can I show description on my methods when using AutoComplete ??
... more >>
hotkeys
Posted by Eps at 6/19/2005 12:00:00 AM
anyone know how to set up hot keys in windows forms ? I have a toolbar
with new/open/save and I want to be able to press crtl + o to open a file.
any help appreciated.
--
Eps... more >>
How to separate a string into char array
Posted by ad at 6/19/2005 12:00:00 AM
I have a string vaiable like "1a3345";
How to separate the string into a char array or a string array just have on
character per element?
... more >>
|