all groups > c# > december 2005
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
Happy New Year
Posted by Pohihihi at 12/31/2005 10:50:59 PM
I wish you all a very Happy New Year.... more >>
Precedence of ?? (null coalescing) operator
Posted by Jon Shemitz at 12/31/2005 8:11:00 PM
The new ?? operator doesn't seem to be in the precedence table in
VS.05
<ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_csref/html/214e7b83-1a41-4f7c-9867-64e9c0bab39f.htm>,
and I can't seem to find anything about it online.
What's the precedence of the ?? operator?
[It doesn't... more >>
C# acceisble database api (for download w/ an application)
Posted by netsql at 12/31/2005 8:01:28 PM
I would like to write an application w/ a db, for something like
outloook or thuderbird. what are some good db "dll's" that I could look at?
Something like hsql, or mdb or dbf? Small, light, all inclusive. (no ms
sql server that is huge, something like a few huyndred K and has all).
tia,
... more >>
An Assembly can include several .exe files?
Posted by Nice at 12/31/2005 7:45:02 PM
What are the difference between "modules" and "components"?
Posted by Nice at 12/31/2005 7:43:02 PM
Are they the same thing?... more >>
Hashtable Serialization problem in Webservice
Posted by Sajid at 12/31/2005 5:23:59 PM
Hi,
I 've a problem while creating a web method which returns a class object.
The actual implementaion of the class using a hashtable which is not
serialized by the webservice..
any pointers would be helpful in resolving my problem ...
thanx & regards
sajid
... more >>
ComboBox TextChanged event has no effect...?
Posted by Michael A. Covington at 12/31/2005 5:23:48 PM
I want to validate the contents of a ComboBox, and if the user has chosen
one particular item ("Other"), change the text from "Other" to "Type
here...".
This doesn't seem to work. The even is firing but resetting the text has no
effect. What's going on?
... more >>
Custom Cursor in Resource will not Load
Posted by Paul Cheetham at 12/31/2005 4:24:35 PM
Hi,
I have some custom colour cursors which I have added to my c# project,
and set them to be compiled as "Embedded Resource"
It seems impossible to load a colour cursor using the standard Cursor
class, so I have had to resort to loading it using the Win32 API, and
creating the cursor with... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
DataSet in new table of a Access database
Posted by Marcel Hug at 12/31/2005 2:00:29 PM
Hi all !
I have datas in a dataset. I would like to save them in a new table
(just created). Do I have to run trought all recordsets with an Insert
into statement ? (it takes very long)
Thanks... more >>
BLOB (sqlserver) and timeouts
Posted by Claus Konrad at 12/31/2005 12:34:36 PM
Hi
What's the better way for retrieving a very large BLOB field from a SQL 2000
(image-field)?
I'm currently usign a SqlDataReader, but it times out before all data is
retrieved from the table field
Is there any good approach for obtaining parts of the field (like
Reader.GetBytes(...)).... more >>
OleDBDataAdapter => Insert and Update of data values in a Database
Posted by Marcel Hug at 12/31/2005 11:07:15 AM
Hi all !
I have a table in my database, which has 3 attributes. IDFailureControl,
ControlDate and ControlVersion.
In the following function I test, if the date of today allready exists.
Then I would like to write the new ControlDate or Version into the
database. First i update the dataset,... more >>
Add Config File to the Setup Project
Posted by Guy Noir at 12/31/2005 9:25:17 AM
Hi,
I have built a windows service in VS2005, C#.
I am curious about the proper way to add the WindowsService2.exe.config
to the setup project?
Right now I am adding a custom action to the Application folder for the
"Primary output from WindowsService2 (Active)"
However my WindowsServi... more >>
C# Unsafe Bug
Posted by JS at 12/31/2005 2:30:04 AM
I was writing some routines which could do bitwise boolean operations
on byte arrays, and I ran into what I think is a bug with C#'s unsafe
code. I am pasting a console application below. Can anyone give an
explanation, or has this type of problem been reported already?
Thanks.
using System... more >>
Exporting date from DataTable to Excel-file
Posted by Dries at 12/31/2005 12:34:10 AM
Hello everyone,
I would like to export data from a DataTable to an Excel-file. I have
tried this using Interop (with the Microsoft.Interop.Office.Excel.dll)
but that seems to be a hard job.
Does any of you know another way to do this?
If not, I will have to get trough the Interop...
... more >>
WSE filters
Posted by Mike Schilling at 12/30/2005 10:02:33 PM
Today was my first experience using WSE filters in SOAP clients. One of
the simpler things I wanted to create was an OutputFilter/InputFilter pair
that calculates response time by having the OutputFilter store the start
time in the SoapContext for the InputFilter to subtract from the end ti... more >>
HELP -- ASCIIEncoding Problem
Posted by Dino Buljubasic at 12/30/2005 6:21:00 PM
Hi,
I am using a function to hash a string value:
public string generateMD5Hash(string input)
{
MD5 md5Provider; // MD5 provider instance
// generate byte code for input
byte[] inputData = ASCIIEncoding.ASCII.GetBytes(input);
// compute MD5 hash
md5Provider = new MD5CryptoServic... more >>
Converting dataset to dataview and sorting?
Posted by Brett Romero at 12/30/2005 4:45:28 PM
I have a dataset with one table, which has four columns. All are of
type INT. I need to convert this dataset into a dataview so I can sort
on the last three columns. I may sort one of the three or all three at
once. This dataview will display its results in a winform datagrid.
Right now, I... more >>
Is User Interface Process App Block still current under .Net 2.0
Posted by David Veeneman at 12/30/2005 4:15:58 PM
I have done a little reading on Microsoft's User Interface Process
Application Block, and I am thinking about investing a couple of days
learning it. Is the AB still current under .Net 2.0, or is it now obsolete?
Is it worth the effort to learn? Thanks in advance for your help.
David Veenem... more >>
Parse MultiCurrency Strings to Decimals...
Posted by Navid Azimi at 12/30/2005 3:36:16 PM
What's the best way to parse a currency string to a decimal given the
possibility of multiple currencies? That is, my numeric string can be
($12.00) or -=A312.00; in either case I want -12.00 to be returned. I
understand that this may be slightly difficult given non-symbol
currency strings (F or... more >>
I LOVE THIS JOB !!!
Posted by I LOVE THIS JOB !!! at 12/30/2005 1:33:45 PM
I LOVE THIS JOB !!!
For everyone, who needs money.
Are you on the search for a lucrative source of income? Would you like to
work of at home out of, without
yourself you someone makes directions? Would you yourself like to
determine, when, how much and like often you
salary? Work for yo... more >>
Running an executable or class automatically after build?
Posted by richard.sutcliffe NO[at]SPAM gmail.com at 12/30/2005 1:14:29 PM
I've written a class to automatically produce a Google sitemap file for
my ASP.NET projects.
What I'd like to do is automatically run this when I build my project
so that a new sitemap is produced whenever I make changes. I can make
this into a console app, if it makes the job easier.
Can ... more >>
split with no char
Posted by Maarten at 12/30/2005 1:11:43 PM
Hi all
i'm trying to split a string without a separator
example:
0011010 =
s(1) = 0
s(2) = 0
s(3) = 1
s(4) = 1
s(5) = 0
s(6) = 1
s(7) = 0
s there a way to fix this
regards maarten.
... more >>
Q: Document Function
Posted by Visual Systems AB (Martin Arvidsson) at 12/30/2005 1:00:27 PM
Hi!
This is probably not the right NG but i will give it a go.
When i create a document.xml file of my code, it's totaly unreadable for the
eye.
When i created a document in Studio 2003 it created a HTM, and a XLT file (I
think it was XLT, some sort of layout)
Why isn't this create... more >>
ACT & HTTP 403
Posted by news.usenet.fr at 12/30/2005 12:29:51 PM
Hello,
I created a new script in ACT and I started the test for 1 connection and 1
iteration.
The result was Ok (HTTP 200 and 302)
When I increment the number of iterations the result is still Ok.
The problem arrives when I increment the number of simultanous connexions
(~10) :
I have s... more >>
useUnsafeHeaderParsing(WebRequest) in Win app.config
Posted by MikeZ at 12/30/2005 11:51:02 AM
I use WebRequest.Create/WebRequest.GetResponse to handle HTTP request in a
VS2003 project. I got HTTP violation exception on some of the machine. So I
did the research, and found to put <useUnsafeHeaderParsing ="true"> in
app.config can fix the problem.
But the app.config cause problem on o... more >>
How to do "Compile time" initialization of record array?
Posted by John Kelsey at 12/30/2005 11:36:48 AM
Back in the "old" days with C, I used to do something like...
struct
{
char Description[20];
float price;
} Items[] =
{
{"Apple", 1.99},
{"Banana", 2.04}
};
If I wanted to do something similiar (and I do), does anyone have hints for
an obviously new C# programmer?
Any ... more >>
Refersh parent form and pass new values
Posted by Vivek at 12/30/2005 11:27:40 AM
Hi,
I wish to refresh the parent form and pass the new values from child form.
How can I do it?
Thanks
... more >>
C# user.config confusion
Posted by Bit Twiddler at 12/30/2005 11:04:29 AM
Hi,
I have a windows form app which would benefit from the new application
settings support in VS2005.
Say that my form has a single textbox on it. When the form closes I would
like to save the text in that textbox as part as the user level application
settings. When the application re... more >>
Simple focus Q
Posted by Steve B. at 12/30/2005 11:02:02 AM
Form1() has a selection menu for the user. Form1() calls Form2() with menu
selections. Form2 opens a Crystal Report viewer. How do I this.Close()
the Form1 properly so the user doesn't have access to the previous selection
menu when the CR viewer opens. Currently, the menu stays open be... more >>
Renaming files in a directory
Posted by null NO[at]SPAM null.com at 12/30/2005 10:23:14 AM
I am a novice in C# and need help. I want to write a simple program to read
a bunch of files from a specified directory and rename those files in a
sequential fashion., changing a bunch of image file names.
For example, changing:
a011.jpg
a 011.1.jpg
i234.jpg
to
img001.jpg
img002.j... more >>
.NET Lookup Algorithm: Which is fastest?
Posted by The One We Call 'Dave' at 12/30/2005 10:21:00 AM
I have a list of DateTime objects stored in a collection:
SortedList<DateTime,Object> MyDates=new SortedList<DateTime,Object>();
The dates, which can be accessed via MyDates.Keys, are stored in ascending
order. What is the fastest way to find the MAXIMUM date within 'MyDates'
which is LESS... more >>
How to get the number of nonempty rows in excel application?
Posted by Gary at 12/30/2005 10:14:02 AM
Hi, there,
I have an xls file, and need to get the number of nonempty rows from one
worksheet. How to know what is the last line of this worksheet?
I am using Microsoft Excel 9.0 library, Excel 2000, and C#.
Thanks,
Gary... more >>
Is there LabelArray (VB6) in C#?
Posted by Scott Starker at 12/30/2005 8:37:37 AM
Greetings all.
I have a program that I've written in VB6 and now want to re-code in C#. But
I have a problem in that there is no LabelArray in C# like there is in VB6.
Is there any easy way to do this VB6 LabelArray in C#?
Scott
... more >>
Drawing on CodeWindow - AddIn
Posted by Mythran at 12/30/2005 8:37:18 AM
I created an addin and wrote a class that inherits from
System.Windows.Forms.NativeWindow. In the Connect method, I created an
event handler to listen for DTE.Events.DocumentEvents.DocumentOpened. In
the handler for DocumentOpened, I call EnumChildWindows. In the callback
for EnumChildWin... more >>
Name of control
Posted by Curious at 12/30/2005 7:56:06 AM
Hi,
What the name of the control that is used in Visual Studio for the
Properties Window, Solution Explorer, etc
Thanks in Advance
... more >>
[DLLImport] Attribute where is default dll location
Posted by Lenn at 12/30/2005 7:01:02 AM
Hi,
I have a DLL with unmanaged function written in C. I need to call from
managed C# code, where should DLL have to placed, bin folder system32? And
can this location be changed. I haven't found anything useful in this regard
on MSDN documentation.
Thank you
... more >>
DirectorySecurity IdentityNotMappedException
Posted by Nick at 12/30/2005 5:02:05 AM
Hello,
I'm trying to add a DirectorySecurity ACL entry to an existing
directory (based on some code I found in the msdn).
However, this code only works on local machines because I can't specify
a server to resolve the identity, so when I try on a remote machine it
just can't find the user.
... more >>
Sqldataadapter not accepting colums containing reserved word
Posted by archana at 12/30/2005 4:58:44 AM
Hi all
I ma having problem in sqldataadapter.
In my sql database i have one table containing column name as 'Name and
address'. Here 'and' is reserved word which i am using in column name.
In sql server at a time of inserting data into the table it is working
properly.
But when i try to ... more >>
AppFriendlyName not applying
Posted by Nick at 12/30/2005 4:19:00 AM
Hi Guys,
I'm trying to set the property of AppFriendlyName to a
IIsWebServerSetting class in an IIsWebServer. However, when I take a
look in IIS manager, under the AppPool tree it just says "ROOT" instead
of the name I have specified.
*****************************************
string theDom... more >>
Strange Situation
Posted by Amit at 12/30/2005 3:06:25 AM
Hi
I have occured a very strange situation.
The scenario is as follows. I have two buttons in the form. First
button is Load button and the second one is Delete button. As the name
suggests when 'Load' button is clicked, some data is loaded on the
screen. When the Delete button is hit, this... more >>
EnumFontFamilyEx() in c#
Posted by a_man at 12/30/2005 3:05:11 AM
Hello everyone,
Im writing an application which is printing pricelabels.
Im using a label printer which has certain device specific fonts, which
are not available through
installedfontfamily.
I=B4ve learnt that i must write my own enumfontfamilyex function in c# .
Im not quite sure how to do... more >>
AppDomain.GetCurrentThreadId() and ManagedThreadId are different
Posted by peter.moss NO[at]SPAM gmail.com at 12/30/2005 2:08:31 AM
I have an application that use log4net for operational logging. I
store some user data elsewhere and need to tie the two together. To
achieve this I pass the ThreadId across on the user table so I can see
what thread the user was running under and then look in the log4net
table to see what the... more >>
Reasoning for creating an appdomain
Posted by Kalpesh at 12/30/2005 12:59:18 AM
Hello All,
What is the scenario in which creating & unloading appdomain (other
than the default appdomain) is required ?
Kalpesh
... more >>
Refresh event of Internet Explorer
Posted by Sunil Shindekar at 12/29/2005 11:10:19 PM
Hi,
I am writing the program which will capture the incoming HTML in web
browser and do some modifications in it and then display in IE. It works
fine when user gives new URL. But if user clicks "Refresh" button, I am
not getting any event. So my program doesn't work properly for Refresh.
Can... more >>
Web sites for C#/.NET
Posted by James D. Williams at 12/29/2005 9:21:20 PM
Has anyone of you a list of Web sites that covers articles and techniques
about C# and .NET?
Br
... more >>
XML Mappers
Posted by James D. Williams at 12/29/2005 8:43:19 PM
Are there any Open Source tools available for XML to XML mapping using
XSL?
I should convert one type of XML message to another type. One solution
could be XML Mapping tool.
Cheers,
... more >>
How to unload an assembly
Posted by Fabio Cannizzo at 12/29/2005 7:16:55 PM
MyEXE loads myDLL at runtime using Assembly.LoadFile("myDLL.dll").
Then I create an instance of a class contained in MyDLL using Reflection.
When I terminate the debug session of my EXE file, the DLL remains locked
and cannot be overwritten. I can only exit VS and reload.
Is there any com... more >>
how to debug windows service
Posted by TulasiKumar at 12/29/2005 6:41:47 PM
hi all,
how to debug windows service in c#.net
thanks in advance
Regards,
Tulasi
... more >>
System.CodeDom DLL
Posted by Raja at 12/29/2005 6:29:00 PM
Have both .Net framework 1.1 and Framework 2.0 installed in my machine But,
am unable to find out system.codedom.dll in my machine, one which, my
application needs. Am not finding this dll in entire machine.
Can anybody help me in getting this dll?
Advance Thanks,
Raja
... more >>
Throwing exceptions created with reflection
Posted by kaloianm NO[at]SPAM gmail.com at 12/29/2005 6:01:29 PM
Hi,
Does someone know whether it is a bad practice to create exception
objects through reflection and throw them? I want to use this in order
to dynamically convert from an integer errorCode to an exception (via a
map errorCode -> typeof( Exception))?
Assembly excAssembl... more >>
|