all groups > c# > january 2007 > threads for wednesday january 3
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
Help - Writing Web Control to Access the Local FileSystem
Posted by Nigel at 1/3/2007 11:24:44 PM
Hi,
We have a need to write a web control that access the local filesystem
and creates a set of hyperlinks based on the files contained within a
directory (this will then be used in a sharepoint web part).
Don't know a lot about this stuff, but have written an ActiveX control
that, when use... more >>
WebBrowser navigating with DocumentStream to HTML anchors
Posted by Andy Bates at 1/3/2007 10:09:09 PM
Hi -
I have a form hosting the above control. I can generate the HTML as a Stream
and set it in the control using:
this.webBrowser1.DocumentStream = myStreamOfHTML.
The problem is that there are anchor points in the document that I want to
move to either on open or later; question is ho... more >>
Get set doesn't return value that I expected
Posted by queanbeyan NO[at]SPAM hotmail.com at 1/3/2007 9:10:31 PM
Hi
I am working through some trivial examples using properties and using
'get' and 'set', but I dont seem to return the value that i expect.
this code below runs but when I click on the button I expect to have
the text that was put in the tbInput box copied to the tbOutput box.
But I only get... more >>
Variables and Try/Catch
Posted by Jake K at 1/3/2007 8:40:35 PM
How do I access variables that are set within a try/catch block? The
following code produces a use of unassigned local variable error:
string varOne;
try
{
//access database here, select, datareader, etc...
varOne = dtr["column_name"].ToString();
}
catch (Exception e)
{
//something
... more >>
use of properties - get - set
Posted by Doug at 1/3/2007 8:31:45 PM
Hi
I have been told about the following code:
private string boxLabel;
public string BoxLabel
{
get { return boxLabel;}
set {boxLabel = value;}
}
does this routine set the value of the private string to be the same as the
value input by the public string or is it the other... more >>
Monitor socket dispose
Posted by Gianmaria Iaculo - NVENTA at 1/3/2007 8:22:31 PM
Hi,
anyone knows or have a software to count the number of open sockets on a
machine? I'm developng a socket server and need to monitor the corret
dispose of unused sockets.
regards
Gianmaria
... more >>
Pause until complete?
Posted by David Veeneman at 1/3/2007 7:51:41 PM
Is there a way that I can tell .NET to wait until a particular operation is
complete before passing control to the next statement?
Here's my problem: I'm working with the MonthCalendar control. When I set
its BoldedDates property, it fires the DateChanged event, which I don't want
to fire w... more >>
Is there a way not to display the BusinessObjects logo in CRViewer
Posted by Pucca at 1/3/2007 7:02:03 PM
Hi, I'm using vs2005, .net 2.0. I have a form with Crystal Report Viewer
control in it and it's got the BO's logo icon on the upper right corner. Is
there any way to get rid of this?
--
Thanks.... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Include code in every method
Posted by Jake K at 1/3/2007 4:57:34 PM
I have about 100 methods in an application I'm developing. There will be
many, many more methods added as the application grows. I need to include a
line of code at the start of every method in the project and every method
that will be added in the future. The line of code is simply
if (... more >>
retrieve list of databases from .net
Posted by j-in-uk at 1/3/2007 4:44:00 PM
Can i get a list of sql databases by just connecting to the server
programmatically
string myConnString = "Integrated Security=SSPI;Initial
Catalog={0};Data Source=" + serverName +";";
SqlConnection cn = new SqlConnection(myConnString);
cn.Open();
SqlDataReader dr = (new SqlCommand("sp_datab... more >>
dll get's added to my cache area "automatic"
Posted by schouwla NO[at]SPAM yahoo.com at 1/3/2007 4:12:55 PM
Hi,
I am a c# newbies..
I am having some problems with my dll it sometimes get's added to my
cache even I don't want it to land there.
My assembly is added to the cache here:
C:\Documents and Settings\<USERNAME>\Local Settings\Application
Data\assembly\dl3\P1ZM0W08.2LP\GQ9AD27V.M5C\8eb9c11... more >>
Development Question Regarding Windows Services
Posted by rkausch NO[at]SPAM gmail.com at 1/3/2007 4:02:11 PM
Hello, I'm performing some research to determine the feasibility of
developing a Windows Service (see
http://en.wikipedia.org/wiki/Windows_Service for the specific
definition of "service" to which I'm referring) to perform a particular
task. I'm having some trouble determining if a service's
... more >>
Transfer or value object
Posted by Patrick Parent at 1/3/2007 3:56:37 PM
I was looking at this and I was wondering, it the value object only
contains property or does it also contains validation ?
Also If I have a relation between a Workorder and a Customer, should I
have a reference to a client or to an infoClient(value object) in the
workorder ?
Patrick
... more >>
Copy items to another combobox?
Posted by james at 1/3/2007 3:51:26 PM
Hi,
I am trying to duplicate the contents of a combobox to another.
I tried:
cmbBoxA.Items.AddRange(cmbBoxB.Items);
but it says it can't convert a combobox objectcollection[] to object[].
I tried putting (Object[]) in front of the addrange parameter but get a
similar error.
Any idea? I... more >>
article
Posted by sloan at 1/3/2007 3:28:50 PM
http://www.eggheadcafe.com/articles/20041204.asp
check that article.
don't concentrate on the msmq stuff, but rather the slick way peter installs
and re-starts windows services.
From: "Jianwei Sun" <jsunnewsgroup@gmail.com>
Subject: Re: dow do I publish a windows service?
Date: Wedne... more >>
UDP Multicast losing messages
Posted by DaTurk at 1/3/2007 2:41:07 PM
Hi,
I'm trying to send a large number of messages to a UDP multicast group
with which I have one client subscribed. But I'm losing mesages, and
I'm not entirely sure why. I can't seem to find the reason, the asynch
receive on the client doesn't even get called the corect number of
times, wh... more >>
Calculating distances between post codes
Posted by Paul Aspinall at 1/3/2007 2:41:00 PM
Hi
Can anyone recommend a suitable way of calculating distances between UK post
codes??
Many websites do this, and I'm wondering if there is some standard code, and
where the reference DB comes from?
Any help/advice appreciated
Thanks
... more >>
Object Lifetime.
Posted by Control Freq at 1/3/2007 1:46:02 PM
Hi,
I am still new to dotnet programming, and ASP.NET in general.
Something that has been bugging me for a while is this:
In a Web Form application, using C# in the codebehind. If I have a drop
down combobox filled with a list of stuff, like employee names etc. I
can select a persons name... more >>
32-bit .net 1.1 apps on Win2003 x64
Posted by Frank Rizzo at 1/3/2007 1:40:46 PM
I have a set of apps that require .net 1.1 framework. I've installed
them on Windows 2003 Server (x64) with the .net 2.0 (x64) framework. I
can't seem to find the x64 1.1 framework and the x86 .net 1.1 framework
refuses to install on win2003 x64. Is there such a thing as x64 1.1
framework... more >>
Windows Form App Within Another Windows Form App
Posted by hufaunder NO[at]SPAM yahoo.com at 1/3/2007 1:01:18 PM
I would like to run a windows form application (app2) within another
windows form application (app1). app2 should be displayed within a
certain area of the windows form of app1 (could be inside a panel or
similar). app1 does not need any control over app2 except for starting,
closing, hiding and... more >>
Assembly Error!!
Posted by Vai2000 at 1/3/2007 12:54:09 PM
Hi All, I have a .net 2.0 assembly which uses generic etc...If I try to add
it into my other project [vs.net 1.0] on a different machine which just has
1.0 framework installed, it throws error saying !!
"A reference to the foo.dll couldn't be added. This is not a valid assembly
or a COM Compon... more >>
Form Problem
Posted by BD at 1/3/2007 12:27:41 PM
Moving from MS Access to .Net using C# languag. Problem trying to
duplicate form with structure as follows:
1. Main form 'Work Order' displayed as textboxes
2. subform 'Customers' textboxes showing name, address, etc related
by 'CustomerID'
3. subform 'Locations' textboxes showing nam... more >>
Does C# use COM/DCOM "under the hood" ?
Posted by MrAsm at 1/3/2007 12:20:39 PM
Hi,
I'd like to know if C# object system is based on COM/DCOM, or is it a
completely new technology, developed "from scratch"?
In other words, does C# use COM "under the hood", or are C#/.NET and
COM/DCOM completely separate fields?
Thanks in advance,
MrAsm... more >>
CSLA framework
Posted by Sugandh Jain at 1/3/2007 11:59:26 AM
Hi,
anyone here using object Cloning with CSLA framework for .net framework 2.0.
I want to implement cloning in some classes derived from businessBase<> ,
and I am using csla framework.
If anyone else here is doing that, please tell me how to do that.
Regards,
Sugandh
... more >>
VSS structure .. and common assemblies
Posted by sloan at 1/3/2007 11:15:16 AM
Does anyone know what Microsofts VSS (Visual Source Safe) structure is for
something like
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\System.dll
System.dll has
System.* namespace
and
Microsoft.* namespace.
I have a simlilar situation, but I'm looking for hints on setting up the
stru... more >>
DataTable search performance
Posted by Larry Smith at 1/3/2007 10:50:37 AM
Hi there,
Can anyone comment on the performance issues of "DataTable.Select()" vs
"DataView.Find()" (or "DataView.FindRows()"). I have to conduct repeated
searches using the same index and I'm not sure which to rely on. From what
I've read, "DataTable.Select()" doesn't rely on indexes so us... more >>
reflection: problem creating new instance
Posted by bowser at 1/3/2007 10:32:18 AM
Hello, I have a problem with reflection. I posted it already a month
ago, but I had no luck with the answers...
Having two variables:
Type t;
string id;
initialized for example as t="Foo" and id="foo"
I need to make the equivalent of :
Foo foo = new Foo();
meaning, something like:
t... more >>
Reusing an 'existing' form in a new windows form project?
Posted by garyusenet NO[at]SPAM myway.com at 1/3/2007 9:06:56 AM
Dear Professionals,
I have recently been using the wonderful krypton toolkit and am trying
to use them in my small hobby application. I include this bit of info
as an aside really because i'm sure my question can be extrapolated to
the more general case, so here goes!
I have a box standard ... more >>
Form refresh - Class comunications
Posted by alessiob82 NO[at]SPAM gmail.com at 1/3/2007 8:49:28 AM
Hi,
I'm developing an application that use an OPC client. In this
application I create a class <A> to manage the OPC data (read values
from server every xxx seconds or with subscription, ecc...). In the
application form I put some label, checkbox, ecc.. to show the values
readed from the serv... more >>
dynamic buffer size
Posted by davis at 1/3/2007 6:48:42 AM
Hi, I'm writing an app in bluetooth & wi-fi. It is client/server on
both. We have defined our own network protocol that should run over
both mediums. There are packet definitions of variable length.
Inside the packet, one field indicates its length. However, I don't
know ahead of time whic... more >>
Form Problems
Posted by BD at 1/3/2007 6:15:40 AM
I have a Parent Form being used as a 'Home' form in which to access
numerous child forms. One child form shows 'Work Order' records in a a
Details Display, this form also has a tabbed interface showing
underlying records for 'Parts' and 'Labor' in datagrid views. My
Orders table reference ID n... more >>
Destroy a string
Posted by Mark C at 1/3/2007 6:11:00 AM
I know a string is immutable, but is there any trick or any other way
to destroy a string
Thanks
www.quiznetonline.com
... more >>
re-parenting a user control causes tooltips to remember original form
Posted by timnels NO[at]SPAM gmail.com at 1/3/2007 6:08:51 AM
I have an issue where I have a user control that is launched into a
floating form. At some point later, I allow the user to "unfloat" the
user control by reparenting it on a split container in another form.
Problem is if I wake a tooltip when the window is floated, and then try
the same thing w... more >>
NTLM authentication
Posted by webrod at 1/3/2007 6:06:21 AM
Dear All,
let's say I have a web service.
I would like to authenticate users who try to access it.
I am on a winnt server so I will have to use NTLM but I don't want to
use IIS settings.
Is there a way to authenticate a user using WSE 3.0 against NTLM??
All the samples I have found on th... more >>
Getting volume information
Posted by herc at 1/3/2007 5:59:48 AM
My objective is to get the "label" information for the different
volumes that are mounted. I want to display the same information as
Windows Explorer. I wrote this test code with gets me the drive
letter, but the label is always blank. Any thoughts?
DriveInfo[] drives = DriveInfo.G... more >>
stable DataGrid!
Posted by rcoco at 1/3/2007 5:38:46 AM
Hello,
I have this data grid that is meant to update data in sqlServer
which Does update very well only have one problem with it:
the user wants to update a column that is like 50th on the table,
he will scroll down get the column and when he presses edit,
the dropdownlist will come properly bu... more >>
hide application in Pocket PC
Posted by Daniel at 1/3/2007 5:29:11 AM
Hallo,
I'd like to hide application in Pocket PC. My application is written in
C# 2.0 for WM 5.0. I have some questions:
1. When it starts in takes about 5-6 seconds. The whole application
consists of 5-6 forms so it's rather small. Is it possible to speed it
up? Or is it normal time for... more >>
System.Data.DataColumn' does not contain a definition for 'Windows'
Posted by mfunkmann NO[at]SPAM yahoo.com at 1/3/2007 5:19:32 AM
Hi there!
I have a problem here: I am using System.Data.Column and the Designer
wrote follwing Code for me:
this.System = new System.Data.DataColumn();
So far great, but furthermore I was setting properties with the Design
it generated follwing Code:
this.FormBorderStyle =
System.... more >>
validate textbox
Posted by Daniel at 1/3/2007 5:16:27 AM
Hallo,
I am begginer in C#. I would like to know how to validate data in
TextBox. So exactly I have to check if the value is a correct double
value. Can you give me some advice?
Maybe a link? Should I use a regular expression? or is there a simple
method?
Regards,
Daniel
... more >>
Very Basic Form Opening Question
Posted by garyusenet NO[at]SPAM myway.com at 1/3/2007 4:55:00 AM
I have a login form, which i have made by simply modifying the standard
wizard created form from Visual C# express - when I chose a windows
application.
I have two buttons on my login form.
The first is OK, The second is cancel.
For cancel i have the event set to application.exit
I'm n... more >>
How to change default browser for VS 2005
Posted by marss at 1/3/2007 2:11:07 AM
Hi,
When I installed Visual Studio 2005 default browser in my system was
Firefox. Now Firefox runs when I start debugging project in VS. I want
to debug projects in Internet Explorer. Can I do it without
reinstalling VS 2005? Change of default system browser to IE is useless
in this case. :(
... more >>
Check for existence of server
Posted by Earl at 1/3/2007 1:12:38 AM
Is there any sort of check that can be done to see if a particular instance
of SQL Server is present? I already call a method to check for connection --
if no connection, I have the user re-enter server settings (server name and
database name). But the connection check is made by calling for ... more >>
|