all groups > c# > february 2005 > threads for thursday february 24
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
send/receive in outlook
Posted by saurabh_helloaish NO[at]SPAM rediffmail-dot-com.no-spam.invalid at 2/24/2005 11:40:31 PM
Hi
Could anyone please tell me how can we capture send/receive event in
MS Outlook.
Suppose I want to pop up a message box when user hits send/receive
button, how can we do that.
Actually what I want is to compare my .ics (calender file) file with
appointment entries that are there in th... more >>
firewall
Posted by Skur at 2/24/2005 10:54:01 PM
i need to know if it's possible to write a full firewall with c#. Not just
closing/opening ports , but application capable of what can be achieved by
using norton firewall, zone alarm, kerio etc. , or EVEN iptables (linux
:> ). Please, answer me. All knowledge will be extremely precious.
slaw... more >>
CS0121 error
Posted by Noah J at 2/24/2005 10:41:02 PM
Ok, I'm REALLY confused. I'm new to C# and i am getting an error that has be
throughly mystified.
CS0121: The call is ambiguous between the following methods or properties:
'DreamweaverCtrls.DataSet.FieldValue(string,
System.Web.UI.WebControls.DataListItem)' and
'DreamweaverCtrls.DataSet.... more >>
Garbage Collector - Prevent object from being moved
Posted by SB at 2/24/2005 10:38:35 PM
What is the best way to prevent an object from being moved by the garbage
collector (for the lifetime of an application)? Pinning seems to be
designed for temporary operations...so I guess that's not an option.
The reason I'm ask is because I have a class that contains many delegates
that ... more >>
SMTP mail problem
Posted by Shawn Zheng at 2/24/2005 10:33:03 PM
I have a problem with SmtpMail.Send. the message sent by SmtpMail.Send stuck
in Inetpub\mailroot\Queue folder could not be sent out. The SMTP server is
in Windows 2000 server. the code that I used is:
MailMessage mail = new MailMessage();
mail.Form = "someone@fromsite.com";
mail.To = "someone@t... more >>
the best way to do that, resuming thread after conisderable amount of time
Posted by LP at 2/24/2005 10:18:25 PM
Hi,
I developed a console application that is currently in production. It is
scheduled to run every morning (very early morning), to move files from one
server to another, update SQL db and then ftp files to a remote server.
Everything is great, but remote ftp server people, want to begin except... more >>
Recomendation for a C# 2.0 book?
Posted by Bruce at 2/24/2005 10:15:36 PM
On Amazon I see at most 2-3 books that claim to cover c# 2.0. And I know
that it is still early in the game, so a book bought now may end up being
invalid in a few months. But never-the-less, would anyone recommend any of
the existing books?
Thanks, Bruce
... more >>
SETUP.INI localeid
Posted by Paul Aspinall at 2/24/2005 10:04:55 PM
Hi
Does anyone know how to force a windows package to use a specific locale
id??
ie. I just want to have 1 locale set of strings in SETUP.INI and to have my
setup.exe use these regardless of which locale the user is from.
ie. I just want to have [1033] and no others, but want to avoid the... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
MS Word how to connect :)
Posted by Radek at 2/24/2005 9:52:50 PM
Hi, I have got such problem:
in my directory "C:\folder" I have 3 files in MS WORD (having tables, images
etc), these are:
"1.doc", "2.doc", "3.doc".
I want to write an application (C# of course) which will
merge the contents of files which I will point ie. 1.doc and 2.doc into one
file: "12.... more >>
Profiling Tool
Posted by rawCoder at 2/24/2005 9:22:31 PM
hi,
I would like to profile an application using some tool in such a way that i
dont want to add any probe code in the application.
And I am also interested in knowing the lines of codes that are hit/run most
of the times and also the lines of code which took most time in execution.
( as it... more >>
How does one create a tool window in C#
Posted by Steve Teeples at 2/24/2005 9:09:04 PM
I want to create some tool windows like you see in the VS IDE. I created a
form and set the FormBorderStyle to "SizableToolWindow". However, after
several vain attempts I don't know how to proceed correctly from there. I'd
like this form to dock within another form just as it does in the ID... more >>
algorithm on comparing two html files
Posted by ddd at 2/24/2005 8:49:03 PM
I am trying to build a diff tool that allows me to compare two HTML files. I
am looking for resources on how to achive this. The main problem is that I do
not want to simply highlight the line of code where the change happened, but
rather the word/text that changed.
Example say the html fi... more >>
Help with finding entry point (
Posted by trint at 2/24/2005 8:06:31 PM
I know that this function IS in this dll that comes with windows xp
that allows bidirectional printing (you can search "bidispl.dll" on
MSDN). However, I keep getting the same error all day, go to bed, get
up, get the same error over and over.
PLEASE Help! Here is the code and I'm just trying ... more >>
The best way of transforming CSV files into Database
Posted by ALI-R at 2/24/2005 7:51:49 PM
I'm recieving some CSV files from our clients and they are supposed to be
written in the Database.Considering the following issues:
1) The CSV files should be hughly validated,each field against a lot of
bussiness rules
2) Everything must be logged
I) Invlaid Field Values
I... more >>
Problem with DropDownList
Posted by Jensen bredal at 2/24/2005 6:36:25 PM
i created a dropdownlist and
bound it to a table the following way.
MyList.DataSource = DS.Tables[0];
MyList.DataValueField = "testid";
MyList.DataTextField = "text";
the problem is that , when an item get selected
all my methods to retriev the id of the
selecteditem fails.
... more >>
Urgent - Adding a C# web page to a VB web solution ---- NOT F@#KING LIKELY!
Posted by John at 2/24/2005 6:33:51 PM
Hi all,
I really need help on this one. In some obscure documentation I remember MS
stating that it's possible to have a web solution with both vb AND c# web
pages. If that be the case, how do I add them in such a way that Visual
Studio allows proper interaction between the two?
What I m... more >>
adding arrays
Posted by Troy at 2/24/2005 5:12:19 PM
Hello,
I have a dumb question. I have two array objects of type double with 12
elements in each object. I'd like to add the two objects but dont know how
to. Any ideas?
thanks
... more >>
compilation time vs run time
Posted by julien at 2/24/2005 5:01:09 PM
Hello,
I try to understand was is statically compiled, and what is loaded at
tun time.
I have 3 binary file: Program.exe, Plugin.dll, and Share.dll
Share.dll contains objects used by both Plugin.dll and Program.exe.
I compile these 2 program with Share.dll
Do the 2 binary have an embedd... more >>
EVAL function in C#
Posted by MikeL at 2/24/2005 4:47:28 PM
Hello.
Is there an equivalent of the VBScript "Eval" and "Execute" statements in
C#?
Thanks in advance,
Mike
... more >>
Problem with overloaded functions
Posted by Lidström at 2/24/2005 4:26:44 PM
Hello,
I get warnings when trying to compile this code:
public class Point3D : Point2D
{
public void WriteXml(XmlWriter w)
{
// TODO
}
public XmlSchema GetSchema()
{
// TODO
return null;
}
public void ReadXml2(XmlReader reader)
{
// TODO
}
}... more >>
Really easy combobox question
Posted by Michael Rodriguez at 2/24/2005 4:24:02 PM
I have a table that has a field called FinancialType. It has two possible
values, F and S, which stand for Financial and Statistical, respectively.
What I want is a ComboBox that has two drop down choices, Financial and
Statistical, each of which are bound to the values of F and S in my tabl... more >>
combobox dropdown event
Posted by Itzik at 2/24/2005 4:00:51 PM
Hi
i have combobox and button on my form
i want open dropdown list of combobox , when i click on the button
Can i do it ?
Thank you
... more >>
Question on Profiler
Posted by Bhargavan at 2/24/2005 3:43:51 PM
Hi,
I am running a .Net windows application. When I check the memory usuage of
that application in the windows task manager, it shows around 66MB. But when
I check the memory usuage using .NET memory profiler (a third party tool) it
shows only 4MB. Anybody have any idea why there is such a hi... more >>
Using COM within .NET
Posted by Tommy Vercetti at 2/24/2005 3:38:46 PM
I have a very simple COM object that I want to use within .NET. The COM
object was written in C++/ATL. The object works but the problem is the
COM object never seems to be released and the DLL files can never be
overwritten without restarting the computer.
MyLibrary.CMyCOMClass netWrappedC... more >>
byte[] to string
Posted by Fernando Lopes at 2/24/2005 3:30:30 PM
Hi ALL.
Someone knows how can I convert a byte[] field to a string field?
The problem is, I'm uploading a xml file and I'm requesting the file using
Request.BinaryRead();
So, now I need to convert the result of Request.BinaryRead() method to a
string variable.
Thanks in advance.
Fernand... more >>
C# - Interface Class
Posted by Richard at 2/24/2005 3:29:17 PM
Hi,
I'm new to C# and are having difficultly implementing an interface class.
Basically I want to define an interface class, then inherit it. I want some
of the methods to be public, and some not. Below is an example of what I'm
trying to do;
using System;
public interface iTCP... more >>
Macros no longer working
Posted by Michael Rodriguez at 2/24/2005 2:38:14 PM
My macros seem to have stopped working in my VS.NET 2003. I can recorded a
macro to press enter, create a new line, and enter some braces. When I try
to run it, it says briefly "running macro" down at the bottom, but it does
nothing. I can't even get the sample macros to work.
Does anyon... more >>
FormsAuthentcation
Posted by Vivek Sharma at 2/24/2005 2:34:50 PM
Hi There,
I am using forms authenication. When I submit the login page it takes me to
the default.aspx. Is there any way I can change the location where it
should redirect?
Thanks
Vivek
... more >>
Javascript Variables
Posted by Praveen at 2/24/2005 2:11:51 PM
Hello,
I'm using a JavaScript function (mouse.js) and this
function dishes out some values. Is there any way that I
can use those variables/values in my C# code.
Any help would be really appreciated.
Regards
Praveen ..
... more >>
CodeDOM and dll version
Posted by Bragadiru at 2/24/2005 2:04:55 PM
Hi,
I can compile dinamically with CodeDOM, but all the dlls have 0.0.0.0
version. How can I set it ??
Thanks for any advice
... more >>
calling form
Posted by Hrvoje Voda at 2/24/2005 1:55:32 PM
I would like to put some message while I'm reading a form.
When it shows the message show disapired.
Hrcko
... more >>
Moving Multiple Controls
Posted by Marty at 2/24/2005 1:37:50 PM
When I try to move a selection of more then one textbox on a form, the
spacing between the textbox changes. Is there a way to move multiple
controls and preserve the spacing? Thanks.
... more >>
How can I clean up a long-running task before the process ends?
Posted by Jeffrey Palermo, MCAD.Net at 2/24/2005 1:09:09 PM
I have some classes that control file processing in c#. The files come
from a mainframe and may take some time for each to process. I use the
Threadpool to process multiple files at once. Each instance of the
file processor is spawned in its own AppDomain to isolate it (I'm using
a separate A... more >>
Is it possible to Upload file to a non-iis server using c# or vb.net
Posted by brianinbox NO[at]SPAM hotmail.com at 2/24/2005 12:52:11 PM
Hi, I've been trying to find a way to upload file to another site that
is not using IIS. The site that I want to upload file to has a simple
php script to receive file uploaded through standard http post with a
file upload. However, how do I upload file to the site using asp.net?
thanks
B... more >>
Setting up screensaver via CSharp/C# application
Posted by RonNanko NO[at]SPAM gm-squared.de at 2/24/2005 12:47:19 PM
Hi,
I'm trying to setup a screensaver via a C# application. What I
currently do is this:
[DllImport("user32", CharSet=CharSet.Auto)]
unsafe public static extern short SystemParametersInfo (int uiAction,
int uiParam, int* pvParam, int fWinIni);
....
try
{
RegistryKey oKey = Registry.Cur... more >>
Working with datatable.
Posted by Jensen bredal at 2/24/2005 12:33:11 PM
I have a DataTabel object filled with table data from a database.
The table contains rows that have the same data in a particular column.
How can i make a new copy of the datatable removing the repeating rows?
Many thanks in advance
JB
... more >>
Instantiate Class of other Project under same solution
Posted by tarunbajaj NO[at]SPAM gmail.com at 2/24/2005 12:29:11 PM
Hello Readers,
I am working on a web application.It has two Projects A & B under a
Solution, for each Region, using the site. The Code base for both the
Projects is same.
There is a login page in both the Projects. Login page has "Region"
selection and Login / Password fields.
If user from reg... more >>
SQL style "Like" function.
Posted by craigkenisston NO[at]SPAM hotmail.com at 2/24/2005 12:18:17 PM
Hi,
I'm looking to achieve the same functionality as the "like" function in
SQL (Server) in a program in C#.
Is there anything out of the box ready to use ?
Can this be achieved with regex ? If so, how ? Samples welcom.
Thanks,
Craig
... more >>
Call a Javascript function from C#
Posted by Praveen at 2/24/2005 12:03:38 PM
Hello,
I have a web form(mainform.aspx) which contains a
javascript function (draw). How can i call this function
(on button click event) from Mainform.aspx.cs file.
If anything is unclear please let me know.
Any help would be really appreciated.
Regards
Praveen Manne ... more >>
Call a javascript function from C#
Posted by Praveen at 2/24/2005 12:01:03 PM
Hello,
I have a web form (mainform.aspx) and C# file
(mainform.aspx.cs). Ther... more >>
log4net file logging question
Posted by rutledj NO[at]SPAM rjrt.com at 2/24/2005 11:48:11 AM
Is there anyway to force logging to the file (writing to the log file)
immediately as each log command is executed?
Currently, it appears to write the log when the program ends.
Thanks,
Rut
... more >>
Intellidoc?
Posted by briano NO[at]SPAM avanade.com at 2/24/2005 11:43:22 AM
I go to add a project output to a setup project and see an option for
"Contains the Intellidoc documentation files for the project."
What is that? I have heard of "nDoc" and Xml Documentation, but
Intellidoc? Is that like Intellisense?
TIA -
Brian
... more >>
Easy way to get a formatted string
Posted by Jack Addington at 2/24/2005 11:10:41 AM
I am capturing a set of validation messages from my validation method. I
was putting each message back into a StringCollection. I then wanted to
output a big warning message in a Dialog box. Is there a way to quickly
convert essentially an ArrayList of strings into a single string with each... more >>
Help /w Method's naming best practice
Posted by Jack Addington at 2/24/2005 11:06:23 AM
I am just looking for some advice on naming my methods - I am getting
confused as to what some of them mean now
I have the following scenario - A Visual Data Object and a Logical Data
Object.
I wanted to make sure that there were calls that could be made to either for
things like Validat... more >>
NUnit
Posted by Mark at 2/24/2005 11:00:56 AM
I'm using NUnit with an ASP.NET .dll ... looking for recommendations:
1. Put the Test class in the same project (.dll) as the class that is being
tested?
2. Put the Test class in the same namespace as the class that is being
tested?
3. Put the Test class in the same fodler as the class that i... more >>
Help 'Check ListView' vs 'Check ListBox'
Posted by MikeY at 2/24/2005 10:33:45 AM
Hi all,
I am coding window forms in C#.
My problem is this: I have created a "Check ListView" or a 'ListView' with
checkbox's. I have populated the it with my files from my folders, mps, txt,
etc. The ListView is in Details, with headers and an Icon.
What I am trying to accomplish is to r... more >>
Hw to ...
Posted by Jacek Jurkowski at 2/24/2005 10:23:06 AM
.... minimize window into a System Try icon?
... more >>
code within libraries vs code within same project
Posted by melinda at 2/24/2005 9:59:03 AM
What are some possible reasons for this:
I call a static method from a class within my assembly...works fine.
I call the same static method after it has been compiled into a different
assembly and referenced to my project....does't work. Give's me a "Object
not set to an instance...".
... more >>
Newbie questions :)
Posted by Edgardo Rossetto at 2/24/2005 9:48:32 AM
Hi, I have the following problem:
I need to set the property of a child control of a form, but from an
external form. The truth is i have no idea on how to procced to do this,
- do I need to make the owner form aware of the event occured in the
external form in order to reflect the change?... more >>
Help me!!!
Posted by morice at 2/24/2005 9:41:01 AM
I have writen a dll(EmrCmprs.dll) using c++ and a function in this DLL:
__declspec(dllexport) long EmrDecompress( char *pcCompressData /*in*/,
long lCompressDataSize/*in*/,
char **ppcRawData/*unicode out*/,
long *plRawDataSize/*out*/ )
{
...
}
Then,i in... more >>
Compile error when calling managed C++ from C#
Posted by zlatko.marcok NO[at]SPAM opg-dot-com.no-spam.invalid at 2/24/2005 9:40:32 AM
Hello. I am new to .net .
I have a managed C++ library. It looks like this.
// header file
namespace cppnetdll
{
public __gc class Class1
{
public:
static int foo_int(void);
};
}
// source file
namespace cppnetdll
{
int Class1::foo_int(void)
{
return 123;
}
}... more >>
Import XML file into dataset
Posted by Thomas Lischetzki at 2/24/2005 9:11:07 AM
Hello all together,
I have a little problem importing the following xml file into a dataset.
<?xml version="1.0" standalone="yes"?>
<logfile version = "0.1.001" >
<log date = "01.01.2005" time = "12:01:59" username = "Mueller" level =
"Info" message = "2">
<data order="1" caption="Origina... more >>
I just love C!
Posted by Michael S at 2/24/2005 9:01:53 AM
I just love C! But C would be useless without the pre-processor...
#define begin {
#define end }
#define WriteLn printf
#define procedure void
procedure SayHello()
begin
WriteLn("Hello World!");
end
Have a great day!
- Michael S
... more >>
How to set up for managed newsgroups
Posted by Daniel Billingsley at 2/24/2005 7:17:05 AM
As an MSDN subscriber, I used to get responses to posts I made to this
newsgroup (and others) with Outlook Express, but I'm not any more. According
to the MSDN site I shouldn't have to use the web UI to make this work.
Can someone please tell me what I've got to do to get this working again?... more >>
c# assembly access from Java script
Posted by cspek at 2/24/2005 6:56:28 AM
Hi all,
I have a piece of code written in C#. I have made it as an assembly
(dot net dll library code). I need to access some method of it from the
script side.
Which are the possible ways of achieving the same ?
The scenario is like this. I have an existing web application to which I
have... more >>
Get screenshot from website ??
Posted by sparkplug NO[at]SPAM webmail.co-dot-za.no-spam.invalid at 2/24/2005 5:39:48 AM
HI,
Is there a way to get a screenshot of a webpage in C# code?
Or is there any nice components I can use?
Thanks
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY *... more >>
Suggestions for standard regions
Posted by Simon at 2/24/2005 4:17:50 AM
Just starting on C# and would like to know what suggestions
there are for the order in which declarations, event
handlers, properties, private code, nested classes, etc,
etc appear in your files. What impact do access modifiers
have on the order? Also, does anyone use standardised
region names?... more >>
drawing a path efficiently
Posted by James dean at 2/24/2005 2:30:50 AM
When i draw a path with many points the editing becomes slow. I ran
devPartner and it said that the GDI+ method "GetPathPoints" was taking
up alot of processing time. Also GetPathOutline is slow. Has anybody got
advice on the most efficient way to draw paths in C#.
*** Sent via Developersdex h... more >>
Most efficient way to draw text
Posted by michael Dorrian at 2/24/2005 2:17:11 AM
Could someone tell me an efficient way to draw text onto the screen. In
my application i can draw at 600dpi,400dpi or 300dpi. The trouble is
when text is large or the textbox is large then editing can be quite
slow. Can anyway give me a method to draw text in the most efficient
way......
*** ... more >>
Event called when forms authentication cookie expires
Posted by Reshma Prabhu at 2/24/2005 2:11:02 AM
Hello,
I have developed a web site which uses forms authentication for
authenticating users.
The problem is that the site is divided into frames and so whenver
the cookie expires each frame shows login page.
I want that Login page should be shown in the whole page no... more >>
Testing Time Values
Posted by Jeff B. at 2/24/2005 12:17:23 AM
Hello,
Has anyone ran across an efficient algorithm for determining if a DateTime
or TimeSpan value falls within two other DateTime/TimeSpan values?
For example, if I have a start time of 09:00 and an end time of 21:00 and I
want to test if 16:00 is between them, this is fairly straightfor... more >>
|