all groups > c# > june 2006 > threads for monday june 19
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
examples
Posted by jack at 6/19/2006 11:54:39 PM
Hi all
can anyone suggest me with some good sites where i can download the
business login examples
please do reply me if you know one of those.
... more >>
Unable to set Height and Width of a form
Posted by Udi at 6/19/2006 11:43:09 PM
All,
I have a list box that imitates the intelisence behavior.
Since I need it to be top most, I have put it on a TopMost form (The
listBox docked to Fill).
The form has no parent, no caption and its borderStyle is FixedSingle.
The Listbox IntegralHeight is false.
My problem is that when my ... more >>
A Webservice problem
Posted by jack at 6/19/2006 11:07:52 PM
Hi all, good morning
(im using vs2005)
I want to commulicate with a web service in c# i did followed all the
instructions in the book.
i have tried it and worked perfectly in my local machine but,
as i tried to do with one of the webservice in internet there was a
problem.
the problem is my ... more >>
Interface Question
Posted by psandler70 NO[at]SPAM hotmail.com at 6/19/2006 9:42:33 PM
All,
This might be a stupid question.
When defining an interface, is it possible to force the class that
implements it to support a property/method with the same name, but not
force a specific type?
So the interface would specify:
object myValue
{
get;
set;
}
and the impleme... more >>
Automating Backup using C#
Posted by Mr. Bean at 6/19/2006 9:23:55 PM
Hello, I'm developing a small web application that will in some stage
add backup tasks to the task scheduler. The application is responsible
for backing up files. I want to use ntbackup for this but i dont know
how to launch the utility from C#/ asp.net and pass parameters.. Any
ideas?
... more >>
How to create a single instance child of MDI parent
Posted by dnzone at 6/19/2006 8:38:01 PM
I have a MDI Form with a menu and when i click on the menu it will open the
MDI child but if i click it multiple time it will create multiple instance fo
the child. What i want is no matter how many time i click the menu i just one
one instance on the child. Can anybody help me solve this prob... more >>
How to parse a directory of logfiles
Posted by Xagon at 6/19/2006 8:16:03 PM
Hi,
I'm a newbie to C#, so forgive me if this is a dumb question.
What I want to do is parse a directory of IRC logfiles and dump all the .jpg
and .gif links to a text file. If I could get a single filename, I could
load it into a richedit control and do the parsing there but
Directory.G... more >>
Why is TCP SOAP more efficient than Http SOAP?
Posted by Reshma Prabhu at 6/19/2006 7:31:32 PM
Hi All.
In Remoting, There are 4 combinations possible.
HTTP -SOAP
HTTP - Binary
TCP - SOAP
TCP - Binary.
The above combinations are in increasing order of
interoperability and in decreasing order of efficiency. Can ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Databound combobox, new and selected value confusion.
Posted by shumaker NO[at]SPAM cs.fsu.edu at 6/19/2006 6:14:34 PM
I have a combobox that is very much like the one found in the RSS
project here:
http://msdn.microsoft.com/vstudio/express/visualCSharp/learning/
My projectNameComboBox basically is filled with a list of values from a
table, and as the user selects values, a datagrid displays related
records f... more >>
Organisation of namespaces by project
Posted by Mr Flibble at 6/19/2006 5:56:53 PM
If you have the namespaces
foo.bar.x
foo.bar.y
foo.bar.z
You could put these all in one project called foo.bar or you could
create a project for each. I've just realised that I have quite a few
project files in my solution and I was wondering if this is normal?
Especially since they're a... more >>
Creating Cyrstal Report at Runtime With Data Objects
Posted by Tyranno.Lex NO[at]SPAM gmail.com at 6/19/2006 5:20:36 PM
I am using Visual Studio .NET 2003 and have successfully deployed a
commercial web application written in C# and ASP.NET. I am now wanting
to add reporting using Crystal Reports and am having a devil of a time
doing this.
The problem is that my application uses an encapsulated data tier for
... more >>
Windows form's refresh method does notwork
Posted by AJang at 6/19/2006 5:13:02 PM
My windows form "Form1" has one Button "button1" and one TextBox "textBox1".
When I click button1, it do a job for each file in a directory. The job
include some platform invoke call. Before processing a file, I set
textBox1's Text property as filename of the file processed, and call
this->r... more >>
C# training products
Posted by Wenlei Fang at 6/19/2006 5:12:34 PM
Hi All,
Please recommend C# training products such as CD or DVD?
Thanks,
Wenlei
... more >>
Eval!!!
Posted by Vai2000 at 6/19/2006 4:47:21 PM
<%# DataBinder.Eval(Container.DataItem, "Tables[1].DefaultView[0].sum") %>
Throwing error!!! my DataSet has 2 tables inside it as I have used aggregate
function SUM for a select
TIA
... more >>
log4net. Where to put BasicConfigurator.Configure() when your code spans multiple projects
Posted by Mr Flibble at 6/19/2006 4:26:24 PM
Hi all,
I've decided to use log4net for my logging/tracing.
In the example on the site it shows using main() to setup the root
logger and then using the LogManager within your classes to create more
loggers (subloggers). This is nice since I can use just one
configuration file to control t... more >>
Using reflection to get the type of a class from a string contaning the name of the class
Posted by Allan Ebdrup at 6/19/2006 3:25:24 PM
How do I get hold of the type when I have a string that represents the type.
For example I have the string "OFiR.Recruitment.Department"
And I want to get the type called "OFiR.Recruitment.Department"
From what I've found on the web I could get the assembly:
reflection.Assembly = reflection.Asse... more >>
connection dialog to ADO
Posted by paolol at 6/19/2006 3:23:38 PM
Hi,can any one explain me how to show the ado connection dialog at run
time ?
Thanks,
paolol... more >>
Why is an uninitialised string not empty?
Posted by Dylan Parry at 6/19/2006 3:10:57 PM
Hi folks,
I came across something strange a few moments ago when testing some
strings.
In my application a particular object has a name and a title, and is
displayed on a webpage thusly:
Object name - title
But the " - title" bit is only displayed, obviously, if it is
appropriate, i... more >>
Namespace elements cannot be explicitly declared as private, protected, or protected internal
Posted by newbie120 NO[at]SPAM gmail.com at 6/19/2006 2:44:37 PM
Hi all
maybe its just been a long day, but i have a question about call access
modifiers in C#. Consider the following code.
namespace Application
{
private class Class1
{
int i;
}
}
When I try to compile this i get the following error:
"Namespace elements cannot... more >>
Using System.Exception.Data ??
Posted by newscorrespondent NO[at]SPAM charter.net at 6/19/2006 2:02:05 PM
A System.Exception has a Data property that I would like to add data to
before I call my standard exception handler. When in a routine that uses SQL
server I would like to add the
System.Data.SqlClient.SqlConnectionSQLConnection,
System.Data.SqlClient.SqlCommand and System.Data.SqlClient.SqlDa... more >>
Winzip file want extract
Posted by Dave at 6/19/2006 1:41:01 PM
I have a program that unzips a file and processes the extracted file. This
works fine on my local machine but when I run it on a Win 2003 server I
receive the error,
"Windows has blocked the file c:\program\file from being extracted.
Would you like to continue trying to extract files, skip... more >>
DataGridView DataTable(DataSet) and Thread safety
Posted by George at 6/19/2006 1:41:01 PM
Hi,
I have a DataGridView, bounded to a DataTable which is populated/updated by
a OleDbDataAdapter (with OleDbConnection) to an Access Database. (Sounds
familiar to some of you ... I have posted a number of related questions
already.)
I want to have a worker thread starting to consume ... more >>
Windows Service Question
Posted by Tom at 6/19/2006 1:39:02 PM
Using multiple System.Timers.Timer objects in a Windows Service for
performing multi-thread activities in a periodic fashion. Timers are
AutoReset=false, to only have a single timer execution thread running at any
given moment.
Typically, timers will have an interval of 5 to 15 minutes. C... more >>
User Name and Password in Config file
Posted by probashi at 6/19/2006 1:28:14 PM
I need to store username and password in my windows application
app.config file, from my application I am communicating to an external
system (CICS).
I believe, one of my options is to encrypt this in config file and
decrypt this inside my application using SymmetricAlgorithm
(System.Secur... more >>
Reflection Issues
Posted by Jason at 6/19/2006 12:29:15 PM
Hello,
I"m trying to invoke a method using reflection on a DLL that is already
within a project. However, I"m having a few problems and didn't know if
anyone has any bright ideas. Please note, I've had lots of success with
Reflection in the past, so I'm familiar with Reflection a little bit... more >>
open pdf
Posted by RR at 6/19/2006 11:53:01 AM
Is there a simple way open a pdf file? I'd like to pass in the pdf name and
it opens adobe reader with that pdf file. This is in a windows application.
Thanks! ... more >>
Windows uptime
Posted by Dylan Parry at 6/19/2006 11:37:00 AM
Hi,
I'm looking for a way to calculate the amount of time that Windows has
been running since the last boot. Ideally I'd like to be able to create
a DateTime object containing this value so that I can format it however
I like.
I've so far found a program called "uptime.exe" which is supplie... more >>
Using Resource Images
Posted by poojo hackma at 6/19/2006 10:54:26 AM
In my Project, I have added a couple hundred images using "drag-n-drop" to
the Properties.Resources section. All of these images were in the "images"
folder of my Project on my computer, and the Solution Explorer displays all
of the images in an "images" folder that it created after I dropped... more >>
DataGridView Button Columns not triggering CellClick Event
Posted by RSH at 6/19/2006 10:21:46 AM
Hi,
I have a very basic Datagridview that I have setup from code. I added a
buttonColumn from code and setup a CellClick handler. When i click the
buttons nothing happens. I assume I have to wire up the buttons but I can't
find any examples on this. In addition the New Row contains butt... more >>
Closing socket during async Receive
Posted by Dinsdale at 6/19/2006 9:56:57 AM
I am trying to write a Tcp "Server" that opens a class that wraps a tcp
socket when a new connection is made (Listener.AcceptSocket()).
Everything is going swimmingly except when I try to close the socket
during a read and I get the following error:
<error_msg>
An unhandled exception of type ... more >>
select downloaded file extention
Posted by ghighi at 6/19/2006 9:51:29 AM
Hello, Il a downloading a file from a download.aspx page with that
code:
-----------------------------------------------------------------------------------------
string fileName = Request.Params["file"];
string fileExtension=fileName.Substring(fileName.Length-3);
string filePath = Path.Combi... more >>
Schema problem - sqlmembershipprovider created on MSSQL2005 then moved to 2000
Posted by daz_oldham at 6/19/2006 9:22:38 AM
Hi All
Bit of an odd one - very basically I created an app using the
SqlMembershipProvider in VS.NET 2005, and I did it on a MS SQL 2005
server.
However, I then find out that for other reasons, I cannot use MS SQL
2005 on the live database, so I transferred my database to my SQL 2000
box.
... more >>
Find all SqlCommands added to form
Posted by Nawoct at 6/19/2006 9:01:33 AM
Hi,
I am writing some debugging code for my company's web based C# system.
I am trapping errors and send emails to the dev team. What I would like
to do is to find each SqlCommand that is 'on' the particular page and
cycle through its params and get the values for each.
So if I have a handl... more >>
Availabilty of .NET framework
Posted by Curious at 6/19/2006 8:58:37 AM
Hi,
I wrote a small application that I am to distribute to my friends for
using it. Before executing the application, I require to check if they
have the .NET framework installed on their PC.
What could command, or what should I tell them to check before trying
to use the application.
... more >>
How do I use XmlReader on an XmlDocument passed as a parameter
Posted by Thirsty Traveler at 6/19/2006 8:40:17 AM
All of the XmlReader examples assume that the XmlDocument is being read from
a file. However, I would like to use it with an XmlDocument passed as a
method parameter, but am not sure how.
Any suggestions?
... more >>
Execute Arbitrary Math Formulas
Posted by rob at 6/19/2006 8:38:45 AM
I have the following scenario. A user requests some math calculations
from a server. The data and a library of basic formulas reside on the
server. Now the user should be able to create more complex formulas
based on the basic built in formulas as well as other complex formulas
that the user cre... more >>
2 threading questions
Posted by djc at 6/19/2006 8:07:58 AM
- kind of new to c# and very new to multithreading -
1) are all objects (value and reference type variables and objects/classes)
safe to *read* from multiple threads? I know if something is not marked as
thread safe you have to use one of the synchronization features to
coordinate *writes* ... more >>
"Show Desktop" event
Posted by 12jumper NO[at]SPAM wp.pl at 6/19/2006 6:46:22 AM
Does anybody know, what message is being sent to the window(s) when one
clicks "Show Desktop" button (the one on windows taskbar ;) )? I'd like
to capture such a message to set some variables.
Any help will be greatly appreciated.
... more >>
Application.Exit(); does not end app.
Posted by JIM.H. at 6/19/2006 5:35:02 AM
Here is the code I am having problem:
[STAThread()]
static void Main(string[] args)
{
bool isPar = false;
if ((args.Length == 1)) {
if ((args(0).ToUpper() == "MYPAR")) {
isPar = true;
}
}
if (isPar == true) {
myApp myForm = new myApp();
myForm.AppStart... more >>
Help regarding localization.
Posted by archana at 6/19/2006 4:56:39 AM
Hi all,
I am having confusion regarding localization in .net.
I have one form on which i have some labels and button. After designing
that form what i did is set localization property of form to true and i
set language as french.
But still it is not changing caption of controls which are ... more >>
Problems executing external application (.exe) using windows service
Posted by Jay at 6/19/2006 4:51:26 AM
hi
i am jay from bangalore
i have one problem ,can u please help me out.
i have one windows application and one windows service.
from windows application i have to call one process "gpg" to encrypt
my text file so i use
system.Diagnostics.process class to make new process.
my code is like... more >>
Self-aware class
Posted by Yoda at 6/19/2006 3:23:17 AM
Hello all,
Is it possible to implement a class that is aware of the calls other
classes make to its methods without putting the logic inside the
methods? I mean, if I want to make a log of the calls to methods in
classes I have to put inside all the methods a line like
Log.write('call to meth... more >>
File-System Access on remote computer over IP address
Posted by schaf NO[at]SPAM 2wire.ch at 6/19/2006 12:36:29 AM
Hi Ng !
I'm a little confused because of my application.
I need to access a file in the path C:\Temp\test.txt on a computer in
the same network. Now I just know the IP address of this PC. Is it
possible to access the file with just using the IP address ?
Thanks
Marcel Hug
... more >>
How to implement My Editor control ?
Posted by cok at 6/19/2006 12:00:00 AM
Hi, All
I am working on a project ,It need a syntax-color, line-number... JScript
editor,
I cann't found a free one on GOOGLE, So I want to implement myself, I need
some tips
about implement editor control, Can anyone give me some advice?
thanks
--
_/_/_/_/_/_/_/_/_/_/_/_/_/_/... more >>
Encoding.ASCII.GetString question
Posted by cok at 6/19/2006 12:00:00 AM
Hi, All
I have a question about Encoding.ASCII.GetString.
I want convert a byte array to a string, I use
Encoding.ASCII.GetString(byteArray)
(byteArray is something like ['A', 'B', 'C', 0,0,0,0,...])
but the retult is a long string contain string("ABC") and many '0',
How can I only ... more >>
Virtual ftp drive
Posted by Maury at 6/19/2006 12:00:00 AM
Hello,
I would like to create a little csharp program
similar to (but simpler)
http://www.southrivertech.com/products/webdrive/index.html
I would like to create a new drive letter and monitoring
traffic to and from this virtual drive so I can
redirect to/from an ftp folder.
Some hint?
... more >>
implicit called base() or this()
Posted by Ryan Liu at 6/19/2006 12:00:00 AM
Hi,
When I extend a class, for the new class's parameter-less constructor, is
the :base() called implicitly?
And for overloaded constructor, is :this(), and in turn :base() always
implicitly called?
Thanks!
Ryan
... more >>
Existance of networkstream
Posted by PiotrKolodziej at 6/19/2006 12:00:00 AM
Hi
I have a simple question. Here is the code related to my question:
while (true)
{
if (tcpListenerServer.Pending() && !this.Disposing)
{
TcpClient tcpClient =
tcpListenerServer.AcceptTcpClient... more >>
Integrate into Outlook
Posted by Alan at 6/19/2006 12:00:00 AM
I have written an application would like to make the main form/application
appears on the right pane of MS Outloon when the Outlook starts up.
Any idea ?
... more >>
|