all groups > c# > october 2006 > threads for sunday october 8
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
How to send a mail using C#
Posted by jamilabkh at 10/8/2006 11:49:56 PM
Hi all,
I need to know how to authenticate a user before sending a mail using a
C# application.
The source code i use is this:
private void sendMailButton_Click(object sender, EventArgs e)
{
try
{
MailMessage mailMessage = new
MailMessag... more >>
Adding new items in Contaxt Menu
Posted by Kannan at 10/8/2006 11:35:01 PM
Hi,
I am creating C# application with Outlook integration. In the outlook
mail, I have to create new item "Fwd to AIA" in the Context menu. If they
click that item, it will display My list of users name window. Once user
selected any one of the name from this list, it will store the selecte... more >>
How do I exit the program?
Posted by Amanda at 10/8/2006 11:01:01 PM
(1) What code should I put in case 'e':?
(2) Should I still put default case?
do
{
Console.Write("Enter a selection from the following
list:\n" +
"a. Display ...................\n" +
"b. Display ....................\n." +
... more >>
sqlcommand.ExecuteXmlReader is not work, why?
Posted by Risen at 10/8/2006 10:58:22 PM
Hi,
When I use sqlcommand.ExecuteXmlReader to receive Sql Server 2005's table
data, it not work! my code is below:
private static void CreateXMLReader(string queryString,string
connectionString)
{
using (SqlConnection connection = new SqlConnection(connectionString))
{
... more >>
custom web server
Posted by Danny at 10/8/2006 10:39:32 PM
Can anyone point me in the right direction to create a simple web server? I
need to create a simple application that receives a HTTP GET request with
parameters and returns back an XML string. Does the 2.0 framework have any
components already created for this or do I need to build it using ... more >>
using char in do while condition
Posted by Amanda at 10/8/2006 10:25:29 PM
If I do this, i get complaints saying that || cannot be used for char
and bool. Any help?
// options will be a,b,c,or e
do
{
Console.Write("Enter a selection from the following
list:\n" +
"a. Display ...................\n" +
"b. Display... more >>
What is maximum time thread can be run?
Posted by archana at 10/8/2006 9:44:45 PM
Hi all,
i want to develop one windows service wherein i want to run task
continuously after certain interval.
So what i did is i created one thread and in that thread i have written
one endless loop.
In this loop after processing is completed i call sleep method to wait
for some amount o... more >>
RegAsm not executing.
Posted by gopal at 10/8/2006 8:36:05 PM
I installed MS DevEnv 2003 with framework 1.1.I developed a small
application which looks out for the assembly vcersion of a .net DLL or
EXE via code. But i have a problme durng the registration using RegAsm.
My Question is
Does the RegASM can be called from anywere like we call RegSvr32 or ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
What happens after Form constructor?
Posted by Morgan Cheng at 10/8/2006 8:05:33 PM
I am writing a very simple Win Form app.
One PictureBox (named ViewPicBox) in the main form (named ViewForm). In
the constructor of ViewForm, I set the Image property of ViewPicBox.
ViewForm()
{
InitializeComponent(); // auto generated by VS2005
ViewPocBox.Image = Image.FromFile(@"C:\abc... more >>
get / set and sevral values
Posted by Zach at 10/8/2006 6:26:45 PM
Is it possible to use "get" and "set"
where "value" is say three ints.
If so, is there sample code anywhere?
Adrian.
... more >>
Properties
Posted by Jon Slaughter at 10/8/2006 5:32:31 PM
private string name;
public string Name
{
get { return name; }
set { name = value; }
}
In the above, why doesn't C# just allow one to create a single directive to
make a property?
why not something like
public string Name
{
get { return name; }
set { name... more >>
Question on Background worker
Posted by Flack at 10/8/2006 5:07:01 PM
Hey guys,
I'm trying to update a progress bar for a long running process that updates
quite frequently. I also would like the GUI to remain responsive to
resizing/moving/repainting, etc.
When I use the below methods in a background worker thread the GUI doesn't
remain very responsive. ... more >>
hyphen in regular expression (cSharp)
Posted by jayanthigk2004 NO[at]SPAM yahoo.com at 10/8/2006 3:12:58 PM
Input
a-
Patterns
\w*-*
\w*(-*)
\w*(-)*
\w*[-]*
No of the patterns results in a match. Tried escaps(\) before hyphen
still no match.
My requirement is to make sure a string contains only digits, alphabets
and hypen (each 0 or more times).
... more >>
Get name of instance of object
Posted by Jon Slaughter at 10/8/2006 2:54:50 PM
Is it possible to get the name of an instance of an object?
I want to display it for debugging purposes but don't have a clue about how
to go about it.
i.e., I want something like(psuedo)
Class A { }
main
{
A B;
writeline("{0}", B.Name());
}
and it display B.
I know I c... more >>
problem with graphics.DrawString
Posted by Allen at 10/8/2006 2:45:55 PM
I've got a control that you can resize the contents of one of the text
fields inside it. When the contents are resized to smaller than the
text, I remove some of the end of the text and substitute ... at the
end.
This is where the wierdness sets in. Any time I remove or change some
letters... more >>
pass types by ref or value
Posted by Jon Slaughter at 10/8/2006 12:29:34 PM
I'm reading a book on C# and it says there are 4 ways of passing types:
1. Pass value type by value
2. Pass value type by reference
3. Pass reference by value
4. Pass reference by reference.
My interpretation:
1. Essentially pushes the value type on the stack
2. Boxes the value type? pu... more >>
ExecutionEngineException trying to override IInternetSecurityManager
Posted by Fredo at 10/8/2006 11:34:44 AM
I'm going to try to post this without having to paste in hundreds of lines
of code.
I'm trying to override IInternetSecurityManager. I'm taking sort of a
minimalist approach and adding code as I take each step because I'm not 100%
sure about what I'm doing here.
First of all, I've create... more >>
PropertyGrid Serialize Property of type SystemColor
Posted by Joe at 10/8/2006 11:15:51 AM
Hi
I have a propertygrid that I allow the user to pick a system.color and I
want to save to a file to load later
onto the propertygrid. String and bool values work but I am unable to save
colors
Any suggestions???
Thanks
Serializing code
----------------
XmlSerializer mySerializer... more >>
How to convert C++ code to C#
Posted by creatigent NO[at]SPAM gmail.com at 10/8/2006 11:13:17 AM
How to convert this code to C#, Thanks
char ID[21];
ID[20]='\0';
srand((long) time(NULL));
char Result[43];
// ID 1-3
memcpy(Result,ID,3);
// 2 random digits
sprintf(&Result[3],"%2.2d",rand()%100);
... more >>
How to open a popup window from the server side to clint side using javascript
Posted by susikto chaudhuri at 10/8/2006 10:18:12 AM
Hi,
I have created a server response page (written in PHP). This is
receiving the response from the server and writing into a text file.
What I want to do when I will get the response from the server i need to
open a new window to the Clint side. I need to know is it possible to
open a window... more >>
static constructor multithreaded?
Posted by Adam at 10/8/2006 7:48:45 AM
What happens if one thread is executing a static constructor and
another thread starts. Does the second thread block until the first is
done in the static constructor? I want to make sure all my globals are
initialized and the second thread does not throw an exception.
Thanks in advance.
... more >>
Web Service Question
Posted by Tony at 10/8/2006 6:19:02 AM
Posted in a different news group - but hoping to find an answer here...
I am using VS 2005 and am testing my first web service. If I follow the
common instructions for creating a web service by creating a new website
using the ASPX.Net Web Service template, there appears to be no dll file
... more >>
uncleared code
Posted by vijaiyanb NO[at]SPAM gmail.com at 10/8/2006 6:07:30 AM
please explain the following code
Dim rt As String =
"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0
Arial;}}\viewkind4\uc1\pard\qr\f0\fs20 "
... more >>
uncleared code
Posted by vijaiyanb NO[at]SPAM gmail.com at 10/8/2006 6:02:58 AM
please explain the following code
Dim rt As String =
"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0
Arial;}}\viewkind4\uc1\pard\qr\f0\fs20 "
... more >>
How to make a cross post?
Posted by Sergey Poberezovskiy at 10/8/2006 5:32:01 AM
Hi,
What do I need to type in the advanced options of the New Question dialog of
this newsgroup to cross-post, say to VB.Net General Discussion. I have
attempted a few different options, but none succedded.
They ask to "use full USENET designation" - but I cannot figure out what it
is.
... more >>
XAML - System Requirements
Posted by GVN at 10/8/2006 12:37:04 AM
Hi All,
I would like to write a .NET application which uses XAML. The following
is my system's specification:
Operating System : Windows XP
..NET Framework : 1.1
RAM : 512 MB
HardDisk : 80 GB
Visual Studio : 2003
My question ... more >>
How to send mail?
Posted by ad at 10/8/2006 12:00:00 AM
I want to use c# to send note to users.
How can I do?
... more >>
how to run report services
Posted by gordon at 10/8/2006 12:00:00 AM
Hi
I have installed vs2005 and sqlserver 2005 but I cannot see the option to
use reporting services when i start a new project.
I dont see the analysis, intergration or reporting services on the spash
screen when is start vs2005 either. On my PC at work, i see business
intelligence pr... more >>
|