Home All Groups Group Topic Archive Search About

.NET Framework

microsoft.public.dotnet.framework
Score Update for .NET Framework - "you can't get there from here"
vlogic - 19 Feb 2005 5:19 PM - 3 messages
Hi.  I can't seem to get the Framwork 1.1 updated with the recent security update(s).  Here's what happens: Windows Update determines that I need to install "Update for .NET Framwork Service Pack 1 (KB886903)".  After downloading, the installation fails, as ...
Score CLR Bug ?!
Andrea - 19 Feb 2005 9:55 AM - 6 messages
Hi all, I suspect a CLR Bug. Please look like this code fragment ! My question is: why 0 (zero) is a special value in CLR ?! Thanks all. Code: using System; namespace CLR_Bug {     class MainClass     { ...
Score GUID for .Net framework
STom - 19 Feb 2005 1:49 AM - 6 messages
Where in the registry would you find the GUID for the installed version of the .Net framework? I assume this GUID would be the same on every machine that had the same version of the framework? Thanks. STom ...
Score Setting an application to auto size all it's controls based on resolution
Charles A. Lackman - 18 Feb 2005 10:09 PM - 2 messages
Hello, I there a way to make a .NET application auto size all it's controls based on the computers current resolution settings?  If the program is written in 800 X 600 and the computer is it installed on is set to bigger resolutions ...
Score on_Windows_98
Renegade - 18 Feb 2005 6:23 PM - 3 messages
Help Please….this is urgent. At my office we just upgraded from VS2002 and .net 1.0 to VS2003 and .net 1.1.  Now that we have upgrade our “Process.Start()” does not work on Windows ...
Score Interlocked vs Mutex efficiency
Chris Tanger - 18 Feb 2005 5:51 PM - 7 messages
I have the following two code blocks which should only have 3 threads at the most calling the function and collisions are very unlikely because all 3 threads should rarely be calling this function at the *exact* same time.  I ...
Score Silent Install
Charles A. Lackman - 18 Feb 2005 5:18 PM - 3 messages
Hello, Is there a way to make my Setup Project do a Silent Install.  I have 10 computers that all need my program installed on them.  If I would just execute the Setup without having to click "Next", "Next", "Next" ...... ...
Score Using AL.exe to link modules into assembly
scayze - 18 Feb 2005 3:39 PM - 5 messages
Hello all, I'm writing a program that first uses csc.exe to compile C# files into a netmodule, which works fine. The resulting fileis 72 KB in size. Next it uses al.exe to link the netmodule to an assembly and add strong ...
Score Finalization and .NET/deterministic or orderly shutdown
WXS - 18 Feb 2005 2:05 PM - 10 messages
Any chance 2.0 will help with this? Finalization for .NET really needs the ability to support leaving some functionality intact until the program actually terminates.  There should be support of exceptions for things like Console.WriteLine to continue working ...
Score Windows service configuration - registry or configuration file?
Ken Brady - 18 Feb 2005 1:38 PM - 2 messages
Before .NET I would always use the registry to configure a service. Now, app.config files seem to be the preferred way in most executables. Can services use configuration files? Thanks ... ...
Score How to negotiate authenication with HttpWebRequest
Roy Chastain - 18 Feb 2005 1:08 PM - 5 messages
I have the following code. Basically it attempts to connect without authentication and if that fails, it is to attempt supplied and/or default credentials. It does not work.  If I capture the traffic on the network, the code below only results in 1 GET Request being sent to the server ...
Score Accessing information on IIS programatically
thechaosengine - 18 Feb 2005 12:55 PM - 3 messages
Hi all, Does anyone know of a way I can get information on the status of IIS including what websites and Virtual Roots are defined and whether they are running or not. I'll be using C# in particular and am currently looking into WMI - something ...
Score Reversing text in TreeView nodes
Allen Anderson - 18 Feb 2005 12:29 PM - 7 messages
I haven't received an answer to my question of a few days ago regarding a flipped treeview control posted in the dotnet.framework.windowsforms.control newsgroup, so I thought I'd ask it again.  Sorry about the cross-posting, ...
Score Reading Text datatype into a byte Array
Debu Das - 18 Feb 2005 11:07 AM - 4 messages
Hi, I am populating a records fetched from a select query in OleDbDataReader. The datbase is MS Access, The datatype of the select query column is Text. I want to read the data as Byte array instead of string as Reading it into a string causes it to be converted to ...
Score Getting things into an array of bytes
Sijmen Mulder - 18 Feb 2005 6:05 AM - 3 messages
Hi there, Currently I'm trying to think of a way to quickly send data back and forth for a game, over sockets. I thought the best way would be to have a struct like this: struct NetMessage {     public NetMessageType Type; ...
Score formatting numbers
Joo Park - 18 Feb 2005 1:43 AM - 3 messages
I need to format the decimal into following format 3 to 3.00 3.1 to 3.10 How would i do this in C#. thx in advance! ...
Score Strange behaviour with .NET apps with Framework 2.0
cody - 18 Feb 2005 12:53 AM - 5 messages
I have installed the Whidbey CTP Beta2 and now I have strange behaviour with all .NET apps (also programs which were copiled with .NET 1.0 version): If I close a .NET program regularly using the close os exit button my ...
Score State of Objects...
tascienu - 18 Feb 2005 12:20 AM - 3 messages
Can anybody explain to me what happens in these scenarios: - Dim m As myClass - Dim m As New myClass - m.Dispose() - m.Dispose(True) - m = Nothing - MyChildClass inherits myClass -> will it also inherit Dispose() from myClass or do i have to write a new one? ...
Score limits for filestreams (C#)
gloria - 17 Feb 2005 9:06 PM - 3 messages
So I am writing data from a datastream to a filestream.  The count of rows in the datastream is 416.  I count as I write to the filestream and again I get 416.  However, when I open the file, there are only 392 ...
Score Deserialization constructor
MP - 17 Feb 2005 7:52 PM - 3 messages
Hello, I am having a bit of a problem with Deserialization. I need to "override" the special constructor used when an object is deserialize. In thes constructor I have to execute some code that is requierd by our framework and then call the ...
Score Command to terminate execution
Tom Wells - 17 Feb 2005 5:30 PM - 4 messages
I have a VB.NET program that is going to run on a server every 15 minutes. When it finishes I end up with a blank form sitting on the screen.  How do I get it to close automatically? ...
Score Dynamicly refrence a .NET DLL
rbonin - 17 Feb 2005 5:22 PM - 3 messages
I have seveal vb.net Dll's I created that handle several maintinance functions. I would like to have a single windows service that runs each of the utilities at a scheduled time. right now I have it working, but ...
Score Exception with HttpWebRequest.GetResponse
Roy Chastain - 17 Feb 2005 3:16 PM - 3 messages
The following is code from the HttpWebRequest.KeepAlive Property documentation       HttpWebRequest myHttpWebRequest2 =         (HttpWebRequest)WebRequest.Create("[link]");       myHttpWebRequest2.Connection="Close"; ...
Score Error Occurs When using ADO.NET OLEDbDataAdapter to Modify Excel
Dudi Nissan - 17 Feb 2005 12:51 PM - 2 messages
Hello, According to the article: [link] At the "RESOLUTION" section - "... To modify existing records, you must provide primary key information through the UpdateCommand member ..." What should be added to the code in this article to provide "primary key ...
Score Writing a windows service with a socket interface.
Peter Strøiman - 17 Feb 2005 10:04 AM - 2 messages
Hi. I'm writing a windows service that is accessible via sockets. I have tried to find literature on the subject but I couldn't. Basically my service, when asked to start, starts up a new thread that just waits for connection. See bottom of this mail. ...
Score Launch WebBrowser
rob - 17 Feb 2005 1:37 AM - 3 messages
How can I launch a webbrowser from my windows forms applications? The reason I need that is because I have a DataGridView with links in one of the columns. When clicking on it I process the click and then want ...
Score .NET Validators Combined with Javascript
quiggle - 17 Feb 2005 12:21 AM - 4 messages
We have a need to ensure that users do not click multiple times on any buttons that will submit the page.  We have placed an onclick method on all of them that counts how many times a submit like button has been ...
Score Getting images into byte arrays
RichardF - 16 Feb 2005 11:08 PM - 5 messages
Can anyone tell me what is wrong with this code? I want to get the ocntents of the JPEG image into a byte array.  After the theStream.read call, the theBytes array is still filled with all nulls. and iCount is zero. ...
Score Array equality
Edward Diener - 16 Feb 2005 10:46 PM - 5 messages
Is there any System.Array function to test to see if two arrays are equal, meaning the arrays are the same length and contain elements which are equal to each other ? The System.Array.Equals method appears to test only for ...
Score Help with WebHeaderCollection
Roy Chastain - 16 Feb 2005 7:10 PM - 3 messages
I need to download a file from a web server only if it has been modified since the last time it was downloaded.  I am looking at using WebClient.DownloadFile.  I see that I can set http headers using the Headers Property.  I see that there is a header of ...
Score Processor Serial Number
Gabriel Giraldo - 16 Feb 2005 7:01 PM - 2 messages
Hi people! Is there any way from code (VB or C#) to know the serial number of the CPU on my machine (or the machine on which an application is running)? Thanks for your help G ...
Score Diagnostics.Process get by name doesn't return command line argume
SteveC - 16 Feb 2005 6:05 PM - 2 messages
I'm trying to get the command line arguments for some running processes. When I use "Process.GetProcessesByName", the command line arguments property is null (""). Does anyone know how to get this info??     Thanks,       Steve ...
Score https connection
Felix González - 16 Feb 2005 5:52 PM - 3 messages
Hi, How can I open a connection to https server and send e file to it? Thanks ...
Score XML Serialization Weird Exception
Manuel Vázquez - 16 Feb 2005 2:15 PM - 9 messages
I was testing XML Serialization to assess if it fits my needs. I coded two methods, one dumping the XML serialized object to a file, and the other that recreates the object: static Graph Awake(string filename) {     System.Xml.Serialization.XmlSerializer s = new ...
Score get date value from a week
Guoqi Zheng - 16 Feb 2005 10:50 AM - 2 messages
We have a table which save the value of week of year. tblWeekOfYear autoid int Year int week This we use to identify a week. However how can covert the week into a date? For example, for row. year = 2000 ...
Score Setup project of .Net Framework 1.1 and Mdac 2.7
Lisha - 16 Feb 2005 9:57 AM - 2 messages
I am currently working in VB.NET project which is a desktop application with Access as database. I had made a setup project of my application. I ran the same in another machine which had Win 2000 professional as OS and no .NET ...
Score Posting using httpwebrequest
Pazza - 16 Feb 2005 7:49 AM - 5 messages
Hi, Should the form submit button click event handler fire when posting to a aspx page using httpwebrequest. In my tests the load event fires when POSTing back but not the button click event handler. I first issue a GET, extract __VIEWSTATE and then POST back __VIEWSTATE and ...
Score Adding function to Excel
Franck - 15 Feb 2005 9:03 PM - 2 messages
Hi, Using Add-In project, I can't find how to make my public functions available in Excel ? Thks for help. ...
Score what is best practises for sending out emails from .net?
Flip - 15 Feb 2005 8:12 PM - 4 messages
What are the best practises people have found for sending out emails with their web apps in .net?  I've read a few places that talk about using the System.Web.Mail namespace.  But I think that namespace requires an SMTP ...
Score .NET Framework 1.1 Configuration won't launch
Bryan Linton - 15 Feb 2005 7:53 PM - 5 messages
I get the following error when trying to launch the .NET Framework 1.1 Configuration Snap-in:     Snap-in failed to initialize.         Name:.Net Framework 1.1 Configuration         CLSID:{1270E004-F895-42BE-8070-DF90D60CBB75} ...
Score Creating Collections in Classes
Anonymous - 15 Feb 2005 7:51 PM - 5 messages
In: microsoft.public.dotnet.framework.performance Hi, can someone give links either in msdn.microsoft.com or other sites that tell me what are the best ways to create Collection properties in a class written in Visual Basic.NET? Eg., say I  create a Class that instantiated allows you to get a property of ...
Score scheduled windows task
ajit - 15 Feb 2005 7:15 PM - 2 messages
How to write a scheduled windows task . Not a windows service I want to schedule this exe in windows task scheduler. Thanks ajit ...
Score dll inside a dll?
oscar - 15 Feb 2005 6:41 PM - 2 messages
is it possible to reference a dll that is inside another dll? in our program we have a solution called functions.dll and we are also using the mysql.data.dll in all our other solutions.  is there a way to reference ...
Score Microsoft: Help with OLE documents...
VBen - 15 Feb 2005 5:35 PM - 3 messages
Hi all. I have an application to draw and design different documents, that supports linking and embedding of other documents (like, for instance, Corel Draw or Word). Then, the user can print their designs "WYSIWYG", so I load the external document inside an OLE document container control (VB6), get a ...
Score How to Deserialize to a specific object instance.
MP - 15 Feb 2005 2:19 PM - 8 messages
Hi,     I would like to be able to deserialize a stream to a specific instance. Deserialize returns me a new instances and that is not really what we need, we need to deserialized to an existing instance. Can anyone point me in the ...
Score VS 2002 and Framework 1.0/1.1 SP upgrades
MikeM - 15 Feb 2005 1:49 PM - 2 messages
This is a question regarding service packs for the .NET Framework.  We are still using Visual Studio .NET 2002 development environment to write our ASP.NET apps.  However, on our app servers we also have .NET Framework 1.1 ...
Score How to disable event
Dudi Nissan - 15 Feb 2005 12:41 PM - 3 messages
Hello, I am writing vb .net win form application. The code for disable button event at C# is: button1.Click -= new System.EventHandler(button1_Click); How can this be done at vb .net? Thank you. ...
Score xcel error at web server
Dudi Nissan - 15 Feb 2005 12:29 PM - 2 messages
Hello, I am writing c# web application with Excel 2000. I have Excel 2000 install at my workstation, but not at the web server. My code is: Excel.Application EXL;            ...
Score How to assign value to Excel 2000 worksheet cell
Dudi Nissan - 15 Feb 2005 12:27 PM - 8 messages
Hello, I am writing c# web application with Excel 2000. My code is: Excel.Application EXL;            EXL = new Excel.Application(); Excel.Worksheet WSheet = new Excel.WorksheetClass(); string FileName = MapPath(".") + "\\..xls"; ...
Score Excel process doesn't shut down
Dudi Nissan - 15 Feb 2005 12:27 PM - 2 messages
Hello, I am writing c# web application with Excel 2000. My code is: Excel.Application EXL;            EXL = new Excel.Application(); Excel.Worksheet WSheet = new Excel.WorksheetClass(); string FileName = MapPath(".") + "\\..xls"; ...
Score Method for finding dotnet version
sijo - 15 Feb 2005 11:55 AM - 3 messages
Hi All, I am using Visual studio 2002. The dotnet version that comes with this, is dotnet version 1.0. I have installed dotnet framework version 1.1 recently. How can I associate dotnet version 1.1 with the VS 2002 ? ...
Score Simple: Excel Jet 4.0 Link vb 2005
Rhyd - 15 Feb 2005 9:41 AM - 12 messages
I need to link an excel file to a VB.Net program, so that the host computer doesn't need excel on it to read the cells. I don't need any functions of excel, just values from cells for viewing in textbox's. ...
Score ENTER and forms
news - 15 Feb 2005 9:03 AM - 3 messages
Can I use ENTER to submit my form using C#? I have used Page.RegisterHiddenField("__EVENTTARGET", "btnFind"); This works SOMETIMES but not all the time. I saw [link] ...
Score reflector
HAKAN OTAL - 15 Feb 2005 8:18 AM - 3 messages
Do you know Lutz Roeder's Net Reflector.. it is disassembler for .net framework dll and exe. How can i protect my dll from disassemble program like this... ...
Score How does IIS or Framework set the Content-Length header ?
Arno - 15 Feb 2005 8:01 AM - 3 messages
Hello, I'm experiencing a strange problem with an aspx page. This page does NOT set the Content-Length header. When hosted on my development PC (with IIS 5.0 and ..Net 1.1), the HTTP response however contains a Content-Length header. When ...
Score Record my webcam
Eric - 14 Feb 2005 9:07 PM - 2 messages
Hello, I'm trying to record the video and audio streams from my webcam/microphone to a file on the disk.  Can someone point me in the right direction on how to accomplish this? Thanks, Eric ...
Score .net and mysql join
oscar - 14 Feb 2005 7:23 PM - 3 messages
i'm curious if there are any known issues with the 2.  i've tried it in vc# and vb and i get the same results with both. every time i run a join and it gets to a 0 or null it makes everything ...
Score RE: For vs. For Each
Othman Kinani - 14 Feb 2005 5:55 PM - 8 messages
...
Score Windows service & Web service Interprocess Communication
Sharon Gorev - 14 Feb 2005 5:19 PM - 7 messages
Hello all! I need an easy way to pass data between windows service & Web service For example pass a data set, or recordset , Both written in C# , Both  running on the same machine so I'm trying to avoid Sockets / network ...
Score How to make an assembly search for its dependent DLLs in a specific path (other than the installed d
sudhakar - 14 Feb 2005 4:33 PM - 5 messages
Hi I've two products which share lot of common DLLs. I want to create a common directory and store these common DLLS. Now how can i make my executables (or other assemblies) search for the dependecnt DLLs in this common directory ? ...
Score I need some help with remote acces to a help file
Roy Chastain - 14 Feb 2005 2:06 PM - 4 messages
I have a program that is resident in the web server.  It is one-touch installed on the client system and it is activated via URL so that it runs in IEEXEC. This program has a .chm file associate with it.  The problem is ...
Score StreamWriter.close() hangs in multithreaded execution
Jan - 14 Feb 2005 1:45 PM - 11 messages
I've got a program accessing a HTTP service to get som XML data. The code receiveing the data looks something like this: stream = new StreamWriter(httpRequest.GetRequestStream(),Encoding.UTF8); stream.Write(body); stream.Close(); The httpRequest is a HttpWebRequest object. ...
Score what is the best way to read text file
Guoqi Zheng - 14 Feb 2005 10:53 AM - 10 messages
Dear sir/lady, I need to process our web server log file every day. Normally, this file is about 50MB - 100s MB big. How can I read the file in a effective way. I can open a streamreader to read it and use readline() function to read line by line and process them. However, this sounds very slow. I can also use readtoend to read everything into a string, but then I am afraid that it will be too big for memory. ...
Score How to prevent double logins
Wagner - 14 Feb 2005 10:05 AM - 2 messages
Hi, I would like to prevent users to login more than one time with single user/password to my .NET web application at the same time. I managed to achieve this by writing combination of last access time and userid to application and session object but this solution is not stable ...
Score VS.NET & client script viewer?
Shaker - 13 Feb 2005 10:43 PM - 3 messages
Dear All, How can I access the client side scripts (javascript) for ASP.Net page. Through the IDE of Visual studio .Net AS We were did with Visual Interdive 6. There was ability to see server and client side script, and overall object,... ...
Score FTP Dir List with .NET Framework 1.1
Poewood - 13 Feb 2005 2:43 PM - 2 messages
Does anyone have knowledge of code that will get the directory list off an FTP site?  There doesn't seem to be support in .NET Framework 1.1.  I found code at the MSDN Longhorn help site but that code didn't work.  I think it ...
Score FRMWK 2 BETA VERSION PROBLEM
ac1@ac1.ac1 - 13 Feb 2005 9:49 AM - 2 messages
Hello, I have downloaded and installed the fmwk 2 beta version V2.0.40607 from the MS site. I try to install the SQL SERVER 2005 Express manager, but it needs the version 2.0.40903. Does someone have an idea where I can find that version ? ...
Score how to Drag & Drop Files?
Alex Glass - 13 Feb 2005 12:30 AM - 2 messages
I have a picture box control with an image loaded.  I would like to be able drag the image from the picture box into an email or the desktop.  Does anyone know how to do this?  Using the DoDragDrop with Outlook, i have been ...
Next » 2 3 4 5 6 7 8 9 10