all groups > c# > january 2007 > threads for tuesday january 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
Instance with Inheritance
Posted by mask.sd NO[at]SPAM gmail.com at 1/30/2007 11:50:25 PM
Can We create the instance of class with Inheritance like following :
Derivedclassname var = new Baseclassname
... more >>
Application Version
Posted by Egil at 1/30/2007 11:31:14 PM
Hi,
Is there a managed method for getfileversion ?
Egil... more >>
filesystemwatcher and determining when it is safe to work on the directory
Posted by topher at 1/30/2007 11:07:31 PM
When using filesystemwatcher to keep an eye on a directory to see if
there are any files, how will I know when it is safe to work on the
files in a directory? In other words, how will I know that no more
files are being written and that the directory is static?
-topher
... more >>
Pass DateTime parameter to LocalReport?
Posted by cpnet at 1/30/2007 10:05:25 PM
I'm able to pass string parameters with no problems to a LocalReport being
displayed by the ASP.NET ReportViewer control. However, my report also has
a DateTime parameter. LocalReport.SetParameters(..) only seems to allow me
to set string parameters. Is there a way to pass DateTime (or othe... more >>
Need to create a .NET object that will be serialized into a specific XML format
Posted by Gasnic at 1/30/2007 5:52:33 PM
Hi=20
I need to create a .NET object that will be serialized into the =
following xml structure ( I can't change the XML schema)=20
<Root>
<Record>
<Field1>data1</Field1>
<Field2>data2</Field2>
<Record>
<Record>
<Field1>data3</Field1>
<Field2>data4</Field2>
<Re... more >>
Q: ServiceController and ExecuteCommand
Posted by Martin Arvidsson, Visual Systems AB at 1/30/2007 5:38:01 PM
Hi!
I issue a ExecuteCommand, is there a way to get a response from the service
when the command has been executed?
What i want to do is to change an icon on the servicecontroller app,
depending on the command is being executed or is ready.
Regards
Martin
... more >>
ConfigurationErrorsExecption was unhandled.
Posted by hsphuah NO[at]SPAM usa.com at 1/30/2007 4:38:20 PM
Hi all,
I am new to the Microsoft .Net and hope that someone can help me on my
problem.
I have my C# program compiled but when I run it, one of the Microsoft
Enterprise Library - Jan 2006 throw an exception handle by
ConfigurationErrorsException. The error message is:
An error occurre... more >>
C# ScrollBar and Label
Posted by Jason Huang at 1/30/2007 4:16:20 PM
Hi,
In my C# windows form, I have a Label which has many words in it.
So I'm thinking using the ScrollBar so I can scroll up and down to see the
whole words.
Would someone tell me how?
Thanks for help.
Jason
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Q: "Simple" tick problem.
Posted by Martin Arvidsson, Visual Systems AB at 1/30/2007 4:13:20 PM
Hi!
I need help with a solution.
I want a System.Timers.Timer to timeout everyday at 09:00.
I store the time in a string in a config file.
When the service is executed i stop the timer and execute the work.
After execution, i want to set the timer to be executed at 09.00 again.
Any h... more >>
Creating a process owned by system not user
Posted by herbert422 at 1/30/2007 4:08:01 PM
I want to be able to launch a program (i.e. helloworld.exe), but
continue to run even after I have logged off. A more precise question
is how do a start up a process owned by the system and not the user?
... more >>
Does typeof or is work when dealing with an interface?
Posted by Jim H at 1/30/2007 3:45:40 PM
If I'm using DictionaryBase derived object lists and I iterate through them
with the IDictionary interface can I still check the object type by calling
typeof()?
btw I'm is using .NET 1.1
Thanks,
Jim
ex.
bool FindSpectialItem(string key, DictionaryBase[] MyDictionaryArray)
{
for... more >>
Efficiency of foreach vs for loop
Posted by Jim H at 1/30/2007 3:33:25 PM
When dealing with reference types, is there an efficiency advantage in using
a for loop instead of a foreach? I though I read somewhere that when using
value types a for loop was more efficient because of the boxing involved
when using foreach.
Thanks,
Jim
... more >>
Can't delete Registry.LocalMachine subkey
Posted by Peri at 1/30/2007 3:19:51 PM
I can delete Registry.LocalMachine subkey using regedit. But not using =
code:
RegistryKey eurotaxKey =3D =
Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Firm\Application\Eurotax");
eurotaxKey.DeleteSubKey("pathDat");
I am administrator and regedit shows me that 'Administrators' have full... more >>
Reasoning behind the EventHandler(object, EventArgs) signature
Posted by John B at 1/30/2007 3:00:06 PM
What is the reasoning for recommending that all events have the
signature EventHandler(object sender, EventArgs e).
Obviously I can create a custom delegate
delegate void FooHandler(string foo)
and event FooHandler FooHappened
What are the benefits of creating derived eventargs classes for e... more >>
After user enters a row of data into a DataGrid (.net 1.1), how to auto-update the actual database?
Posted by sherifffruitfly at 1/30/2007 2:54:22 PM
Hi all,
I've got a form with a datagrid defined & presented to the user at
runtime (code at the bottom.) With this, the user can happily enter
all the data she likes. After a row of data is entered in the
datagrid, and the datagrid is about to start a new row for the user,
I'd like an Upd... more >>
Self update
Posted by Jamey McElveen at 1/30/2007 2:19:12 PM
Another quick question. I have seen applications like Reflector that can
perform a self update. How can I replace the currently running executable
with another file downloaded from an update location? I have tried
disasembling Application.Restart() and writing the new file in the process
... more >>
DataGridView and ComboBoxColumn
Posted by Brian Pelton at 1/30/2007 2:13:34 PM
This is on .Net 2.0 in a WinForms application.
I have a DataGridView that is bound to a BindingSource. The
DataGridView has 3 columns. The first two are "normal" text columns and
the last is a combo box column.
Data binding is working fine for the first two columns. I am able to
edi... more >>
HELP! Select works but cannot write to the DB - SQL Express via C#
Posted by Lynn at 1/30/2007 2:10:27 PM
HELP! And thanks for any thoughts in advance. :) I am writing in C#,
using a SQLExpress database. I am able to retrieve data without a
problem, but I cannot write to the DB. I don't get any error - but the
rows don't appear in the database! It is driving me nuts. There is no
error, no nothin... more >>
HELP! Select works but cannot write to the DB - SQL Express via C#
Posted by Lynn at 1/30/2007 2:10:03 PM
HELP! And thanks for any thoughts in advance. :) I am writing in C#,
using a SQLExpress database. I am able to retrieve data without a
problem, but I cannot write to the DB. I don't get any error - but the
rows don't appear in the database! It is driving me nuts. There is no
error, no nothin... more >>
ClickOnce: How to change the codebase location in code
Posted by Jamey McElveen at 1/30/2007 1:19:55 PM
Sorry I keep posting around tha subject but I cannot get seem what I need
out of clickonce.
another thing that would hele me would be the ability to change the codebase
tag on the server in code at runtime.
lets say on the server I have the following information in my
WindowsApplication1... more >>
Inserting class collection data into Access database
Posted by obb_taurus at 1/30/2007 12:51:05 PM
Hi,
I'm working on a C# Winform application and have a number of
collection classes within my application, at present I'm using the
obedb executenonquery method and looping through my class object with
a foreach statement to insert the data into the database which is not
efficient by any ... more >>
Programatically uninstall/install a service.
Posted by UJ at 1/30/2007 12:09:27 PM
How could I have a program uninstall a service and then install a newer
version of the same service? This assumes I've already got the files in the
appropriate directory to be able to install the new version of the service.
TIA - Jeff.
... more >>
System.Net.Mail.SmtpClient_body_always_ends_with_"=EF=BB=BF"
Posted by boeroboy NO[at]SPAM gmail.com at 1/30/2007 11:59:15 AM
I have a C# .NET 2.0 service that sends Crystal Reports through email=20
with an optional message in the body. Using the HTML 4 export feature=20
of CR, I attach the htm file as MIME "text/html" to embed reports for=20
email clients. CSS in said reports like to place everything on top of=20
th... more >>
Unusual C# errors (Maybe memory corruption)
Posted by brett.estabrook NO[at]SPAM gmail.com at 1/30/2007 11:05:49 AM
I have written a multi-threaded c# windows service in .net 1.1 (Visual
Studio .net 2003). The service has several threads that poll a Sql 6.5
database on another machine. Each thread will execute a stored
procedure, and the results are used to determine if there is anything
for this particul... more >>
How can I build an app that can have Add-on built for it??
Posted by iKiLL at 1/30/2007 11:03:11 AM
Hi All,
As the subject suggests.
I am attempting to build a C# application from with in VS2005 that can have
add ons built for it to give it additional functionality.
It will be a Windows Mobile 5 application using CF2.0.
I know this might be a tall order but I was hoping s... more >>
datagridviewcomboboxcell value is not valid
Posted by Chris at 1/30/2007 10:43:01 AM
I apparently have no idea what I am doing. ;o(
I have a datagridview bound to a dataset. I want to make one of the columns
a combobox that displays a list of choices I have in another table. When the
user clicks on that combobox, it should display those choices, allow them to
chose one, the... more >>
XmlNode.SelectSingleNode() Question
Posted by Steve Harclerode at 1/30/2007 10:04:41 AM
I saw something in the Microsoft documentation for SelectNodes() that I've
never noticed before today:
-----
Return Value
The first XmlNode that matches the XPath query or a null reference (Nothing
in Visual Basic) if no matching node is found. The XmlNode should not be
expected to be con... more >>
Reflection
Posted by George at 1/30/2007 9:51:04 AM
Hello,
I am building an assembly that connects to a third party application via
http. I need create a http message that I post to the third party
application. The message is very complicated with alot of business rules
which I can define in a xml/config file. So, I will need to parse the... more >>
VB6 to VB .Net
Posted by Matt at 1/30/2007 9:46:19 AM
Hey,
I would like to know if it's easy to update an application (big) from
VB6 to VB .Net?
Is it easier to re write the application?
Is there a problem if I still keep the code in VB and add some module
in VB .Net? Compatibility, support for VB 6 by Microsoft... I would
like this applic... more >>
C# Threading Issue
Posted by PhilBray at 1/30/2007 8:58:23 AM
Hello,
I am currently having an issue with the FileSystemWatcher class for an
application I am developing. I use the FileSystemWatcher class to
identify a change in a directory (i.e. a file has been added) and once
this event is captured then I make a call to another class which
implement... more >>
parametize the "is" keyword
Posted by newcomer2k NO[at]SPAM yahoo.com at 1/30/2007 8:42:23 AM
Hi,
I understand how to use the "is" keyword straight forward.
like: if (obj is MyClass1)
However, I would like to parametize the "is"'s argument. Basically, I
would to replace MyClass1 with an argument. Here is an example:
private void foo(WhatType arg)
{
foreach (Cont... more >>
Regex repeating capture
Posted by jaylucier NO[at]SPAM gmail.com at 1/30/2007 8:29:34 AM
Howdy,
I'm trying to break an input string into multpile pieces using a
series of delimiters that start with an asterisk. Following the
asterisk is a mulitple character identifier immediately followed by a
data string of variable length. The input string may contain more than
one identifi... more >>
Passing a byte[] by ref, and here I thought I knew what was going on.
Posted by DaTurk at 1/30/2007 8:25:23 AM
If I call this method, and pass it a byte[] by ref, and initialize
another byte array, set the original equal to it, and then null the
reference, why is the original byte array not null as well? I thought
passing by reference, your passing the address in memory.
public bool DoSomething(ref... more >>
Closing Processes
Posted by Anbu at 1/30/2007 7:16:43 AM
Hi all,
I'm creating processes of a console based application. After
proc.Start() the process is not getting terminated and the thread
keeps waiting for some reponse from the process. Now I need to kill
the process if it takes more time.
How can I do this? Otherwise I need to terminate t... more >>
shared assemby
Posted by kalaivanan at 1/30/2007 6:42:39 AM
hi,
how do i compile by referring two versions of the same dll.
regards,
kalaivanan
... more >>
NewBie Question.
Posted by archana at 1/30/2007 6:02:37 AM
Hi all,
I want to develop application in which at runtime i want incorporate
tool bar of some different application into my application's tool bar.
Say suppose i have application one tool bar. Later on i developed one
new application with some new functionality. I want to add that
functi... more >>
Event handling between process.
Posted by archana at 1/30/2007 5:49:34 AM
Hi all,
I want to do inter process communication in c#.
I am having one application and one dll. What i want is load that dll
at runtime. After loading that dll i want to send one event from
application which should get trapped in dll. And only after dll has
completed that event i want m... more >>
FontStyle class
Posted by xiaomitao NO[at]SPAM gmail.com at 1/30/2007 4:27:26 AM
Hi all,
I am having this error, Font 'Aharoni' does not support style
'Regular'.
In my codes, i try to catch the exception but seems like it is not
catching it. Any idea why?
How can i set my style to no style too?
Appreciate any help
try
{
... more >>
Want to Group By Union Two Query
Posted by Jonathan Woods at 1/30/2007 3:52:15 AM
Hi there,
I have no idea why the following TSQL does not work.Any Idea? I am
using SQL 2000 Server
CREATE PROCEDURE RptDailySummary2
@FromTxDate DATETIME,
@ToTxDate DATETIME
AS
BEGIN
SELECT TxDate,TxType,CurrencyName,SavBalance
FROM
(
(
SELEC... more >>
site searching
Posted by Pradeep at 1/30/2007 3:43:27 AM
Hi All,
Can anybody provide me sample/code for web site searching(i.e HTML
pages, etc) without database. I am using ASP.NET 2.0.
Thanks,
Pradeep
... more >>
need a good idea :)
Posted by xxxx at 1/30/2007 3:20:56 AM
Hi all,
i need some help here plz :)
i'm building a small application that will dispaly a list of folders
in a listbox, but i only want to display the folder name rather than
the whole path, so i take the substring from the whole path and add it
to the listbox.
the problem is, later, when... more >>
GAC vs *.exe.config (and %path%)
Posted by per9000 at 1/30/2007 12:38:46 AM
Hi,
suppose I want to make a .NET dll and a .NET exe that needs this dll.
If I do not want to put the dll in the same folder as the exe: do I
have to use GAC or a *.exe.config file? Are there other solutions
(putting the dll in the path does not seem to work)?
Suppose I want to distribut... more >>
|