all groups > dotnet framework > april 2005
Filter by week: 1 2 3 4 5
ThreadPool - why no SetMaxThreads?
Posted by Mark at 4/30/2005 5:32:03 AM
Hi...
I know this will seem like a picayune question, but why is there a
SetMinThreads but no SetMaxThreads on the ThreadPool class?
Thanks
_mark
... more >>
Get an Object reference from string?
Posted by Code Blue at 4/30/2005 1:29:07 AM
Hi,
In C#, is it possible to obtain an object reference from a string
representation of the object's name?
for example, if I have a TableName = "TblName", and the dataAdapter
associated with that table is called "daTblName", however, I will not know
the TableName till run time.
so at ... more >>
Simple Question - 'F' Keys
Posted by Stu at 4/29/2005 3:12:34 PM
Hi,
I'm fairly new to the .NET environment and to C#. I have a question which is
probably very simple but at the moment I cannot see to find the answer...
I have a Windows Form application and would like to trap the 'F' key presses
which will then do things in the app. My question is 'How ... more >>
How to grant LogOnAsService during install?
Posted by mdb at 4/29/2005 9:34:20 AM
I'm using an Installer class to install my windows service. I want to
configure it to log on as a user. When I did this, it worked at first, but
after about a day it wouldn't work anymore. When I try to start the
service it was complaining that it couldn't start due to a logon failure.
I... more >>
framework service pack 3
Posted by jsh02_nova at 4/29/2005 9:31:50 AM
I just recently finished getting my windows 2000 crtitcal updates, now I
can't install the framework service pack 3, due to a missing installer
component. Anybody know what the fix is?
--
thx
-jsh
... more >>
.NET Configuration 1.1; accidently screwed up security - please help!
Posted by bobthebuilder999 NO[at]SPAM hotmail.com at 4/29/2005 9:16:44 AM
Using the above, I accidently turned the Permission Set for the My
Computer zone to Nothing. I got the warning that the configuration tool
itself wouldn't run and set it back again. Obviously I got distracted
or something and didn't press Apply as now I can't run the tool or any
..NET apps.
I... more >>
2.0 availablity?
Posted by Lloyd Dupont at 4/29/2005 8:55:33 AM
I'm about to start some development whose 1st basic release might be around
july.
I was wondering about using .NET 2.0, is it likely to be available as a
final release at that time (begining of july)?
... more >>
"Not Responding" Message in Windows Form Application
Posted by G_Zola at 4/29/2005 8:28:08 AM
When there is a statement in a windows form application which is executing in an infinite loop, the name of the form will show "Not Responding". How does .NET determine if the application is in an unstable state? I wonder if WMI is the right way to track the application? If so, what is the right way... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
From COBOL to C#.NET
Posted by Harryfun77 at 4/29/2005 7:20:05 AM
Hi,
I am a mainframe (COBOL) programmer. Recently - I started my course to get
certification in c#.NET (MCAD). Coming from a Process-oriented language
background I find it difficult to understand the concepts of object-oriented
programming.
What wud be the best books/websites/study... more >>
Windows Control Hosted in IE Problem
Posted by saurabhgarg2k NO[at]SPAM gmail.com at 4/29/2005 7:18:07 AM
Hi there,
I am facing a problem in my app which is a Windows Control hosted in
IE through object Tag.But when I try to do WebClient.UploadFile method
it throws SecurityException although i have done all the things i know
i have to do
1. Strong Name the Assembly
2. Create a permission set a... more >>
comparing 2 datasets (or datatables)
Posted by Raja at 4/29/2005 6:32:12 AM
I want to compare two datasets (of 2 datatables). I just need to know whether
the 2 datasets are same or different. I do not want to know how it differs.
(I would be nice to have though).. Is there any easy way to accompilsh this.
Thanks
... more >>
object clean up ?
Posted by Andy at 4/29/2005 4:04:01 AM
Hi all,
I just want to know the difference between
1. When i use objEmployee = null
and
2. I inherit the class from IDisposable interface and implement Dispose
method.
Which is good practice and how CLR work in both the cases..
Thanks in advance
Andy
... more >>
Compact framework threads and forms problem
Posted by Piotrek \ at 4/29/2005 2:51:10 AM
I have small problem with my project for Windows Ce, i'm using some threads and
i'd like them to paint something on my form. The problem is, that only way i can
do that is using invoke, unfortunetly in compact framework there is no way how
to pass parameters through invoke. I was trying to cre... more >>
Stored Procedure Newbie needs help
Posted by Brian Kitt at 4/28/2005 5:20:02 PM
Trying to do a stored procedure in C# against Microsoft Access. I just want
to do a simple select to do a lookup. Unfortunately all of the examples I
can find are for SQL 2000 Server, and they don't seem to work in Access. I
am very familiar with Data Adapters and passing parms that way. I... more >>
System.Diagnostics.Process.Start problem when the process is already running
Posted by Bob Trabucco at 4/28/2005 4:24:14 PM
Hello all,
Here is my delemma...
Dim objProcess as System.Diagnostics.Process =
System.Diagnostics.Process.Start(x)
With objProcess
.WaitForExit()
.Close()
End With
Works great in most cases. It opens up the document in the associated
program and waits for it to exit - ... more >>
typed dataset
Posted by bsatyen at 4/28/2005 12:14:05 PM
Hi,
We are implementing Data Transfer Objects (DTO) as Typed DataSets. This
means that we would have multiple typed DataSet classes that overlap
slightly, sharing tables between them.
The issue with typed datasets is that it inherits from the DataSet class and
hence a typed dataset class ca... more >>
async calls
Posted by NormD at 4/28/2005 11:18:08 AM
I have a simple windows application project. It has a form which has 2
buttons. The project has a web service reference. The web service has two web
methods Helloworld1 and Helloworld2 they both return "Hello world".
Helloworld1 has a 120 seconds delay.
One of the buttons on the form makes a... more >>
what is proper page navigation to go back to yourself?
Posted by Flip at 4/28/2005 10:59:32 AM
I'm creating a webpage to send an email, but I'm having a problem with page
navigation, data entry and the validators. :< I cannot seem to get it right
with the IsPostBack property I think.
When I goto my page (http://www.pchenry.com/LaunchExtendedUrls/), enter in
the information then clic... more >>
What is the point of making assemblies strong named?
Posted by bobthebuilder999 NO[at]SPAM hotmail.com at 4/28/2005 10:22:11 AM
As I understand it, one of the purposes of making assemblies strong
named is to stop the assemblies from being tampered with. How does this
work?
As a test, I did the following:
-Created an Assembly called ServerApp, containing a single class
ServerObj, which had a single function Calculate... more >>
Assembly Build #
Posted by JP at 4/28/2005 8:54:01 AM
I can see in the Assembly.CS file where you cna have .NET auto generated the
version/build number that it tags onto the compiled DLL for a web project.
How do I read the generated build number so that I can display the version
of the web project on my ASPX page?? Im using C# and seaching acros... more >>
Zero Padding Culprit
Posted by Jeff at 4/28/2005 8:49:41 AM
I have a Windows Forms Application that communicates with an embedded client
using custom messages over a UdpClient connection.
Everything was fine until the Windows machine was upgraded with service
packs.
After installing WinXP SP2 and .Net Fx 1.1 SP1, something started zero
padding my mess... more >>
allowDefinition='MachineToApplication' beyond application level
Posted by Senthil Kumar via DotNetMonster.com at 4/28/2005 7:45:04 AM
Hi All,
This is my folder structre,
WebAppln
---------bin
---WebAppln.dll
---------WebForm1.aspx
---------webform2.aspx
---------SubFolder1
---------bin
----Add.dll
----E... more >>
Where the native code is stored?
Posted by Balaji at 4/28/2005 5:50:02 AM
Hi folks,
I heard that nGen tool is use to generate the native code ,so that the
response will be faster and there is no need for JIT to compile agagin to
native code?
What my doubt is ?
Where the native code is stored?
2.How to specify the location of the native CODE to CLR ?
3.Are... more >>
'as' operator
Posted by AVL at 4/28/2005 5:24:03 AM
How is 'as' operator better than explicit casting while casting to a type.... more >>
Captcha Images
Posted by prasad at 4/28/2005 5:22:26 AM
HI All,
Is there anyway to read Captcha Images ?
I have to get the charecters that are placed inside the captcha images.
Thanks in advance,
Prasad Dannani.
... more >>
Windows 98 slow .Net performance
Posted by Louis at 4/28/2005 3:46:04 AM
Hi
I developed an app that seems to be running fine on Windows XP.
My client how-ever, needs to run this app on Win98.. after installing Mdac
and IE and .Net Framework 1.1, it installs on the 98 machine
The problem however is that it is horribly slow on windows 98. My client
complains t... more >>
Sending Client Certificates with HttpWebRequest Object
Posted by prasad at 4/28/2005 12:58:00 AM
I have to attach a client certificate with my httpwebrequest object. i found
some articles in net both they are not working for me. Can anyone suggest
the better way
Thanks in Advance
Prasad Dannani
... more >>
Reading Session Values using System.Net.HttpWebRequest
Posted by prasad at 4/28/2005 12:52:04 AM
HI,
I am using System.Net.HttpWebRequest object to retreive information from
some sites through screen scraping. Can i read session values using these
objects ?
Thanks in Advance
Prasad Dannani
... more >>
String.Lenght vs String.Empty
Posted by AVL at 4/27/2005 10:44:04 PM
Hi,
I read that to check for empty strings , comparing strings using
String.Length == 0 is faster than String.Empty or "" . Is it true...?
If so, how?... more >>
Creating a C++ like message loop in .NET threaded classes.
Posted by Nate A at 4/27/2005 5:18:02 PM
..NET is certainly the best thing to happen to RAD since the invention of
high-level languages. The one thing I miss from the world of C++ however, is
control over Windows message processing (or maybe it's in the .NET and I
don't know about it, that's kinda what this post is about.)
..NET f... more >>
Asynchronous operations with System.Net.Sockets
Posted by Nate A at 4/27/2005 4:23:26 PM
I have a couple questions concerning the inner workings of a
System.Net.Socket class when doing asynchronous read/write operations.
1) When a program calls the asynchronous operation BeginRead(..., callback)
or BeginWrite(..., callback), the reading or writing operation obviously runs
on a ... more >>
ServicedComponent Not releasing File Handles
Posted by JCauble at 4/27/2005 3:59:39 PM
We have run into an issue with a COM+ ServicedComponent What it does is
allows us to store a file to a network share from a web application. Here is
the code for the Save Routine:
[AutoComplete]
public bool SaveFile(string uncPath,string fileName, byte[] data)
{
FileStream nf;
... more >>
KB890828
Posted by Shane at 4/27/2005 3:22:01 PM
How do I get the HotFix for this KB article?... more >>
What can replace the ActiveX in .NET
Posted by Irene at 4/27/2005 3:17:27 PM
Currently I have in-house software package written around ActiveX(supporting
VB and C++). We are moving to .NET and I wonder what (component technology)
in the .NET can replace(?) the ActiveX?
I am a novice in .NET.
... more >>
KB890828 GroupBox label bug
Posted by Shane at 4/27/2005 12:51:59 PM
How do I get the HotFix for this KB article... more >>
.NET Framework install FAILED
Posted by EJStark at 4/27/2005 12:49:56 PM
I have been trying for several days to get .NET Framework 1.1 to install
using the windowsupdate site. I get no specific error message but that the
"update was not installed". I have to have .NET to install the latest
AutoCAD 2006 software.
I have scoured the newsgroups for info and every... more >>
BUG in .NET 1.1 HOW TO FIX "Hashtable insert failed. Load factor too high" ??
Posted by Sazonov Dmitry at 4/27/2005 12:48:57 PM
I got exeption in production environment:
A first chance exception of
type 'System.InvalidOperationException' occurred in
mscorlib.dll
Additional information: Hashtable insert failed. Load
factor too high
Also I found article
http://support.microsoft.com/Default.aspx?kbid=831730
... more >>
WebRequest not working
Posted by Bill at 4/27/2005 12:45:08 PM
Can anyone tell me why the below code to downoalds a web page doesn't work
and it only downloads the below single html comment tag.
("\n\n<!-- Request Elapsed Time = 15 ms -->\n\n")?
It doesnt happen to all URLs just the one is this sample. Is there some
kind of redirect or something happen... more >>
Obfuscation Question
Posted by Ayron at 4/27/2005 9:07:50 AM
Greetings. I have an application that I'd like to obfuscate. It has
many .net assemblies. Upon obfuscating all of the assemblies and
running the app, I get odd data output in some lists and fatal
exceptions thrown when pressing buttons, opening certain forms, etc.
The same code runs without exce... more >>
Impersonate in winforms
Posted by rajeshraju NO[at]SPAM gmail.com at 4/27/2005 7:29:04 AM
I am using VB.NET winforms application and want to use impersonation.
This is my app.config file.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<identity impersonate="true"
userName="userName"
password="password" />
<appSettings>
<add key="LinkLabel1.AutoSize" value=... more >>
Running 2 instances of .NET framework
Posted by Daniel at 4/27/2005 7:18:06 AM
I currently have 1.1 on my desktop and need to install 2.0 for sqlserver
2005. I'll need the 1.1 framework to continue asp.net development. Can I
have both 1.1 and 2.0 on my computers without problems?
thanks.... more >>
Retrieving the Windows path and reading settings file
Posted by KennethBohman at 4/27/2005 2:38:15 AM
I need to read settings for another application for a very small application.
The settings are stored in a text file, and this file is stored in the
Windows directory.
How can I retrieve the path for the Windows Directory on the local machine?
How do I best read the settings in this file? T... more >>
Windows path and settings file
Posted by KennethBohman at 4/27/2005 2:36:04 AM
I need to read settings for another application for a very small application.
The settings are stored in a text file, and this file is stored in the
Windows directory.
How can I retrieve the path for the Windows Directory on the local machine?
How do I best read the settings in this file? T... more >>
Implementation of interface in C#
Posted by Joël Descombes at 4/27/2005 2:30:03 AM
HI!
Is it possible to implement the methods of an interface as private.
For exemple, I have an interface :
public interface ITest{
void MyMethod();
}
I want to create a class like this:
public class MyTest : ITest{
private void MyMethod(){
}
}
where the private method MyMe... more >>
Custom Attribute
Posted by Subbu at 4/26/2005 10:25:33 PM
Is is possible to write custom attributes for exception
handling a function.
Example:
[ExceptionAttribute Enable=true]
void Function(int intParameter)
{
<< some code >>
}
If Yes, can you tell me the steps for doing it.
regards
subbu... more >>
How can i FTP with SSL or TLS encryption?
Posted by Johnny Granberg at 4/26/2005 9:01:01 PM
Im trying to build an ftp class in VB.NET but i want it to be able to
encrypt the dataport and commandport but i have no idea how to do it.
does anyone have any clue how to do it?
either code or a website explaining the procedure would help.
Thank you in advance.... more >>
Design Ideas
Posted by Archer at 4/26/2005 8:10:51 PM
I was thinking about the design of a plantform-like stuff that
allow people inherit from my work and implement their own functions
without source. But i don't know how to design my class to archieve
this. I think plug-in tech can't satisfy it well. Because user only
need realize one function... more >>
Site times out too soon
Posted by Walter Levine at 4/26/2005 5:29:04 PM
I have a .net website that appears to be timing out after about only 30
minutes
The Web.Config file looks like the one below:
I thought that the <timeout="480"> should give me 8 hours.
What am I doint wrong?
No timeout would also be OK
Thanks for any help
Walter
*****************************... more >>
Clip Cursor in .Net Framework
Posted by Sanjay at 4/26/2005 3:47:57 PM
hi,
I need to confine my mouse cursor to particular area on the screen.
I used to use ClipCursor API in VB6.
can anybody please suggest me its equivalent in .net framework if any ?
I will be thankful to u for the same.
sanjay
... more >>
Releasing COM object (RCW)
Posted by Chris at 4/26/2005 3:34:03 PM
I have a class I am using the RCW on which allows IE to use as an ActiveX
object. The problem is that I holds onto the reference and locks the DLL.
There does not seem to be any way of releasing it when IE is done with it.
My client-side code is trivial:
try
{
obj = new ActiveXOb... more >>
|