all groups > c# > november 2007 > threads for tuesday november 13
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
property subclass
Posted by rb at 11/13/2007 11:34:02 PM
Hi,
I extended one of the standard controls by adding a new property, which is
also a class itself. I got everything going nicely in PropertyGrid except
for 2 things:
1. As soon as I drop this control on a form, the subclass-property doesn't
get instantiated as expected. For example, the... more >>
Type conversion
Posted by chris fellows at 11/13/2007 8:28:53 PM
I'm using a third party .NET 2 DLL from VB.NET and I'm am setting a property
of type 'int'. However, if I set a value larger than a 'short' (32k) then
reading the property back returns a negative number. Can someone tell me
what is likely to be happening within the property procedure that woul... more >>
DAL and Execute AS USER = 'myuser'
Posted by Avi at 11/13/2007 6:55:57 PM
Hi all,
I'm using DAL auto generated code. Is it possible for me to have the same
connection string for all my transactions but to execute the command
"Execute AS USER = 'myuser'" (SQL Server 2005) before each execution. Where
I control the name of the user.
Thanks,
Avi
... more >>
NT Authentication not getting passed to business objects
Posted by admlangford@gmail.com at 11/13/2007 5:48:32 PM
Hello, we have an ASP.NET website which uses NT authentication to
authenticate against an AD server.
We then have a set of business objects which are used to store /
retrieve information into database tables.
The business objects retrieve the connection string from the
web.config and use In... more >>
generic interface conversion question
Posted by Dave Weeden at 11/13/2007 5:22:00 PM
Hi all,
I'm having trouble with a project that I've distilled down to the following
code. Unfortunately it won't compile and gives the following
error (caused by the call to GetHorses() in HorseFarm's GetAnimals() method):
Cannot implicitly convert type 'MyCollection<Horse>' to
'... more >>
Abstract class variables question
Posted by tshad at 11/13/2007 4:46:12 PM
Using VS 2003, I am trying to take a class that I created to create new
variable types to handle nulls and track changes to standard variable types.
This is for use with database variables. This tells me if a variable has
changed, give me the original and current value, and whether the curre... more >>
adding info to an exception
Posted by Jeff at 11/13/2007 4:17:43 PM
hey
..NET 2.0
I'm wondering if tit's possible to add some info to an exception. lets say I
want to add "helloworld" to an exception so where it's caught can check for
this "helloword" text...
The reason I ask is that I'm programming a n-tier application and want
database errors to be ... more >>
Dataset, XML, T-SQL
Posted by Franck at 11/13/2007 3:42:10 PM
Ok here's my question. I have a program which can run both online or
offline.
Online work on a Webservice getting data from SQL2000. When the person
want go offline he have to be online first and few tables are being
saved locally in XML (non sensitive data of course). In offline mode
the progr... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Is there a common dialogue to find a folder?
Posted by moondaddy at 11/13/2007 3:21:25 PM
Using c# 2.0 in a winforms app, is there a common dialog I can use to allow
users to select a directory? By selecting a folder, the user will be
identifying the location a group of files will be saved to. The dialogue
will return a string path that I will use for this.
Please advise.
T... more >>
EnterpriseLibrary Strong-Named Assemblies
Posted by sam01m at 11/13/2007 3:11:00 PM
I give up... I've wasted the better part of today trying to find a way to
compile Enterprise Library 3.1 assemblies using a key and I simply can't
aquire all the resources I need to make it happen.
Does anyone have a pre-compiled version of the Enterprise Library assemblies
(strong-named) ... more >>
C# Convertee - Help with IF statement syntax
Posted by TisMe at 11/13/2007 2:42:38 PM
Hi All,
I have the following if statement:
if ((e.Row.RowType = DataControlRowType.DataRow) &&
(e.Row.Cells[1].Text.ToLower() = "jake"))
{
e.Row.Cells[1].Text += "ALERT!!!";
}
I am getting the following compilation error on the first line shown
above:
CS0131: The left-hand side of an ... more >>
LINQ Help
Posted by Satish at 11/13/2007 2:21:04 PM
Hi
I an newbie to LINQ.
I have a dataset with one table employee which has a self referencing
foreign key manger id. I want to write a query to get all the employees
under a particular manager. I tried the following query
var results = from e in emp.employee
where... more >>
About BeginInvoke/ThreadPool/Threading
Posted by FP at 11/13/2007 2:20:59 PM
Hi,
i'm currently developing a class to communicate with a serial device,using
the SerialPort component.
Basically,the main application will interact with this class through its
method "Call",the class itself will handle all the details of a call (AT
commands included).
My problem is that i do... more >>
global const?
Posted by Steve at 11/13/2007 2:05:59 PM
Hi All,
I'm new to C# so bear with me. I have a public string const that I
need to be visible within any class within my namespace so I'll have
one place to maintain the string value and have changes affect all
classes.
What is the preferred way to do this?
Thanks,
Steve... more >>
asp menu control inside a gridview control
Posted by eps at 11/13/2007 2:05:20 PM
Has anyone have any experience of doing this ?
I want a small menu on each row with a few options, I have tried it and
it seems to work great at first but after clicking on a menu item and
handling that event you get some weird display artifacts, when you hover
your mouse over them all the ... more >>
Knowledge base - how to?
Posted by nano2k at 11/13/2007 12:54:40 PM
Hi
It's maybe offtopic, but do you guys have an ideea of how to develop
an knowledge base for troubleshooting an application?
Picture this. After deploying an application to multiple locations, we
receive many requests for troubleshooting the application. Even if the
application works fine, t... more >>
CMS asp.net
Posted by oulkabirabd at 11/13/2007 12:03:45 PM
Bonjour,
j'ai besoin de votre aides j'ai besoin d'un CMS pour la creation des
sites webs dynamique e- commerce avec ASP.NET (creation des produits
des familles categories ... et ventes) ou des sites exemplaires sur
les quels il faut bas=E9=E9
Merci
... more >>
Adding a custom color in color dialog box
Posted by Zach at 11/13/2007 11:31:42 AM
Adding a custom color in color dialog box:
How do you do this? I did look through MSDN but could not find the answer.
Zach.... more >>
Sorry for off-topic, but anybody care that Team System can't do time tracking?
Posted by Ronald S. Cook at 11/13/2007 11:22:53 AM
Sorry for the off-topic...
It doesn't seems as though Team Foundation Server handles things like
estimating 10 hours for a task, stating that 2 hours were done yesterday and
5 hours done today... i.e. time estimating/tracking.
Anybodsy know if TFS 2008 going to provide this?
My boss is ... more >>
Image Capture Control for Windows Mobile using DirectShow
Posted by ink at 11/13/2007 11:19:42 AM
Hi All,
I am trying to build an image capture user control using DirectShow to be
used in an existing C# application.
It needs to have a view finder/ preview window and be able to take still
images.
My problem is that I am a C# developer and I understand very little C++. It
se... more >>
Socket connect/disconnect, ReuseAddress, and TIME_WAIT
Posted by Rob Gravereaux at 11/13/2007 10:29:30 AM
Visual Studio 2005, .Net 2.0, Vista, XP.
I have a client Tcp socket that is bound to a particular port and connecting
to a remote host. In order to allow reconnects I'm setting the ReuseAddress
socket option. This is somewhat dubious I know, but...
With the ReuseAddress option, a bind to a... more >>
LINQ
Posted by Jacek Jurkowski at 11/13/2007 10:29:24 AM
I must to work with SQL Server database that
allow collumns to be null. F.e. column NREWID
in table K_OSOBY is Decimal 7 and accepts
NULLs. When creating DLINQ object of table
K_OSOBY vs net creates property NREWID
as Nullable<Decimal>. Is there any way to "tell"
vs net that it should create N... more >>
How to display a button next to username/password form field in IE/Firefox?
Posted by martin lanny at 11/13/2007 10:24:06 AM
Is there any way to monitor open IE/Firefox windows/tabs from
VB.NET/CSHARP and display a small button next to all username/password
form fields?
Same thing as Skype does with their software add-on, which turns phone
numbers on websites into buttons which you can click.
I would apprecia... more >>
LINQ to SQL - question on select...
Posted by TBone7 at 11/13/2007 10:09:00 AM
Is it possible to call another method out of the select statement?
In this example I am trying to call GetItem() from within the first select
statement.
But I get the following error"
"Method 'GetItem(MyDataContext, System.Guid, Boolean)' has no supported
translation to SQL."
public static... more >>
Treeview Aftercheck
Posted by pbaugh@recoilsoft.com at 11/13/2007 8:47:42 AM
Hi Folks,
I've got a treeview control (trvRecipes) and am attempting to detect
the 'checking' of a nodes checkbox in order to check all the child
nodes. Ive found some sample code to do precisely this on MSDN, but
for some reason the event never seems to get raised....
private void tr... more >>
Force re-format on databound controls
Posted by Smith.BarryP@gmail.com at 11/13/2007 7:22:49 AM
I have a program that uses displays data with scientific units. The
user can select which particular unit they wish to see the values in
(Kelvin, Celsius, etc...). I have handled this by implementing a
conversion in the Format and Parse events. However, if the user
changes the configuration opti... more >>
DataGridView and sorting
Posted by ReneMarxis at 11/13/2007 7:20:02 AM
Hello
i have one problem with sorting in an unbound DataGridView. I set
sorting to automatic but i get errors when having DBNull values in the
column that gets sort ("Object must be of type string").
I solved that problem for one grid/column by fetching the _SortCompare
event and doing the so... more >>
Exception when Form object is accessed after being disposed
Posted by aine_canby@yahoo.com at 11/13/2007 7:18:18 AM
Hi,
The problem is that the line -
this.Invoke(new MyDelegate(Function), args); // this = MainForm
is being called after the line -
terminatePopulate = true;
therefore I get an exception which states that MainForm has been
disposed when this.Invoke is called...
Is there a way to c... more >>
ArgumentOutOfRangeException
Posted by Weste at 11/13/2007 4:43:01 AM
I am throwing the ArgumentOutOfRangeException in my code as shown below
throw new ArgumentOutOfRangeException("value", "Value must be > 0");
my catch block is below
catch(ArgumentOutOfRangeException exception)
{
MessageBox.Show(exception.Message,"Input Error",
MessageBoxButton... more >>
Looking for simple code analysis tool
Posted by beantaxi@gmail.com at 11/13/2007 2:31:05 AM
Hello all,
I'm looking for a very simple code analysis tool. I have a large
codebase to analyze, and all I really need to do is to find all uses
of all methods in a few interfaces.
Many tools (e.g. Resharper) obviously do this internally, but I can't
seem to find any that expose this simple... more >>
Catching unhandled exception from within a thread
Posted by aine_canby@yahoo.com at 11/13/2007 1:27:47 AM
Hi,
This is my Program class in my Application -
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
... more >>
mathematical descriptions of algorithms?
Posted by mk at 11/13/2007 1:23:00 AM
First I'd like to say that this is not strictly a techie question, but I
couldn't think of a better place to ask. I have been asked to write a report
on the analysis of a piece of software. Apparently I will need to describe
the system as an algorithm, i.e. using pseudo-code and mathematical... more >>
Page reference in custom IExceptionHandler
Posted by Alhambra Eidos Kiquenet at 11/13/2007 1:21:00 AM
Hi misters,
I have an application web (asp.net) and I want define custom Handler for
exceptionhandling (Enterprise Library)
My custom class..
[ConfigurationElementType(typeof(CustomHandlerData))]
public class GestorExcepcionesIU : IExceptionHandler
I want to do like this:
E... more >>
|