all groups > c# > october 2006 > threads for tuesday october 10
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
Why can't I add these modules?
Posted by Henry at 10/10/2006 10:41:43 PM
I was trying to follow instructions to create a multifile assembly. My
project had two simple classes, MathLib and StringLib with a single method
each.
The instructions told me to compile each clase into modules using the
pattern
csc /t:module MathLib.cs
and
csc /t:module StringLib.cs
... more >>
Create an event
Posted by Dan Aldean at 10/10/2006 10:33:11 PM
Hi,
I create a WEB application and I use a textbox, server control.
It does not have an OnClick event. Is it possible to create one?
Thanks
... more >>
ADO SQLConnection works only in Windows, but not in WEB
Posted by Dan Aldean at 10/10/2006 10:30:51 PM
Hi,
I use the same connection string in a Windows and then in a WEB application
to connect to SQL Server.
When I try it in the WEB it doesn't work,
private SqlConnection conTest = new SqlConnection(@"data
source=YOUR-136A4423DC\localhost;initial catalog=TestDB;integrated
security=SSPI... more >>
Throwing exception from private methods
Posted by Sek at 10/10/2006 8:52:18 PM
Hi Folks!
I was pondering over a code and noticed that exception handlers were
present in the private, protected as well as public methods. And,
ofcourse, public methods were calling priv/prot methods internally.
My thought was, the exception is being rethrown and propagated by the
non-publ... more >>
Adding Stylesheet to XmlDocument
Posted by Martin_Pöpping at 10/10/2006 6:44:34 PM
Hello,
is there a way to add a stylhesheet like:
<?xml-stylesheet type="text/css" href="styles.css" ?>
to an XmlDocument?
Regards,
Martin... more >>
Windows Service, MS SQL 2005 and late binding
Posted by Arjan at 10/10/2006 5:01:56 PM
Hello,
I am trying to develop a Windows Service that is able to connect to a MS SQL
Server 2005 database through late binding. However I am not able to find any
information about this. I hope that someone around here can help me with
this or at least point me to something useful. I am using... more >>
Easy Question using switch / case
Posted by graeme g at 10/10/2006 4:44:08 PM
hi
how would i write the following in switch case statement:
if (x < 40)
y = 0;
else if (x < 65)
y = 1;
else if (x < 80)
y = 2;
else if (x < 90)
y = 3;
else if (x < 96)
y = 4;
else
y = 5;
is it easy or not possible?
thanks
g
... more >>
Asynchronous Socket Problem with TCPIP
Posted by DaTurk at 10/10/2006 3:41:01 PM
Hi,
Lets see, for arguements sake lets just say that I have a server,
which site waiting to receive connections, it then has an array of
sockets that are connected to it.
It's receiving all of this asynchronously. Now, this is my problem, I
have a seperate application that connects to the s... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How to use a huge memory in C#?
Posted by fAnSKyer/C# newbie at 10/10/2006 1:33:20 PM
My system has 4GB memory and My program in C# is really memory
consuming. and I noticed that when the memory I used is more than 2GB I
will get an exception.
How to solve this? thanks a lot
... more >>
CPU usage amd memory usage
Posted by Sirisha at 10/10/2006 1:26:02 PM
I am using the following code to get the CPU usage
PerformanceCounter myCounter;
myCounter = new PerformanceCounter();
myCounter.CategoryName = "Processor";
myCounter.CounterName = "% Processor Time";
myCounter.InstanceName = "_Total";
for(int i=0; i < 20; i++)
myCounter.Next... more >>
OOP and instanstiation question
Posted by VMI at 10/10/2006 12:33:01 PM
I have a class Person that includes several properties (i.e. Name, ID) and a
method storeData() that stores these same values to a database.
What's the correct method of instantiating this class when another method in
another class is storing data to the properties and calling storeData()? I'm ... more >>
Need advice with huge TreeView performance
Posted by tman at 10/10/2006 12:31:17 PM
I am generating a very large tree list in my program and while it's
performance is great once loaded it takes a really long time to load.
I create a root TreeNode "offline" and go through the process of
creating building up the tree from there. Only when I am done do I go
over to the actual Tr... more >>
access modifiers applied to property
Posted by Roy at 10/10/2006 12:26:02 PM
If I define a property as
int age
{
get;
set;
}
Is there a way to add different access modifiers to the accessors when
implement?... more >>
creating a base exception for a windows application
Posted by CharlieC at 10/10/2006 12:20:56 PM
I am writing a windows C# application, and I want to ensure that all
exceptions, handled or otherwise, are logged to the local event log.
I can do this for the handled exceptions, but I am not sure how to
override (?) the system exception such that un-handled exceptions are
logged.
I know that ... more >>
Deserializing - Can this be done?
Posted by SteveT at 10/10/2006 12:15:02 PM
I want to be able to deserialize data contained within a XML file to a data
structure. This I know how to do. However, what I want to be able to do is
the following:
1. Serialize multiple "C# classes" into a single XML file. One at a time.
2. Deserialize each "C# class" from the XML file. ... more >>
Using Generics with System.DirectoryServices
Posted by Mark Rae at 10/10/2006 12:02:03 PM
Hi,
I'm in the process of updating an ASP.NET v1.1 web app to v2. The app uses
ActiveDirectory a great deal, and I'm trying to use the new
System.Collections.Generic namespace where possible, having been advised by
several luminaries that that is a "good thing to do"... :-)
However, I'm ... more >>
nant - what is the right way to reference?
Posted by arro239 at 10/10/2006 11:52:04 AM
i've instaled nant and nunit
but
<csc target="exe" output="bin/Simple.exe" debug="${debug}">
<references>
<include name="nunit.framework.dll" />
<include name="nunitforms.dll" />
</references>
<sources>
... more >>
WORKS IN TEST, NOT IN LIVE????
Posted by Todd Jaspers at 10/10/2006 11:11:02 AM
Hey guys,
I just wrote a web page form using C#/.NET. It works perfectly in the
"test" environment that Visual Studio 2005 sets up for you when you attempt
to run your web based application.
However, as soon as I make it live, it stops working. The ON-FORM-LOAD event
does work. Speci... more >>
Javascript to C#
Posted by DFDavis at 10/10/2006 10:39:33 AM
I have a bunch of dynamically created checkboxes that I add to the a
label in the html through my C# code. Then I also have a javascript
function that goes through and identifies which checkboxes are checked
when the user clicks on the submit button. My question now is, how
would I go about ge... more >>
Hiding Menu Items
Posted by Fred W. at 10/10/2006 10:16:53 AM
(using VS2005) I want to hide a menu item, but setting the Visible property
to False does not work! If it's initialy false and I set it to true, that
works. Any suggestions?
- Fred
... more >>
Getting WIndows Login Name From ASP.NET
Posted by Ben at 10/10/2006 10:15:37 AM
Hi All,
I would like to get the windows logon name for a .net intranet app.
I have tried
Page.User.Identity.Name(),
Request.ServerVariables["LOGON_USER"].ToString(),
Request.ServerVariables["REMOTE_USER"].ToString();
They have all returned null so far.
I have windows authentication en... more >>
entering hex format into datagrid backed by int
Posted by sklett at 10/10/2006 9:17:19 AM
I have the need to enter a hex value IE: 0xffff into a datagrid column that
is backed by an int property for a custom object.
in other words, I have a class like this:
class MyEntity
{
private int _start = 0;
public int Start
{
get{ return _start; }
set{ _st... more >>
checking for numbers in C#.net
Posted by benscribe NO[at]SPAM hotmail.com at 10/10/2006 8:48:53 AM
Hello,
Is there a command in C# which will allow me to check whether or not a
variable is a number? Something similar to the VB isNumeric command?
Thanks,
Ben
... more >>
Help. MySQL OleDbDataAdapter Error Unrepresentable DateTiime
Posted by AboutJAV NO[at]SPAM gmail.com at 10/10/2006 7:28:40 AM
Hi,
I am performing a query on MySQL table which contains two DateTime
fields
Here is my code
string sqlCmd = "SELECT * FROM categories";
OleDbDataAdapter da = nwe OleDbDataAdapter(sqlCmd, this.connection);
DataTable table = new DataTable(TableName);
da.Fill(table);
return table;
... more >>
How would you make TreeView nodes turn into TextBoxes to edit?
Posted by MrNobody at 10/10/2006 6:53:03 AM
I have a TreeView and I would like to have it function so that when someone
right-clicks on a Node and chooses an option Edit under a context menu the
node changes from a read only label to a TextBox and I can edit the text.
What's a good way to accomplish this?... more >>
Default property
Posted by Toze at 10/10/2006 6:33:03 AM
How do I set a default property in C#? In VB we use the default keyword
before the property.... more >>
Security in windows forms apps
Posted by T3Logic at 10/10/2006 6:30:02 AM
I have tried multiple methods of encrypting the connection string. Everyone
has made it sound easy.
I have encrypted the connection string in the app.config file, code behind,
etc.
Basically try this test.
Create a new app and just add a connection string. Add whatever encryption
th... more >>
Place of BeginTransaction in code
Posted by Mukesh at 10/10/2006 6:09:00 AM
Hi all,
Consider this code
SqlConnection oConn = new
SqlConnection(AccountsConnectionString);
SqlCommand cmdInsert = new SqlCommand("UpdateQuery");
//Location 1:
//SqlTransaction sqlTran = oConn.BeginTransaction();
try
{
oConn.Op... more >>
How to populate a combobox with an ArrayList containing 1 dimensional array of strings?
Posted by polaris431 NO[at]SPAM gmail.com at 10/10/2006 5:34:00 AM
All the examples I've seen showing how to populate a combobox using the
DataSource property and an ArrayList show the ArrayList object
containing objects with at least two properties. I want to create an
ArrayList that contains only rows of string data and want to assign
this to the DataSource b... more >>
How to reference a reference type?
Posted by Jared at 10/10/2006 3:55:53 AM
Hi
I have two web services running in different locations. I would like to
write some code to automatically fail over to the secondary if the
primary fails.
Rather than duplicating all my code I was hoping there was a simple way
to reference different type in a generic way. Is is possible t... more >>
download a word document from server using c#.net
Posted by nalla at 10/10/2006 2:47:18 AM
iam working in a project where i need to provide a link to user such
that he can download a word Document from server (not my local pc).iam
able to do this from my localhost ,but from other pc i need to use
System.Net.WebRequest but i donot know how to use it.
code for access from localhost:
... more >>
how to add service/demean for checking software updates
Posted by salman at 10/10/2006 2:15:51 AM
hello
i want to start/install any service or demean with my software (during
installation or running software) for future updates.
how can i do this? can i include any thread or process to
check/download new updates time to time from my server? how can i add
this service/procedure
...or any o... more >>
c# definition - two questions
Posted by CCLeasing at 10/10/2006 2:09:38 AM
Assuming a starting point of no programming knowledge could you please
answer these questions for me: -
1. What is 'strong type checking'
2. What is 'array bounds checking'
3. What is meant by the term 'distributed environments' in the
following context : -
... The language is intende... more >>
Htmp parser
Posted by Le Minh at 10/10/2006 1:55:05 AM
I'm developing a information extraction from web, i'm use HTML --> DOM
tree - >> information blocks.
Do ayone suggest me about idea ? Anyone have resource about HTML Parser
(Documents, source, samples...)
Thanks
... more >>
making .NET 2.0 tracefiles readable/parsable
Posted by Robert Ludig at 10/10/2006 12:51:39 AM
I have two questions regarding parsing and reading tracefiles:
1. Is there a tool that can read logfiles that were generated by the
..NET 2.0 tracing and presents the data in a human readable form?
Preferably with some searching, sorting and filtering options?
2. How can make the trace outpu... more >>
Saving Message Object
Posted by Kannan at 10/10/2006 12:30:02 AM
Hi,
I am trying to save Inbox selected message in C:
I have used following code
string SavedMessage = "C:\\AIA\\Message\\";
string strSaveName = "Test.msg";
Outlook._Application olApp = new Outlook.ApplicationClass();
Outlook._NameSpace olNs = olApp.GetNamespace("MAPI");Outlook.MAPIFolde... more >>
finetuning .NET 2.0 tracing
Posted by bonk at 10/10/2006 12:06:07 AM
I am using .NET 2.0 tracing to log messages within my application and
app.config (<System.Diagnostics>) to configure it. I would like to be
able to configure tracing in a finer grained manner than it is
currently possibile out of the box. Especially I would like
1. the filnames where the trace... more >>
Transparency key is not working in Child Forms
Posted by atif at 10/10/2006 12:00:00 AM
Hi,
When i use Transparency key with the parent form then its ok the form
become Transparent but when i add another form to parent and sets the child
form' transparency key it does not work at all.. child form never becomes
transparent neither by transparency key nor by ChildForm.BackCo... more >>
OOT: USB Port Dongle
Posted by Gunawan at 10/10/2006 12:00:00 AM
Hi All,
I am sorry moderator that I post an OOT question.
Did you all ever use Hardware lock or Dongle to protect your software?
How efektif it is?
Thank you In Advance
Gun
... more >>
Thread blocking diagnosis
Posted by Bob at 10/10/2006 12:00:00 AM
Hi,
I have an app that has a 3rd party phone answering control (4 of )
(interfacing with dialogic 4 line card) attached to the main form.
each control raises an event when its Dialogic line detects ring tone.
I use the ring detect event handler to create a new thread which is given a
reference... more >>
Multiple Forms Hiding and closing
Posted by Bob at 10/10/2006 12:00:00 AM
Hi,
I have an app that requires 4 child forms each created on a separate thread.
Each form holds a 3rd Party Phone answering control.
The control will only answer the phone if the form has been displayed.
Instantiating the form is not enough.
The only way I have been able to display the form(s)... more >>
VS2005: How to synchronize active source file and Solution explorer View
Posted by José Joye at 10/10/2006 12:00:00 AM
Hello,
Is there a way within VS2005 to synchronize the Solution Explorer view and
the file we are currently working on.
Say I'm working on blabla.cs file which is located within the foo project.
The Solution Explorer has currently the Bar.xxx.cs file selected.
--> What is the magic key to... more >>
Process.StartInfo
Posted by Alan T at 10/10/2006 12:00:00 AM
I use
Process.StartInfo to configure the process:
Process myProcess = new Process();
myProcess.StartInfo.FileName = aProg;
myProcess.StartInfo.Arguments = aArgument;
myProcess.StartInfo.CreateNoWindow = true;
myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
myProcess... more >>
|