all groups > c# > january 2005 > threads for monday january 3
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 31
NUnit testing of eventlog entry?
Posted by Ole Hanson at 1/3/2005 11:33:53 PM
Hi
I am trying to engineer a way of testing that my logging framework is
capable of writing to my eventlog. I want to include this test in my already
existing NUnit tests - but I'm a little low on ideas as how to assert that I
actually did write to the eventlog successfully.
Naturally I ... more >>
GetTempPath() question
Posted by Tom O'Brien at 1/3/2005 9:09:01 PM
I am sure this is a basic question. Why does the code below return the
following (i.e. without the full path descriptions)
string Temp = System.IO.Path.GetTempPath();
returns "C:\DOCUME~1\tobrien\LOCALS~1\Temp\"
instead of "C:\Documents and Settings\tobrien\Local Settings\Temp". Which
... more >>
XMLSerialization Framework version 2.0.40607
Posted by Lee Alexander at 1/3/2005 8:15:38 PM
hi,
Perhaps someone can help me. I am trying to serialize an object but the
serialization isn't working. I have created a small console app to show my
problem. Perhaps someone with more knowledge could nudge me in the correct
direction.
Regards
Lee
#region Using directives
using S... more >>
Serialization - Using inherited Classes
Posted by Glenn Wilson at 1/3/2005 8:15:02 PM
In the current project that I am planning i am thinking of serializing the
objects to save as binary files. The question I have is with inheriting
classes.
If I have 1 base class and 2 classes that inherit from it. How would I
configure them for serialization. Do I just put the Serialized ... more >>
clearing connection pool
Posted by Srinivas Kollipara at 1/3/2005 8:05:30 PM
Hi,
in my C# project it uses 24 sql connections, i am clearing all the
conncetions whenever an error occurs and when i see in the performance
monitor for that pool i can still see all those 24 connections sitting over
there. so i am wondering how to clear the connection pool in C#. can anyone
s... more >>
logon on remote computer outside domain
Posted by Gawel at 1/3/2005 7:50:30 PM
Hajo,
I am searching solution for this proble over 2 days.
I need to be able to create mailboxes on exchange server
that is in domain. I need to do it outside of domain.
What is more I can create user outside domain but I can not
create mailbox. Below code throws following exception:
The ser... more >>
select a file in Explorer
Posted by Sergey Poberezovskiy at 1/3/2005 6:31:38 PM
Hi,
As part of my Windows application, I need to open a folder
containing a file (fileName is specified in txtFile).
I have no problem opening the folder:
FileInfo info = new FileInfo(txtFile.Text);
string folderName = info.DirectoryName;
System.Diagnostics.ProcessStartInfo prStartInfo =... more >>
[Q] Receiving asynchron datas with Sockets
Posted by André_Betz at 1/3/2005 6:17:07 PM
Hi,
I've established a TCP-Socket Connection and now I want to receive
datas. So I called BeginReceive where I set the receiving buffer and
length. Now in the asynchronous CallBack-Function I call EndReceive and
get the length of rceived datas. After receiving datas I call the
Beginreceiv... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to save DataSet into Excel files
Posted by yaya via DotNetMonster.com at 1/3/2005 5:59:57 PM
Hi, I'm using OleDb to read an excel files and display the data in a datagrid (using dataset as data source), after modifying the data on datagird, how can I save the changes back into Excel files.
Thankz....
--
Message posted via http://www.dotnetmonster.com... more >>
Enum Question
Posted by CuMPeEWeEr [No MCSD] at 1/3/2005 5:11:03 PM
public enum Color {Red=1; Yellow=2; Orange=3; }
Is there a way to get the value of the Color easily? I know it can be done
using Enum.GetValues(typeof(Color)) but I have to use a for-loop to get the
value in this case. Is there a direct way to get the value? something like
Enum.GetValue(C... more >>
Creating an invisible control (like timer component ) and add it to the toolbox . How ?
Posted by Sagaert Johan at 1/3/2005 3:43:22 PM
Hi
Can someone point me to a resource or explain in brief how te create a
component that i can add to the toolbox tab, but that is not positioned on
the form . (like the Timer component )
Johan
... more >>
Windows service and VFPOLEDB
Posted by Adam Klobukowski at 1/3/2005 3:34:39 PM
Hello
I've written a small C# program that uses VFPOLEDB it is working
perfectly. Then, I redesigned it to work as service (as described in
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbwlkwalkthroughcreatingwindowsserviceapplication.asp).
Unfortunetly, now ... more >>
RegEx Replace
Posted by Brian Patterson at 1/3/2005 2:27:13 PM
I'm using code similar to the following to search a line of code. I want to
replace what was found with a modified version of the text. My regex
pattern is "ListView\w*". And the line of text that I am matching against
is: "public static void AutoSizeListView(ref ListView lv)". My RegEx fi... more >>
Compiler Error CS0163
Posted by Ramsey Schaffnit at 1/3/2005 1:39:16 PM
Documentation for error message Compiler Error CS0163 says:
Control cannot fall through from one case label ('label') to another
Ok, fine.
Documentation for switch statement says the same thing, but ALSO says:
Although fall through from one case label to another is not supported, it is... more >>
Extended File Properties
Posted by David Farruggio at 1/3/2005 12:28:46 PM
Hello,
I'd like to read the extended file properties using C#. Those are e.g.
author, subject, ... of a word file or bit rate, artist, duration of a mp3
file. I already tried to use the storage properties provided by OLE, but
those only work for Office document. The explorer displays this inform... more >>
how to turn ICollection into ArrayList?
Posted by MrNobody at 1/3/2005 11:47:02 AM
since ArrayList implements ICollection, is there a quick way to convert an
ICollection into ArrayList (besides actually iterating through each element
in the ICollection and explicitly adding them to a new ArrayList instance) ??
... more >>
Thread was being aborted
Posted by Raul M. Colon at 1/3/2005 11:19:05 AM
Hi!!!
When my webapplication hit this line:
Response.Redirect("Page.aspx?Variable=Something");
I got this exception:
Thread was being aborted.
Any ideas?
Raul... more >>
MessageBox Text not showing up?
Posted by Jason Ryon at 1/3/2005 10:45:09 AM
I'm trying to follow the walkthrough guide for "Creating a simple windows
form" to create a Hello World program (link below) using VisStu .NET. I have
tried both Visual Basic and C# to create this application.
I have done all the steps (create button, edit the click properties to use
Messa... more >>
DirectCast in .NET 2.0
Posted by Sahil Malik at 1/3/2005 10:43:06 AM
I can't find it .. what am I missing?
- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik
... more >>
Start Process in Specific Windows Account?
Posted by Christopher at 1/3/2005 10:11:03 AM
One of our ASP.NET Pages is starting a new Process using the Process object.
When the process starts, it is started under the ASPNET User. We tried
editing the web.config file and the machine.config to operate under other
user accounts but our dynamically started process still starts under A... more >>
SQL Server Float and Real datatypes
Posted by Mark at 1/3/2005 8:43:19 AM
What are the best .NET datatypes to handle SQL Server's Float and Real
datatypes? I'd like to avoid using the SQL Server specific datatypes like
SqlInt32 or similar.
Thanks in advance.
-Mark
... more >>
Visual inheritance not working
Posted by JD at 1/3/2005 8:19:03 AM
Hi
I had 2 forms inheriting from a base one. It all worked nicely to start off
with. Don't know what I did next (did some code in the base form), because
now the VS IDE doesn't want to open either of the child forms.
It complains about "ConnectionString property has not been initialized".... more >>
DataGrid source
Posted by MrNobody at 1/3/2005 6:37:04 AM
Is the DataGrid source code publically available? If so, how can I access it?... more >>
What is the library in .net that deal with the modem
Posted by Amr at 1/3/2005 5:15:01 AM
Hi
i need a library to deal with the modem, cause i have to make an application
that connect to the modem and deal a number, and wirte the events (busy,
answered, not answered)
... more >>
HttpWebResponse and Cookies
Posted by Tom Jones at 1/3/2005 4:38:48 AM
Hi,
I place an http request to a web server using HttpWebRequest. When the
response comes back (via a HttpWebResponse) the Cookies collection in the
response is empty, though if I scan through the response's Headers
collection I see that there *are* a number of "Set-Cookie" headers present... more >>
Strange encoding behaviour
Posted by etantonio NO[at]SPAM libero.it at 1/3/2005 4:13:27 AM
Hi Jon,
I have to say thanks, you solved my problem, the only question is
where did you see
that it was ISO-8859-1, I can't discover this while I'm interested
because I need to translate also to chinese
and this is not well done with ISO-8859-1.
Can you help me again ??
Many thans,
Eng... more >>
Continously Running Thread
Posted by Raed Sawalha at 1/3/2005 3:55:02 AM
Dear:
I used to code a continously running thread in C++ like following:
Handle hStopEvent = CreateEvent(NULL,true,false,NULL);
UINT uOptional = 0;
_beginthreadex(NULL,0,wtInvestigate,(LPVOID)NULL,0,&uOptional);
unsigned _stdcall
wtInvestigate(LPVOID lpParams)
{
while(true)
... more >>
datetime convertion error
Posted by jima80 NO[at]SPAM gmail.com at 1/3/2005 3:18:53 AM
Good afternoon!
I have an error while trying to convert to DateTime ,here is the code
and the error:
ArrayList al = new ArrayList();
temp_str=Line.Split(' ');
al.Add(temp_str[0]); // value="11/02/2004"
al.Add(temp_str[1]); // value="10:53:10"
temp_str2=(string[])al.ToArray(typeo... more >>
Variables in a multi thread environment.
Posted by Jesper at 1/3/2005 1:49:04 AM
Hi, Happy New Year!
Im writing a primary singlethreaded program. However I would like to insert
a timer to do a check by reading some values in a file if accessable. The
timer thread should set a boolean to either true or false depending on wether
or not the user has responded to a messageb... more >>
XML, C# and MySQL
Posted by Irfan Akram at 1/3/2005 1:41:02 AM
Hello Friends,
I hope you can help me with this one. I am doing a web-based project in
asp.net, using c# as the scripting language and MySQL as the back-end
database. I want to construct an XML String from my web-form values and then
from the XML string, I want the values to go in to the My... more >>
Webserices question
Posted by Picho at 1/3/2005 12:21:10 AM
Hi all - posted this on the webservices newsgroups but its a bit slow there
so my appologiez in advance.
I have a webservice and a windows app.
both of them reference the same class library called WebServiceTest.Core
that defines a class called Class1.
the webservice exposes a method that... more >>
|