all groups > c# > march 2006 > threads for thursday march 30
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
Sending Email through Exchange
Posted by Mr. Bean at 3/30/2006 11:05:27 PM
Hello,
I have tried several code sample to send internal emails using the
System.Web.Mail but all the mail was delivered to the 'Bad Mail'
folder. I'm running 'Microsoft Exchange Server 2003'. If anybody could
tell me what I'm I doing wrong or guide me to other techniques or
articles?
Plea... more >>
fuzzy logic with .net
Posted by Alberto at 3/30/2006 10:59:21 PM
Does anybody knows if .net has a library of classes to work with fuzzy
logic?
Thank you
... more >>
Import Namespace
Posted by moondaddy at 3/30/2006 10:33:13 PM
In vb.net its possible import a namespace into a project so you don't need
to add it to the top of every class. Is there a way to do this in c# on a
project level?
... more >>
Issue with propertygrid.
Posted by asjad at 3/30/2006 10:07:24 PM
I need to make my propertygrid readonly in some cases which obviously i
am not able to do.
So what i do is i make my propertygrid.enable = false and then tried to
make its scrollbar.enable = true through reflection but it does not
happen as their is no set in enable property. What i really need ... more >>
HI
Posted by luoxiaoyan at 3/30/2006 9:57:39 PM
Hi,my name's LuoXiaoyan.
... more >>
Send ctrl-c
Posted by William Stacey [MVP] at 3/30/2006 9:53:54 PM
How do you send Ctrl-C to a standard input stream? Just sending 03 does not
work.
--
William Stacey [MVP]
... more >>
PERFORMANCE QUESTION
Posted by Savas Ates at 3/30/2006 7:51:08 PM
I want to built a web page which is gonna have multiple languages. Which one
is the best way ? Using a Xml file to store languages and their
corresponding fields or Using a MS-SQL Database ?
What do you recommend me to have best performance about multilanguage
web-sites?
... more >>
c# direct x book
Posted by cmk128 NO[at]SPAM hotmail.com at 3/30/2006 6:05:28 PM
Hi
Any c# direct x book? I can't find any, please recommend
thanks
from Peter
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Digital signing suggestions
Posted by Joe at 3/30/2006 5:35:41 PM
I want "sign" some files with company information but not necessarily all
files will be signed.
I came up with 2 options: 1 - sign the file itself or 2 - place an encrypted
hashtable or key/value pairs in the file and try to read it.
The file will only be signed by one person and the receivi... more >>
POINTERS
Posted by Pohihihi at 3/30/2006 4:50:43 PM
Hello,
How can I use pointers in c#. I am trying to create a link list.
Cheers,
Po... more >>
c# Gui Freeze when waiting for Data
Posted by Lam at 3/30/2006 4:45:37 PM
hi
I am writing a C# windows program which will get datatable from database =
through ODBC connection
then I show the the datatable on DataGridView.
The problem is that before the datatable get returned, the GUI freezes. =
I can't move it=20
On the program, I have different queries to get the... more >>
XML encoding using C#
Posted by Gilgamesh at 3/30/2006 4:29:10 PM
I've a string which needs to be converted to valid XML string. The original
string might have characters such as "%", "!", "+", etc.
Is there any function available in C# that could do this?
Thanks,
Gilgamesh
... more >>
Generic string type defaults to null?
Posted by Brett Romero at 3/30/2006 4:27:03 PM
When I use this code:
public void CreateColumn<T>( string sName)
{
T thetype = default(T);
dc.DataType = thetype.GetType();
.....
}
via CreateColumn<String>
I fail on the GetType() because thetype is null. It works fine for
Boolean an... more >>
is it possible?
Posted by gregory_may at 3/30/2006 4:08:55 PM
Is it possible to force a limit on the amount of CPU a task is taking?
I am thinking of writing a simple app that will let me force other
applications to "be nice" by only using so much CPU.
Is this possible ... does anything like this exist?
... more >>
best way to proceed on Windows.Forms user interface?
Posted by Andre Ranieri at 3/30/2006 4:08:01 PM
Hello everyone,
I'm wondering if I could get some advice on the best way to build the user
interface depicted in this diagram:
http://www.senske.com/images/winforms_layout.jpg
The gray areas will be static throughout. However, I'd like the blue area
to change to a different interface d... more >>
copye char[] to byte[]
Posted by John A Grandy at 3/30/2006 4:07:04 PM
How to copy an char[] to a byte[] , where the char[] holds unicode
characters ?
... more >>
Looking for books / references for Network programming using mutlithreading
Posted by Dan Tallent at 3/30/2006 3:47:37 PM
I need to design a server application that will handle an unknown number of
clients. (currently 25+) The initial plan was to create a new TCP socket
connection for each client. When the client needed a piece of information,
it would send a request to the server and wait for a response. ... more >>
How to get typeof declared item in generic List
Posted by Mirek Endys at 3/30/2006 3:26:11 PM
Hello,
I need to get the type of item in the declared generic List.
This is my class and my List derrived from List<MyItemClass>
public class MyList : List<MyItemClass>
{
}
public class MyItemClass
{
}
Type t = typeof(MyList);
how to get from 't' the information about type ... more >>
Changing bit values in DataTable?
Posted by Tim Cowan at 3/30/2006 2:43:24 PM
Hi,
I was wondering if there is a quicker way to do this? I have a select all
check box for data in a grid and when checked I want the checkboxes in the
grid to be checked.
I am currently using:
foreach(DataRowView DRV in dvData)
{
DRV["BIT_print_label"] = this.chkSelectAll.Checked;
... more >>
Windows Service - Reporting Error at Start
Posted by Joe at 3/30/2006 2:40:00 PM
C# .NET 2.0
I've got a Windows Service that works exactly as I expect it to. However,
it does rely on a few Configuration settings. If the customer doesn't
configure it correctly, the service shouldn't start.
So I've put in some try...catchs, but what I'm not sure how to do is not
a... more >>
Problem Setting the Time Zone with SetTimeZoneInformation
Posted by Mike at 3/30/2006 2:23:18 PM
I'm writing an application for Windows XP Embedded. This application
requires that the user be able to change the time zone from within the
application. I'm trying to do this using SetTimeZoneInformation, but
it's not working correctly and I can't figure out why. I'm using Visual
C# to write the... more >>
Please! VB controls in C#
Posted by Alberto at 3/30/2006 1:52:29 PM
I need use a vb 6 control in my application written in C# but, as I am a
limited user (no administrator), everytime I run it an error appears.
Why? How can I make it works?
Thank you
... more >>
Updating A DataSet Through A Web Service
Posted by David P. Donahue at 3/30/2006 12:54:04 PM
My experience with databases using C# has been pretty limited thus far.
Mostly I just use a SELECT statement to populate a DataSet, which is
just read-only (mostly for display on a web page), or maybe go so far as
to build an UPDATE or INSERT query with a couple parameters and just
execute... more >>
Exception Stack Trace Parameter Values.
Posted by news.microsoft.com at 3/30/2006 12:32:30 PM
Hi all.
If I wanted to write something so that, when an exception was thrown, and
the stack unwound, the stack trace was captured with the values of the
parameters (instead of just the parameter signature for method), is this
possible without exception-wrapping the guts of each method?
... more >>
adding parameters to Oracle Oledb for update
Posted by Mo at 3/30/2006 12:17:13 PM
Hi,
I am having a lot of problem adding a parameter to a oledb data sorce
and execute it here is what I have I call
string Pump="Yes"
ResultSet = RunQuery("Update CDB_on set Resultx=:Resultx where
(Serial_Number='" + row["Serial_Number"].ToString() + "') ", Pump,
"U");
in this procedur... more >>
DataGridView DataBinding
Posted by helpful sql at 3/30/2006 12:00:07 PM
Hi all,
I have a DataGridView control in my Windows Forms application. I am
binding it to a DataTable in another assembly. The name of the assembly is
ActivityListDALC. I want to bind my grid to
ActivityListDataSet.ActivityListDataTable in this assembly. I selected this
DataTable in t... more >>
Scrolling DataGridView ( window forms)
Posted by Mel at 3/30/2006 11:34:47 AM
Hi,
When opening a form with a datagridview, I would like the grid to scroll
to the last row. If the row is visible there is no problem. The grid has a
binding source which is bound to a bindinglist<T>. I then set the binding
source position to the last item of the list, but the grid do... more >>
sizing a radiobuttonlist in an asp.net page
Posted by Rik Brooks at 3/30/2006 11:29:54 AM
I have an asp.net page that looks great except for a radiobuttonlist. It
insists on being what looks like 12 point. It doesn't matter how I resize it.
It stays big.
This is a horizontal list and it's for Y and N. I know a checkbox would be
best but my boss wants Y or N and will not be disua... more >>
How to hide an app at at startup
Posted by MJB at 3/30/2006 10:46:58 AM
I have an application that I need to hide at startup in the system tray.
I found this article on how to do it:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbtsksettingformtobeinvisibleatitsinception.asp
The problem with this method is that when I call the H... more >>
Getting class instance names via reflection
Posted by Shawnk at 3/30/2006 10:42:04 AM
I would like to get the class INSTANCE name (not type name) of an
'object'.
I can get the object (l_obj_ref.GetType()) and then get the
(l_obj_typ.Name) for the class name.
I there any way of getting 'l_Fred_my_ins' out of the following.
....
My_cls l_Fred_my_ins = new My_cls();
T... more >>
WebBrowser - how to clear session cache?
Posted by ESmith at 3/30/2006 10:01:06 AM
How can I clear the current session cache of previously visited webpages?
That is, say I start up my app (with browser component), point to
www.cnn.com, click on several links, then I want to programmatically clear
the current session cache so if the user hits the back button, their current
... more >>
Control custom property
Posted by Andy at 3/30/2006 9:57:30 AM
Hi all,
I'm creating my own DataGridViewColumn class, and have added a string
property to it which should be settable via the Property designer.
I've gotten the property to show up, but even if i set a value, the
code generated sets the property to null, not the value I typed.
Any ideas?
T... more >>
OT: Value of CS Degree
Posted by Verde at 3/30/2006 9:08:07 AM
What is the real-world value of having a university degree in computer
science?
... more >>
question about Output message error 401 trying to publishing my ap
Posted by Rich at 3/30/2006 8:56:03 AM
When I try to publish my app I am now getting the 401 error message. It used
to work. Then someone changed something on the server. We are now trying to
change stuff back on the server. I don't know what to do to fix the error
message below - when I try to publish my app from my workstatio... more >>
Accessing Protected Variable From Outside Class
Posted by Ben at 3/30/2006 8:38:01 AM
Hello
I have a protected variable in a class (Class A) that I need to call from
another class (Class B) to modify. I thought what I had to do was create a
public method in the class (Class A) containing the protected variable so
that the modification(s) can be done.
However, when I tr... more >>
set matching
Posted by solandre at 3/30/2006 8:27:59 AM
hi there,
i have to find matches in two sorted arrays. there are two good
possibilities as a temporary solution, performing different, depending
on the inner structure of the data. but i try to find a better one.
..possibility one ...
...is running through the arrays in a zig-zag, always ta... more >>
Is there anything in .Net which can detect the resoruce leak?
Posted by Jianwei Sun at 3/30/2006 8:17:55 AM
Hi, guru,
I know GC in .Net will take care of the memory leak, but how about
resource leak.
Say, in a very complicated programs, some gdi objects are not release
properly. It's possible if the program are written by a lot of programs
and some dispose pattern are not implemented properly.... more >>
writing to a binary file
Posted by Bob Cummings at 3/30/2006 8:00:22 AM
Good Day
I would like to write a password to a binary file. I am following along
in the book and examples I have found googling. However when I open
the file in notepad it looks like a text file. Can someone tell me what
I am doing wrong?
try
{
if (sfdCommon.... more >>
need superfast binarysearch, with superfast icomparer
Posted by solandre at 3/30/2006 7:41:24 AM
my motivation is as follows:
i have to binarysearch several million times an long[] that is several
million items big. this costs time, although i use
Array.Binarysearch<long>. so i try to keep the Compare-method as lean
as possible, as it is summoned several 10 million times.
in case of... more >>
Hiding inherited method
Posted by PIEBALD at 3/30/2006 7:36:02 AM
I was trying to break some polymorphism, expecting it not to work, but I'm a
curious sort.
I was seeing what happens when a derived class tries to hide an inherited
method with a private new method, expecting an error or warning; I got
neither with the result that the inherited method does ... more >>
Copying a folder on the server
Posted by Michael at 3/30/2006 7:06:02 AM
Hello,
I am writing an app that will sit on the desktop. It needs to be able to
make a copy of a folder that sits on the server. It will copy the folder
from the server and place it in the same directory on the same server. This
is the line of code that I am using:
System.IO.File.Copy(... more >>
User control displaying class property implementing IList interfac
Posted by Marek at 3/30/2006 5:59:01 AM
Hi
I have a user control that has a property which is a class implementing IList:
public partial class MultiPanelControl : UserControl
{
protected MultiPanelList _panels = new MultiPanelList();
...
}
public class MultiPanelList : IList<MultiPanel>
{
...
}
At design time I ... more >>
Generic factoring for cross database functionality
Posted by DelphiAddict at 3/30/2006 4:40:42 AM
Hi.
Has anyone looked into generic factoring for making database
independant applications?
(Framework 2.0)
I have, but I'm in the starting fase.
What I do know is that if you only write code, you are able to make
fairly database independant applications with not much more effort that
if... more >>
Accessing Address book from C#
Posted by lauge at 3/30/2006 4:39:02 AM
Hi,
I will like to access the Address book in windows via C# (.net 2.0), is this
possible and can it be done independent of the mail program that the end
users are using??
Best
Flemming ... more >>
Open Excel file in browser using .Net
Posted by dele.olowoyo NO[at]SPAM gmail.com at 3/30/2006 4:38:11 AM
Hey All,
I am trying to open an Excel file in a browser by using
Response.Redirect. The file is located in a virtual directory.
However, the browser title shows the path of the file, which I don't
want anyone to see. I was wondering, can I do the same thing using
Server.Tranfer, and if so, ... more >>
Is it possible to have two Main() in one solution?
Posted by ano at 3/30/2006 2:18:03 AM
Hi,
I'm a C# newbie. My application (Solution) contains two Windows application
projects. They create their own ".exe" output that means there are 2 Main()
methods in one solution.
Is is possible to do this? If it's possible, how Project A (A.exe) calls
Project B to start (B.exe) applica... more >>
SQL Licencing Headaches.
Posted by garyusenet NO[at]SPAM myway.com at 3/30/2006 1:27:23 AM
Please explain to me.
Im writing an app using visual studio professional and sql server
express (although I also have sql server with one client licence.)
My app uses c# , windows forms, and an sql database.
When finsihed I will need to install my app on 12 office machines.
I want to in... more >>
textFile Manipulation
Posted by Rain at 3/30/2006 1:17:01 AM
I have a textfile with multiple line. How do i get (for example) the 1st line
or the 3rd line then change the line to something i want in C#? How do i
delete a line in C#... or backspace in a textfile? for example
1st line
2nd line
3rd line
4th Line
I want to read the 2nd line and chan... more >>
What does strongly typed mean?
Posted by garyusenet NO[at]SPAM myway.com at 3/30/2006 1:10:01 AM
This is the context...
" TableAdapters are created with the Dataset Designer inside of
strongly typed datasets."
Thanks!
Gary.
... more >>
re-throwing an exception
Posted by ajfish NO[at]SPAM blueyonder.co.uk at 3/30/2006 12:46:07 AM
Hi,
I would like to re-throw an exception but keep the stack trace from
when the exception was originally generated. Is there any way of doing
this (using .Net 1.1)?
I am not throwing it from the same place it was caught (in fact it is
caught in a worker thread which squirrels it away and t... more >>
... not marked as serializable.
Posted by Frank Uray at 3/30/2006 12:36:03 AM
Hi again
I have a little problem with "serializable" a control ...
I am creating AppDomain, Assembly and Instance. All works fine.
My "base" class for the instance inherit from:
- System.MarshalByRefObject
- and also my Interface.
In my "base" class I refer to a Form.
I am able to access ... more >>
inheritance and static
Posted by Adam Klobukowski at 3/30/2006 12:00:00 AM
Consider following example:
class A
{
public static Method()
{
/* ... */
}
}
class B : A
{
}
How can i chcek in Method() if it was called as B.Method() or A.Method()?
--
Semper Fidelis
Adam Klobukowski
atari@gabo.pl... more >>
How many computers can execute .NET code
Posted by Martijn Mulder at 3/30/2006 12:00:00 AM
Hi group,
It is tempting to jump into .NET programming, especially C# in my case. But
I have no idea what the realm is of code based on the CLR. Please inform me
of the following:
-what versions of Windows can execute .NET code?
-can I deliver dll-files to older Windows versions? (ME, 200... more >>
foreach & generics syntax proposal
Posted by Wiktor Zychla [C# MVP] at 3/30/2006 12:00:00 AM
since generics allow us to implement several IEnumerable<T> interfaces on a
single class, I think that "foreach" should somehow reflect that.
suppose we have a enumerable class
class C : IEnumerable, IEnumerable<int>, IEnumerable<string> { ...
we are allowed to enumerate IEnumerable:
f... more >>
c# : detect runmode
Posted by Steph at 3/30/2006 12:00:00 AM
hello,
i m looking for detect the runmode (console, aspx, etc) and adapt my class
(delegate) for output writting...
thx
mcf
... more >>
filtering an XML Dataset
Posted by Jason Huang at 3/30/2006 12:00:00 AM
Hi,
I use the ReadXML method in my C# Windows Form project.
Here is some of my C# code:
xmlDS.ReadXml(curDir + "\\Dept.xml") ;
There're 20 rows and 5 columns in the Dept.xml.
But now I just want some of the data in the Dept.xml, e.g., DeptLevel >1 AND
Status=0.
How do I filter the XML or... more >>
Web Browser Object Question
Posted by Kfir Marouani at 3/30/2006 12:00:00 AM
Hi,
I'm working with VS 2005.
I'm using a WebBrowser object that has an even called DocumentCompleted.
The thing is this even is called whenever a frame of the page has been
completed and I want it to be only when the entire page is downloaded.
Any ideas?
Thanks in advance.
Kfir.
... more >>
Windows form components enumarating does not work?
Posted by Adam Right at 3/30/2006 12:00:00 AM
Hi,
I want to list components on the screen by enumarating the components.
For example, I am using toolstripmenu which is a component for windows
form.. But when i load the form, the components is null.
foreach(IComponent component in components.Components)
{
//my code is here
}
W... more >>
NumericUpDown 's ValueChanged event is not always fired
Posted by Ryan Liu at 3/30/2006 12:00:00 AM
I notice
System.Windows.Forms.NumericUpDown's
ValueChanged event is not always fired, especially edit its text box
directly.
Is this a known bug or there is something I should pay attention for this
control?
Thanks,
Ryan
... more >>
|