all groups > dotnet framework > september 2006 > threads for september 8 - 14, 2006
Filter by week: 1 2 3 4 5
Help Me Please
Posted by news.microsoft.com at 9/14/2006 11:49:25 PM
I programed in vb 6.0
i need to swith .NET
what .net i start to learn?
Thanksany one.
... more >>
Custom data provider
Posted by Michael Kanios at 9/14/2006 6:14:01 PM
Hi. I'm trying to develop a custom data provider and would like to add
designer support. Specifically for the CommandText property I would like to
set the property editor that all other providers have (the Query builder).
Is this Editor available in the ComponentModel library or in any other
lib... more >>
How To Detect a DEBUG run (in C#)?
Posted by Harald at 9/14/2006 5:30:19 PM
Hi,
I need to perform some Operations in DEBUG-Builds (C# Windows-Forms
application). How can I detect a DEBUG-Configuration and perform actions as
with the C++ directives
#ifdef _DEBUG
....
#else
....
#endif
Thanks for any hint!
Harald
... more >>
searching a Combo box for a Generic item
Posted by Chuck P at 9/14/2006 4:14:03 PM
I have a DisplayValueItem object that is used to fill a ComboListBox
with items. It used to be the Value and Display members were string.
I changed it to a generic (T, string) and now the below code fails.
x = new DisplayValueItem < int >(1, "stuff");
clbOutcomes.Items.Add(x);
bFound = clbO... more >>
how to programatically identify a file as a .NET assembly?
Posted by Emby at 9/14/2006 3:25:09 PM
Hello ...
Is there an easy/quick - or at least reasonable - way to programmatically
identify a .NET assembly (EXE or DLL). My app needs to look in a set of
folders and find which files are .NET assemblies. Some of the folders
contain many files (>100) with 1 or 2 assemblies among them.
I... more >>
EventHandler Patterns
Posted by APA at 9/14/2006 2:54:41 PM
Dumb Question Warning:
How does one know what the eventhandler arguments are for a particular event? They aren't always
Handler(object sender, EventArgs e). Some events have event specific EventArg classes, if the .NET
sdk doesn't have a specific definition of a delegate for a particular ev... more >>
creating components with visual studio .net 2005 and c# 2005 ??
Posted by jason NO[at]SPAM cyberpine.com at 9/14/2006 2:05:33 PM
Pardon Noob questions...
Why would somebody create a component using vs.net 2.0 and C# ? To use
it from non .net solutions or unmanged code?
dumb question, I'm finding these instructions for compiling c# into a
component dll from the command line..
csc /r: REFRENCE DLL /t library /out ... more >>
Open windows explorer at server path
Posted by Colin Williams at 9/14/2006 1:53:40 PM
I am trying to open windows explorer at a specific path on a server.
Path is not found
whe run. It works ok using a local path. How do i address a server?
Code as follows;
{
System.Diagnostics.ProcessStartInfo exploreTest
= new System.Diagnostics.ProcessStartInfo... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Viewing a TIFF Multi-image file
Posted by Dan at 9/14/2006 1:16:09 PM
The problem that I am having is that I need to view an image, in a VB
dotnet application, that has been scanned using the "Image Everywhere
Scan 3.02" scanning software and is saved as a multi-image TIFF file.
I have tried using TIFF Viewers with no luck. Does anyone have any
experience openin... more >>
Starting process
Posted by Peter Schmitz at 9/14/2006 11:40:01 AM
Hi,
I'm currently writing windows .net service (non-interactive) that shall
start a specific program from disk the moment it gets started itself. Now,
when I simply call Process.Start(filename) I receive an AccessDenied error.
So, how can I start a process with the same rights as the service... more >>
Datagridview, object datasource, and hiding properties via attribu
Posted by William Sullivan at 9/14/2006 9:28:02 AM
I seem to remember this being possible, but I can't find a single thing about
it now..
I have a datagridview that is bound to a bindinglist of type 'foo'. Foo is
a business object with a number of public attributes.
I want to prevent the datagridview from binding to some of these public... more >>
end process
Posted by Julia at 9/14/2006 12:22:02 AM
Hi
I have a windows program (C#) and I need to end a process from my
application. This shold work equal to when you open the Windows Task Manager
and right klick on a process and choose "end process". Any ideas?
Thanks
Julia... more >>
Framework 3.0 question
Posted by buechi NO[at]SPAM gmail.com at 9/13/2006 6:32:55 PM
Will the framework version 3.0 be shipped with Vista?
... more >>
Media PLayer 10
Posted by Chic at 9/13/2006 5:46:01 PM
Installed a new video card and it works great for the games and such. But
when I put a dvd in the drive, player loads than freezes. This also happens
with power dvd player. Any ideas, thanks... more >>
SqlDecimal calculations in .NET 2.0
Posted by Beat Bucheli at 9/13/2006 4:41:13 PM
Hello,
I'm trying to do some simple calculations with System.Data.SqlDecimal on
..NET 2.0:
SqlDecimal one = new SqlDecimal(1);
SqlDecimal seven = new SqlDecimal(7);
SqlDecimal oneBySeven = SqlDecimal.Divide(one, seven);
The precision of the result in oneBySeven is way below my expectati... more >>
XmlReader and first char
Posted by Steve B. at 9/13/2006 1:55:59 PM
Hi,
I've a string that contains a Xsl transformation :
string tranform = @"
<xml version=""1.0"">
<xsl .....>
";
Notice that the first chars are \r\n
I write this string into a MemoryStream, then I create a new XmlReader like
this :
XmlReader reader = XmlReader.Create(myMemoryStr... more >>
Unable to resolve exceptions. .NET environment or codes?
Posted by George D at 9/13/2006 10:55:01 AM
Am using VB in VS.NET 2003 (Framework 1.1) I am getting a CLR debugging
services "application has generated an exception that could not be handled"
error after deploying the apps and trying to run it on the client PC (XP Pro
SP2 with .NET framework 1.1 sp1). My application does not load. Th... more >>
SerialPort.GetPortNames with Friendly Names
Posted by rfw68 at 9/13/2006 7:44:02 AM
Hello there,
I'm using the GetPortNames to list the available Ports in a ComboBox. This
is working fine. But I want to show the end user not only boring 'COM1' to
'COMx'. Instead this I want to show the friendly Names like the Device
Manager shows, e.g. 'Prolific USB-to-Serial Comm Port (CO... more >>
issues w/ COM objects, .NET 2.0
Posted by campkd at 9/13/2006 7:04:15 AM
I have run into some issues with COM objects in an application I am
working on, and am hoping for some help. The app I am working on is in
..NET 2.0, and I am trying to use a COM object written in FoxPro, which
will perform operations & write the transaction to a SQL database.
(Yes, i realize t... more >>
How does VS2005 figure out which .sln file to load??
Posted by Søren M. Olesen at 9/13/2006 12:00:00 AM
Hi
I have two versions of a project placed under:
wwwroot\Version1\webapp
wwwroot\Version2\webapp
If in VS2005 I choose Open Web Site and open the Verson1 site, then VS2005
somehow figure out that it has to open the .sln file placed under:
C:\Documents and Settings\...\My Documents\Vi... more >>
frameworrk and GAC components
Posted by Emby at 9/12/2006 8:37:09 PM
I need to present a list of assemblies as potential references, similar to
(but less sophisticated than) the Visual Studio project references dialog.
The reason for this is that my app supports scripting by dynamically
compiling VB.NET code (via CodeDom.Compiler), and I want to provide for th... more >>
SaveFileDialog locks the file?
Posted by Peter Duniho at 9/12/2006 1:44:33 PM
I searched using Google, on the web and in the newsgroups, and found nothing
on this topic. Hopefully that means I just don't understand what I'm
supposed to be doing here. :)
The problem:
I am trying to use the SaveFileDialog class to get a filename, which is
subsequently opened for w... more >>
Problem: DLL Made in VB.NET Is Not Referenceable
Posted by Phil Galey at 9/12/2006 12:14:16 PM
I have a DLL that I created in VB.NET. I haven't had a problem referencing
it in the past, but now I suddenly do. I re-build it and then reference it
from my application, but when I type Imports to import it, the intellisense
doesn not include it. If I type the name of the DLL, it complains th... more >>
.NET Adoption Statistics
Posted by John at 9/12/2006 12:11:45 PM
Does anyone know where I can find statistical info regarding market share of
..NET? More specifically, current usage of various versions of .NET and how
long companies wait before upgrading and migrating. I'm trying to begin an
effort to start migrating to .NET 3.0. One argument I've heard ... more >>
How to get the Appdomain Object from AppDomain ID
Posted by John at 9/12/2006 11:48:56 AM
I have a AppDomain ID, how do I get the instance of the AppDomain
Object?
Please advice.
Thanks in advance.
John
... more >>
Why am I getting an Out Of Memory Exception
Posted by nesr235 NO[at]SPAM lni.wa.gov at 9/12/2006 10:33:49 AM
I am getting an OutOfMemory exception within my loop when I try to load
an object and then save the object. The loop should execute 5700
times. But when I get to iteration 4682, I get the memory error. I
tried to run the garbage collect when I get the memory error but this
does not have any... more >>
HashTable.Add Modifies HashTable Items?
Posted by CoderHead at 9/12/2006 9:47:35 AM
I've got a Web app wherein I store a number of generic collections
(Generic.List) in the application-scope as a HashTable (a make-shift
cache), indexed by an Enum value - i.e.,
CType(Application.Item("SysTables"),
HashTable).Add(DataAttribute.Database.Recruiting, TableList). The Enum
values ar... more >>
Possible bug in UnicodeEncoding
Posted by KrippZ NO[at]SPAM gmail.com at 9/12/2006 9:31:25 AM
Hello!
We here at the office have discovered something odd. Can somebody
please verify this potential bug for us?
This code generates a byte buffer fills it with 256 bytes ranging from
0 to 255, and the bug appers when the Unicode Encoder gets the bytes
from another Unicode Encoder that giv... more >>
String comparison problem
Posted by Eve at 9/12/2006 8:26:02 AM
I'm having a hard time comparing two strings - even if the strings are
identical, the If x <> y Then condition is always met. I'm going crazy.
Here's my code:
Dim x As String = "a"
Dim y As String = "a"
If x <> y Then
' it always goes here
End If
I also tried:
If Not (x = y) Then
... more >>
Performance comparison between .net 1.1 and 2.0
Posted by wforrester NO[at]SPAM gmail.com at 9/12/2006 7:51:44 AM
Did anybody try to make a performance comparison between .net 1.1 and
2.0 in real applications ? I mean not just small tests like Generics
vs. Collections or DataSets, but the performance of the whole
application using those things ?
We experienced with the performance drop after moving to the... more >>
GUI for Charts
Posted by Fla at 9/12/2006 7:35:46 AM
Hi!
I would like a suggestion about a graphic provider for Charts plotting
in VBNET.
I need to plot charts with more elegant graphic interface than VBNET
default one;
I also need to interact with the charts I will realize, i.e. plot datas
and retrieve
informations about pixels or cursors posi... more >>
Dot Net 2 Contents
Posted by Charlie P at 9/12/2006 3:28:30 AM
Can anyone tell me if the dot net 2 framework ships with embeded
crystal reports runtime files.
I know that Vs.net does but I'm not sure if the framework has anything
embeded which may interfere with the actual crystal installation
Charlie
... more >>
Setting enumerator using reflection
Posted by Paul at 9/12/2006 1:27:27 AM
Hi Guys.
I am loading an enumerator in a list box using reflection.
Using
if (!this.IsPostBack)
{
ddlSource.Items.Clear();
Type _enum = typeof(adTargetDataSource);
FieldInfo[] _prop = _enum.GetFields();
// We start at ... more >>
Delete a file
Posted by Neven Klofuar at 9/12/2006 12:00:00 AM
hi,
I have a problem when trying to delete a file.
I have to extract some information from a file, and then I have to delete
it. When I try to delete it after I read it, I get a "Access denied" error.
help pls, Neven
********************************
StreamReader sr = new StreamReader(s... more >>
References in multiple projects solution
Posted by SHB-MSDN NO[at]SPAM newsgroup.nospam at 9/12/2006 12:00:00 AM
Hi,
I just encourntered the following problem. I have a Solution with one
WindowsForms startupprojekt and two class library projects a and b.
Now when compiling a seperately everthing is fine. Also when I compile the
Startup project seperately it's ok. Only if I select Build solution I got
... more >>
ISerialization Frustration !
Posted by vbMental at 9/11/2006 5:43:02 PM
I'm not sure if I'm having a moment of non-clarity or not but I don't believe
implementing ISerialization works at all.
It started when I had a class that I wanted to provide my own serialization
for because it had ReadOnly properties. So I implemented the ISerializable
interface.
I throug... more >>
Problem with a service using a WinForms control
Posted by PIEBALD at 9/11/2006 12:09:02 PM
Just as an exercise I'm trying to write a program that will periodically read
a Web page (not mine), get some information from it, and store the
information.
It seemed the most straightforward tactic was to write a service and have
that service use an instance of WebBrowser.
The problem ... more >>
debug an XLST transformation
Posted by Arne Garvander at 9/11/2006 10:53:02 AM
How do I debug an XLST transformation?
--
Arne Garvander
(I program VB.Net for fun and C# to get paid.)... more >>
Delegate problem
Posted by DotNetMonster at 9/11/2006 7:55:03 AM
Hello,
I want to execute a delegate (event) in tha base class from a derived class
but i get comile time error. Is there a work arround?
base class :
public abstract class Document
{
public event EventHandler OnDataChanged;
public virtual void SetData(string ... more >>
SecurityExcepion inside DLL linked in an HTML tag OBJECT
Posted by Lambuz at 9/11/2006 6:01:38 AM
Hi there,
I've got this strange problem.
I've created a library of some assemblies and one of these
(webclient.dll) is linked inside an html tag object by using this
sintax:
<OBJECT id="myID" classid="http:WebClient.dll#namespace.WebClientClass"
/>
The assembly is correctly loaded insid... more >>
Derive a WebService Proxy Class
Posted by Michael at 9/11/2006 1:26:00 AM
Hi
I use VS.NET 2005.
I generated a Proxy file (reference.vb) with the build in WSDL
Generator -> so far so good.
I have to provide some classes from that to COM via the interop-layer
-> okay.
There are some (data)classes with members declared as
System.Nullable(Of Long).
The problem is ... more >>
Cognizant MEGA RECRUITMENT DRIVE
Posted by Rohit at 9/11/2006 12:51:16 AM
Hi all...
If you have the skills and experience mentioned below and u are
interested in working with Cognizant Technology Solutions, please send
your updated resume mentioning any of these specializations and
location preference in the subject line.........to ..
rohit.katiyar@gmail.com
Ja... more >>
DefaultValueAttribute usage
Posted by Edward Diener at 9/10/2006 7:22:24 PM
I have a number of questions regarding the DefaultValueAttribute which
is not explained in the rather terse MSDN documentation for it:
1) Should I use it for all properties, even when the property is
initialized to its equivalent 0 value and I do not specifically
initialized in the construc... more >>
how to assine current row index to the DataGridView Control
Posted by Taoge at 9/10/2006 6:01:49 PM
How to Create Bitmap of .NET web Browser Control?
Posted by Mateusz Rajca at 9/9/2006 4:41:01 PM
Hi Guys!
Im new to C#. How can I create a Bitmap of the Web Browser Control using the
CreateGraphics Method?
Thanks!
Matt... more >>
Proper unmanaged to managed exception handling -- SEHException and
Posted by Mark Moore at 9/9/2006 10:59:01 AM
I'm left a little confused about the correct way to handle exceptions thrown
from unmanaged code.
Specifically, I've got a legacy MFC based DLL that's wrapped by C++/clr
exposing it to a fairly straight forward C# console app (VisualStudio 2005 if
that matters).
According to a fairly bri... more >>
Trace is causing exception
Posted by Aryan at 9/9/2006 2:38:20 AM
Hi All,
My application was working fine and giving me proper trace
messages, but now all of sudden it started showing expcetion as
"Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of
the current web request. Please re... more >>
Question about DirectoryEntry.AuthenticationTypes
Posted by Vikas Manghani at 9/9/2006 2:13:02 AM
Hi
I have a scenario where the user can change his password at Active
Directory. However the password must not be passes in cleartext over the
network.
I am using DirectoryEntry.Invoke("ChangePassword",oldPassword, newPassword)
to change the password.
If I use AuthenticationTypes.Secure whil... more >>
Mute system sound?
Posted by Olav at 9/8/2006 10:48:45 PM
How can I mute the PC's sound from a C# program (just as I would from the
volume control in the systray)?
Olav
... more >>
Need help with Remoting question
Posted by Jayme Pechan at 9/8/2006 10:17:53 PM
I have an object in a service that, of course, is derived from
MarshalByRefObj and is setup as a wellknown type in my app.config file. I
can get a reference to this object just fine and call functions. One of my
functions needs to return another object that also derives from
MarshalByRefOb... more >>
An object that serializes and deserializes itself dynamically?
Posted by Steve Bugden at 9/8/2006 12:42:02 PM
Hi,
I created a class that can serialize and deserialize itself dynamically.
Please see the example class below.
I can call the class to serialise and deserialise as follows:
Dim objPerson As New Person
objPerson.FamilyName = "Smith"
objPerson.FirstName = "John"... more >>
How to find the default value of primitive data type at runtime
Posted by Webbert at 9/8/2006 12:03:01 PM
If I am woring with Generics I can do default(T) to find the default value,
but I can't do default(this.myobj.GetType()).
How do I find the default value?
I >>> DO NOT <<< want to do something like the following...
public object GetDefaultValue( object o )
{
if ( o.GetType() == ... more >>
strong name validation failed: compiled in VS 2005 (.NET 2.0) but running under .NET 1.1
Posted by likong NO[at]SPAM email.com at 9/8/2006 10:57:47 AM
I have a simple unsigned .exe (only calls Microsoft assembly) built by
vs2005 (e.g., .NET 2.0) and now want to execute it on .NET1.1. The
following is my entire config file:
<configuration>
<startup>
<supportedRuntime version="v1.1.4322"/>
<supportedRuntime version="v2.0.5072... more >>
Implement a Time-out in the waitQueue of the ThreadPool
Posted by Ashish at 9/8/2006 7:23:02 AM
We have a requirement to implement multithreaded processing for a function.
ThreadPool is used to implement multithreading in order to avoid the over
head of creating and destroying Threads dynamically.
A function will Queues the method calls to the default ThreadPool. If the
number of method... more >>
Shared memory still not exposed via managed classes in .NET 2.0?
Posted by nickdu at 9/8/2006 3:48:01 AM
I was looking for managed classes that exposed shared memory figuring they
would be part of the framework in 2.0. I couldn't find any. Am I just not
looking in the correct place or is shared memory support still not in the
product?
By the way, when I was searching the .NET 2.0 SDK documen... more >>
Play sound from microphone
Posted by Taoge at 9/8/2006 12:00:00 AM
I want to make a program that can receive wave sound stream from microphone
and play it real-time. Is there a way to do that?
Thanks.
... more >>
Calling functions from old DLL library (created in .NET)
Posted by SMichal at 9/8/2006 12:00:00 AM
Hi,
is any possibility how to use an old DLL library (created in Visual C++6)
also in .NET 2005, in C# or in C++ application? How ? Tutotials needed .-)
... more >>
|