all groups > dotnet framework > july 2004
Filter by week: 1 2 3 4 5
What is better practice?
Posted by Beringer at 7/31/2004 9:10:38 PM
I'm new to the Framework and C# so I ask the following:
What is better to do when using data? Should data reside in a Dataset and
be pulled from it or should the data be placed in classes that model the
dataset and dispose of the Dataset? I suppose if changes are to be made the
Dataset would... more >>
Binding an ArrayList of custom objects to a dropdownlist
Posted by David Guthu at 7/31/2004 10:57:03 AM
How do I bind an arraylist of custom objects to a dropdownlist and set the datavaluefield and datatextfields?
Let's say I have an array of custom 'Person' objects.
public class Person
{
public string FirstName;
public string LastName;
.....
}
I want to bind an array of Person objects a... more >>
Generate MS-like looking documentation?
Posted by Andy Meca at 7/31/2004 9:33:39 AM
I wrote a component library in C#. Is there a tool that will generate
documentation for me which looks exactly like the Microsoft .NET framework
documentation?
I saw a third party component that had documentation that looked just like
it was from the .NET framework documentation - same exact ... more >>
SQL Merge replication
Posted by Sathish at 7/31/2004 7:03:01 AM
Hi,
Does anybody know how to implement SQL Merge replication using Visual Studio .NET 2003.
Thanks,
Sathish. R
... more >>
Programming a "Bitwise" property
Posted by Phil Jones at 7/30/2004 7:02:35 PM
I'm wondering how you go about programming a property that accepts a bitwise
combination of enum values.
That is, where you can specify to a property something like: Enum.Value1 Or
Enum.Value5
What I can't figure out is how you derive, from the code inside the
property, what values have bee... more >>
Problem with "Display leading zeros" Windows regional setting formating numeric values
Posted by Andrey Matveyev at 7/30/2004 6:41:39 PM
Hello everybody,
I found several problems formatting numeric values.
The first problem is that standard numeric format strings "N" or "n" doesn't
use "Display leading zeros" Windows regional settings (at the "Numbers"
tab), it always uses leading zero regardless Windows settings. I was
thinking... more >>
page load User Control
Posted by AK at 7/30/2004 3:25:01 PM
Hi,
I have a user control which I have registered in a webform.
In page_load method of user control, I am doing a response.write of some simple text.
I donot have any codebehind file for my webform. But when I load the WebForm in my browser, I see the text from response.write written out to... more >>
What are the "get_..." methods all about?
Posted by pseudobill2004 NO[at]SPAM yahoo-dot-ca.no-spam.invalid at 7/30/2004 3:03:13 PM
I'm using reflection to get all public methods for a type, and I get
all these methods starting with "get_". What's that all about? They
aren't viewable from the object browser.
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Resource Manager, Error message, {0}...
Posted by Shikari Shambu at 7/30/2004 1:05:42 PM
Hi,
I am trying to put all the error messages for an application in a
resource file so that the error messages can be reused and is consistent
across the application.
Some of the messages need contextual information like
The file '{0}' cannot be deleted from the '{1}' . Please ensure th... more >>
Dealing with Spaces in a Database Name
Posted by sdavenport NO[at]SPAM sigcom.net at 7/30/2004 9:42:00 AM
I have a third party application that has a SQL database I am trying
to work with this in my code but the database name has a space in it
so when I try the following connection string:
Dim connString As String = "server=10.0.0.1;uid=sa;pwd=;Initial
Catalog=Third Party"
I assume it is cuttin... more >>
What's the means of Remote of .Net?
Posted by lypch NO[at]SPAM citiz.net at 7/30/2004 9:25:45 AM
What's the means of Remote of .Net?
any body help!
... more >>
Reflection in a console App?
Posted by G. Dean Blake at 7/30/2004 9:09:38 AM
FileReader = New
StreamReader(System.Reflection.Assembly.GetEntryAssembly.GetManifestResource
Stream(ResourceName))
Works just fine in a Windows Application - it reads the resource file I have
in my project.
But the same thing won't work in a console application. it gets a
system.Argument... more >>
inheriting from windows.forms.datagrid
Posted by andrei at 7/30/2004 6:37:00 AM
Hi Group,
I have a class which inherits from Windows.Forms.DataGrid.
Imports System.Drawing
Imports System.Windows.Forms
Public Class MyDataGrid : Inherits System.Windows.Forms.DataGrid
....
Then, inside the class I use a DataGridTableStyle and I add columns derived
from DataGridTextB... more >>
Concept Help
Posted by scorpion53061 at 7/30/2004 4:11:31 AM
Hello,
I have been asked to write a program and allow the end user to create
custom fields in a SQL Server database in addition to the premade
fields.
I understand how to add the column, the data type and such.
My question is I need to accommodate the added forms in some sor... more >>
C# DLL in non dot net environment
Posted by Dave52 at 7/30/2004 1:25:01 AM
Is it possible to use a c# dll in an environment where the dot net framework has not been installed ?
For example will a C++ wrapper do the job?
Thanks.
DD... more >>
Reg Compilers
Posted by Antalin at 7/29/2004 11:15:01 PM
Hi,
I would like to know that wether .NET having two compilers
And explain me about .NET Framework in the detail way
Thanks & Reagrds
Antalin
... more >>
Removing a Pane from the Output Window of VS.NET
Posted by too_tawl at 7/29/2004 8:27:01 PM
From my VB.NET code, I have created a new pane in the Output Window of VS.NET, but for the life of me, I cannot determine how to remove/close/delete the pane.... more >>
Parallel Port
Posted by Nnamdi Onyeyiri at 7/29/2004 7:48:05 PM
Hi.
Is it possible to access the parallel port?
Nnamdi.
... more >>
CLS Compliant
Posted by infoNsoft at 7/29/2004 5:31:01 PM
The msdn and all other books saying that the Unsigned integer(ex: UInt32) type is not CLSCompliant. But C# and VB.NET both are taking UInt32 as CLSCompliant. The following sample code compiles with out any errors by using either C# or VB.NET:
using System;
[assembly: CLSCompliant(true)]
names... more >>
Notify property change
Posted by kulganj NO[at]SPAM yahoo.com.au at 7/29/2004 5:08:04 PM
I want to bind a datagrid to MyItemCollection that consists of MyItem
objects. Problem is I'm not sure how to notify the datagrid of
property changes in a MyItem object. Anyone have any ideas?
Thanks... more >>
FileSystemWatcher and Getting Access to a file
Posted by gregory_may at 7/29/2004 2:49:08 PM
http://msdn.microsoft.com/msdnmag/issues/01/07/vbnet/default.aspx
Hi,
I have created a batch file router using the filesystemwatcher componant. I
am facing the exact same issue as the link above. Does anyone have a more
elegant solution to this problem rather than just "trying to continu... more >>
Different access modifier for accessors in a propery
Posted by Romain TAILLANDIER at 7/29/2004 2:25:29 PM
hi group
I want to do somethng like that :
class MyClass
{
public int _a = 0;
int a
{
public get{return _a;}
protected set{_a = value;}
}
//OR
public int _b = 0;
public int b { get{return _b;} }
protected ... more >>
One more time - on delegates and garbage collection.
Posted by Daniel Billingsley at 7/29/2004 11:58:57 AM
Suppose I have a form FormA, and two objects ObjectB, and ObjectC.
ObjectC has an event SomethingChanged.
FormA has a reference to ObjectC.
FormA also instantiates an ObjectB object, passing it the ObjectC object and
one of its controls. (ObjectB stores those two references.)
ObjectB register... more >>
Hosted WinForm Control in IE with IEAK causes Work Offline? prompt
Posted by Darren Zwonitzer at 7/29/2004 11:48:36 AM
I have created a .Net winforms control (Windows Control Library Project) that I want to host in a web page. There appears to be an interaction with some IEAK settings that cause the browser, after and/or while loading the control to pop up the message stating that 'no connection to the internet is ... more >>
Invoking a command line .exe program
Posted by Simon Harvey at 7/29/2004 11:46:07 AM
Hi,
I have a simple .exe application that I need to invoke from my C#
application. I need to send it two strings and then get the result back.
Can anyone advise me on how this is done?
Also, I'm currently using a windows forms application but I would like to
use an ASP.net appliocation to... more >>
Reading a XML file
Posted by MVB at 7/29/2004 11:06:08 AM
Hi
I am writing into an XML file in one function and reading it from a diff func simultaneously.I am using datasets to perform these operations.
It works fine but I get a JIT Debug error saying that file cannot be accessed as it is used by another process.
Why would I be getting this error
Could... more >>
Is this kind of practice accepted
Posted by Alvin Bruney [MVP] at 7/29/2004 10:51:33 AM
Consider this:
Data.Biz.User user = new
Data.Biz.User(Logic.Biz.User.connectionstring,Logic.Biz.User.Lib);
//returns a datatable
DataTable dt = user.UserInfoSearch(buffer.ToString());
DataSet ds = new DataSet();
ds.Tables.Add(dt);
return ds;
can be turned into this peice of poetry
Sy... more >>
<A HREF=JavaScript:showPanel('tab3')> doesn't call the function
Posted by dwang NO[at]SPAM woodace.co.uk at 7/29/2004 10:31:56 AM
As a newbie to Java I need a bit of help.
I have the line <A HREF=JavaScript:showPanel('tab3')> in the <body> of
my pages html which when the page does not call the identified
function. I have put alert statements in various places and the
ones in the called function does not appear.
The... more >>
String formatting
Posted by Thomas at 7/29/2004 10:02:03 AM
Hi,
I would like to format the strings and align them by decimal point.
This is what I am doing and displaying them in a multiline textbox.
formatstr = "{0:###.####}";
tempStr = String.Format(formatstr, val);
This does not align them by decimal point. How... more >>
Reflection typeof
Posted by ae at 7/29/2004 12:50:47 AM
I'm trying to accomplish the below, and for some reason keep getting errors saying
Type Expected. can someone assist me?
{
Type t = new typeof(Apple);
---etc
... more >>
What is Windows Form Assembly?
Posted by lypch NO[at]SPAM citiz.net at 7/28/2004 6:39:51 PM
What is Windows Form Assembly?
How to understand this title?
any boy please help...
... more >>
databinding issue in 1.1 fwk
Posted by Dotnet Newbie at 7/28/2004 5:26:00 PM
Hi all,
I am working on .NET framework 1.1
While binding data to our master table in the database, we are using this
System.Data.Relatedview class. But the issue is, it does not appropriately
update data. The databinding is failing too.
I traced down the issue to this particular class by ma... more >>
Erase XmlNode Childs
Posted by Sergio Florez M. at 7/28/2004 4:28:09 PM
I need to erase all the childs in a XmlNode object. I see that it has a
RemoveAll() method but this erases the attributes as well and that's not
what I want. How do I do this?
--
Sergio Florez M.
Miembro activo www.AlianzaDev.net
El que persevera insiste
Medellín, Colombia
... more >>
DirectoryServices
Posted by BlackGoddess at 7/28/2004 3:31:38 PM
Hi,
With the framework 1.1, I tried to read some informations about user
accounts in ActiveDirectory.
For some accounts, the property "memberOf" is available, and for some others
not ... I didn't see any difference (except names) between the accounts ...
I tried to create a new account (with ... more >>
does a references, but unused, namesapce consume resources?
Posted by KoolistOne at 7/28/2004 3:20:11 PM
I have a template that I would like to include a namespace in but I won't be using that referenced namespace til a few months from now. In the mean time, will that referenced, but not used/called namespace consume any resources?
The template is going to be used by many people who will modify it t... more >>
CreateInstance and New Sub
Posted by Mike at 7/28/2004 12:27:30 PM
I have a DLL which I am using Assembly.Load and CreateInstance to instantiate.
Dim path As String = "myDLL"
Dim className As String = path + ".SomeClass"
Dim foo As IFoo
foo = CType(System.Reflection.Assembly.Load(path).CreateInstance(className),
IFoo)
This works, and creates an inst... more >>
URGENT HELP ADODB VbScript vs ADODB.ConnectionClass() C#
Posted by Silvia Brunet Jones at 7/28/2004 11:59:02 AM
ok this is the craziest thing every. I have a piece of code that connects to a dsn database. I have tested the connection two different ways
************************ONE
using ADODB;
ADODB.Connection dbSupra = new ADODB.ConnectionClass();
dbSupra.Open("DSN=112","urs","pss",0);
****************... more >>
.NET Framework 1.1 Service Pack 1 Tech Preview
Posted by DraguVaso at 7/28/2004 10:49:05 AM
Hi,
There is currently a.NET Framework 1.1 Service Pack 1 Tech Preview available
at microsoft:
http://www.microsoft.com/downloads/details.aspx?FamilyID=12721880-CB9F-4481-9610-987DE96532E7&displaylang=en
I don't really get it I guess, but this looks not to be a 'real' Service
Pack? Is it so... more >>
Optimizing using the IncrementalBuild property
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 7/28/2004 10:27:13 AM
Greetings,
I have an enterprise-wide ASP.NET app that I'm trying to optimize as much as
possible. MSDN states that the IncrementalBuild property "enables
incremental compilation, in which only methods that have changed since the
last compilation are recompiled."
Is this to just speed up co... more >>
System.ValueType
Posted by Brian Linden at 7/28/2004 1:18:05 AM
My code is this:
void WriteOut(object ob)
{
Type pTy = ob.GetType();
if(pTy.BaseType is System.ValueType)
.....
I get this error:
The given expression is never of the provided ('System.ValueType') type
Maybe I am thinking about this wrong. I want to pass generic "objects" ... more >>
ShellExecute problems
Posted by the openFace at 7/27/2004 10:05:55 PM
I am attempting to use the shell to display the properties page for a file,
yet I haven't been able to get it working. I made a class to call
ShellExecute through shown below:
class Win32Shell {
// omitted stuff
public const UInt32 SE_ERR_NOASSOC = 31;
// omitted
[DllImport("shell... more >>
Visio Like Drawing
Posted by Sivaraj R.P at 7/27/2004 9:57:01 PM
Hi all
You might have heard that Microsoft has published XML Schema for Visio Shapes.I am developing a small app which read from this XML and draw shapes using GDI+.But i am stuck with ellipitical arc .The XML Containes Following data
1. two end points of the arc - ( X1,Y1),(X2,Y2)
2. on... more >>
Stopping an infinitely looping worker thread
Posted by Joel Moore at 7/27/2004 8:23:57 PM
I've got a class that needs to constantly communicate with an external
device while the app is running. So I've done something similar to the
following:
Imports System.Threading
Public Class Device
Private commThread as Thread
Public Sub New()
commThread = New Thr... more >>
Assembly.Load & Petshop conversion.
Posted by Mike at 7/27/2004 6:36:08 PM
Hi all,
I'm trying to convert Petshop v3 to VB.NET
The following line is supposed to return an instance of a class, where path is
the DLL and className is the class within said DLL.
return (PetShop.IDAL.IAccount) Assembly.Load(path).CreateInstance(className);
For example, if path = "Pet... more >>
binary compatibility support for .NET assembly
Posted by someone at 7/27/2004 6:16:38 PM
Suppose that I have a class in an assembly that is delivered to the user,
what can I do to change the class so that it doesn't break the
binary compatibility? That is, user application can run with recompiling
and relinking.
I know that if I define an interface, and only expose the interface ... more >>
Internal use of Properties or local variables?
Posted by AA at 7/27/2004 5:48:30 PM
I have a class, the class has properties and methods, Properties have his
private variables
So, from my local method what is better to use? the property or the variable
... more >>
Irregularly Shaped Windows
Posted by Alex Maghen at 7/27/2004 5:21:59 PM
Hi. If I want to create a window/form in a C#.NET windows application which is irregularly shaped (it's shape is defined by a region), can I do this without making Win32 calls? If not, can you help me with the Win32 stuff I have to do from C#?
Thanks.
Alex Maghen... more >>
Access to values in config, are they cached?
Posted by Bob at 7/27/2004 4:40:43 PM
For the appsettings values in .config files, is it cached for very fast
access once a value is accessed? E.g. if I have to call this:
ConfgiurationSettings.AppSettings["MyID"]; on every user action, is it
better off to just store the value in a, say, global static variable?
Thanks
Bob
... more >>
TreeView find and remove child nodes
Posted by MVB at 7/27/2004 4:06:05 PM
I have a treeview of removable drives
when I eject a drive I want to refresh the treeview and remove all the child nodes
associated with that ejected Drive Node.
I have attempted code that will delete the items but I keep receiving a "Object reference not set to an instance of an object." When... more >>
CPU Racing w/ Idle App
Posted by JD at 7/27/2004 3:58:29 PM
(longish message, but I appreciate ANY insight)
We have a .NET 1.1 Winforms application that recently started to exhibit
some odd behavior. Specifically, after sitting idle for a while (> 30
minutes), the user's CPU starts getting hammered. Here's some background
info:
First, it's a desktop... more >>
|