Home All Groups Group Topic Archive Search About

.NET Framework

microsoft.public.dotnet.framework
Score hello
Ravindra - 8 Jul 2006 5:35 AM - 2 messages
Hi all, I have to create a toolbar for IE and firefox.dont know where to start from. Can anyone help in this... ...
Score Finding disk space on UNC drive
eric.goforth - 7 Jul 2006 6:42 PM - 1 message
Hello, I'm trying to find the available disk space on a folder using VB.NET. I tried using:             Dim Info As New System.IO.DriveInfo(sAttachmentDir)             Console.WriteLine("Total disk space " & Info.TotalSize) ...
Score Overriding non-virtual methods using IL and Reflection.Emit
rfuller987 - 7 Jul 2006 5:48 PM - 5 messages
Is it possible to override non-virtual methods using Reflection.Emit. I'm creating dynamic proxy classes at runtime and I want to be able to proxy all public methods on an object, regardless of whether the object author happened to mark them as virtual or not.  Is this possible? ...
Score Can "InitializeComponent()" info be captured
Larry Smith - 7 Jul 2006 3:28 PM - 5 messages
Hi there, Don't know if I picked the correct NGs or not but maybe someone can steer me in the right direction. Does anyone know if a class exists to capture the same info now wrapped in "InitializeComponent()". I want to capture all form ...
Score Limit bandwith of my application
DCaballero - 7 Jul 2006 3:22 PM - 6 messages
Hi, I've seen on some applications like emule, options on limiting the amount of outgoing and incoming bandwith the application uses. How can I incorporate this into my application? Is this done with the .NET network classes, or do I have to go to C++ ...
Score Assembly.LoadFrom failing in .NET 2.0
John H - 7 Jul 2006 3:18 PM - 2 messages
Hi, We have an application that generates .NET assembly DLLs at runtime and executes them. It normally generates the assembly DLL once per user task and any time the same user task is done again it simply loads the already existing DLL and executes it. ...
Score webclient class usage
FutDev - 7 Jul 2006 2:24 PM - 2 messages
Hello, I'm trying to input data into a web page and read the response page. This is easy enough with the webbrowser class but I cant get it to work with the webclient class. I've tried all the UploadValues, UploadData methods etc but ...
Score Shared trace listener problem
wozzer - 7 Jul 2006 8:56 AM - 1 message
I am experiencing a problem with shared trace listener when debugging with Visual Studio 2005. I have a custom trace listener defined as a shared listener and it is referenced from the trace section and from a trace source section in the config file. The problem is that the TraceListener is created ...
Score Shell, executes but no GUI is displayed .NET 2.0?
Rob R. Ainscough - 7 Jul 2006 4:50 AM - 7 messages
Situation: ..NET 2.0 based Windows Service Have a timer event in the service     Private WithEvents ServiceTimer As New System.Timers.Timer(30000)     Private Sub Check_Updates(ByVal sender As Object, _                               ByVal e As System.Timers.ElapsedEventArgs) ...
Score Inductive UI
Peter Morris [Droopy eyes software] - 6 Jul 2006 8:50 PM - 4 messages
I have read a little about this.  It is the new UI approach in Longhorn, but will it be part of Windows or will it be part of dotnet X? I want to take this kind of approach but I don't want to have a requirement ...
Score Windows authentication over remoting... possible?
ThunderMusic - 6 Jul 2006 7:48 PM - 15 messages
Hi, I have to develop an application that will consist of a service and a windows forms application...  the service could be on a distant server but I need to authenticate the user as being part of the same domain. so when the ...
Score strong name error
Tom - 6 Jul 2006 7:26 PM - 2 messages
Going through the upgrade process from VS.Net 2003 to 2005.  Receiving the following error (which I see reported by others): Use command line option '/keyfile' or appropriate project settings instead of 'AssemblyKeyFile' For my purposes, strong names in released apps is required as the assemblies ...
Score NotifyIcon Close Events
Mark Ehrhardt - 6 Jul 2006 7:22 PM - 2 messages
When a user clicks on a balloon created by the Framework's NotifyIcon class there seems no way to tell the difference between a user clicking on the X close button and clicking anywhere on the balloon. When the user clicks on the X close button no click event is generated. ...
Score XML Deserialization problem
zemnon - 6 Jul 2006 6:45 PM - 3 messages
Hello guys, Here is a part of XML I am getting from a huge XML file: <Task xmlns="http://al-lighting.com/alcheck/Namespace/AL">   <Name>String</Name>   <Script>     <ScriptFilename>String</ScriptFilename> ...
Score specfying units in cm
madhur - 6 Jul 2006 6:35 PM - 2 messages
Hello I want to specify the units of my controls in cm. I have looked the Unit class , it doesn support cm. However the UnitType enumeration has cm in it. I looked the UnitConverter class but Couldn find the way to specify my ...
Score Exception using SmtpMail.Send method
olrt - 6 Jul 2006 5:14 PM - 8 messages
Hello, I checked the SmtpMail.SmtpServer I checked the recipients address of the message I checked the sender address But still have the following exception when SmtpMail.Send :-( :: ----------------------------------- Failed to send message : System.Web.HttpException: Unable to create object 'CDO.Message'. ...
Score Access members of generic types
Benjamin - 6 Jul 2006 2:53 PM - 1 message
Hi!         Dim policies As Microsoft.Web.Services3.Design.Policies         policies = Microsoft.Web.Services3.Configuration.WebServicesConfiguration.PolicyConfiguration.GetPolicies()         Dim assertion As ...
Score WebBrowser: detecting/controlling Word Docs, PDFs, etc.
Tom - 6 Jul 2006 10:38 AM - 2 messages
I'm using a WebBrowser control in my .NET application to display Word documents, PDF's, etc... which I want to be able to simply Print (on request) and Close when finished with (otherwise Word holds control of the document, even when the WebBrowser object is closed). ...
Score The type initializer for "HeaderEncoding" threw an exception
TopBanana - 6 Jul 2006 9:57 AM - 12 messages
Hi I wonder if anyone has seen this before? I have two machines running exactly the same code.  On the first, it works perfectly, on the second I get the TypeInitializationException 'The type initializer for "HeaderEncoding" threw an exception'. ...
Score What is the best way
l.costa - 6 Jul 2006 8:37 AM - 2 messages
Hi all thanks to give me you point of view regarding this question. I have a portal [link] with some sub domain like job.website.com event.website.com etc… I would like when a user is authentified, in one of this portal, I would like to re-use is Session for all portal I have (No need to log in again any more) what is the best practice or the idea. ...
Score Visio Activex Failing when launching using thread - MVP Please - Very important
Shahzad Godil - 6 Jul 2006 4:35 AM - 1 message
VB.net solution with this issue [link] Required Visio 2003. I have one remoting server which is launch Visio activex based application on remote request. I have this code to launch my application.  But it is giving "Class Not ...
Score ToolBoxBitMap attribute issue in 2.0?
schneider - 6 Jul 2006 3:53 AM - 1 message
There is a problem with the ToolBoxBitmap attribute in VS2005/.NET 2.0. I have projects which worked in VS2003 and nolonger work in VS2005/.NET 2.0. (was a pain in 2003 also). Anyone have a sample VS2005 project that works? Every proj i have seen ...
Score merge images
Crespo - 6 Jul 2006 2:51 AM - 1 message
hi,everyone    I have a question about merging images. I want to merge serval tiff images into one file using C#,that means the final file has multiple frames.My problem is that I want each frame in the final file is of ...
Score CRT version mismatch
wanzelbin - 5 Jul 2006 11:26 PM - 2 messages
A dll I've written in umanaged C++ on VS 2005 pro has an automatically generated, embedded manifest that refers to version 8.0.50608.0 of the CRT (msvcr80.dll). Looking through WinSxS on the same machine, there's only a version ...
Score .net 1.1 broken on win 2k3 - help urgent please
OliviuG - 5 Jul 2006 11:14 PM - 3 messages
..net 1.1 installed by default 2.0 was installed on top I need to un-install 2.0 and after running the MSI for our project I am getting this in the MSI log: 1: {E03A155E-F6DB-450A-98E9-C43119FC93B0} 2: ...
Score minimum installation
Nalaka - 5 Jul 2006 5:29 PM - 7 messages
Hi, I have visual studio professional edition (2.0). Boss asked to install the minimum required to run asp.net 2.0 on the server. I have a xcopy type installtion (where I copy my source files to the server) ...
Score Windows Service using System.Threading.Timer and Windows AutoUpdate (XP)
Brent Dunham - 5 Jul 2006 4:17 PM - 3 messages
Hello, I've written a C# Windows service that starts a System.Threading.Timer that should fire every minute. It has been working perfectly until Windows Update applied some updates. Once this happened (on all machines running this service) the timer stops firing. This has cuased some issues with out ...
Score TextChanged fires twice.
Eric - 5 Jul 2006 3:56 PM - 4 messages
I'm a bit new to this Windows Forms thing and a bit lost on this one. This app I'm on has a TextCell class (inheriting from something called TableCell, which in turn inherits from Panel) with a TextBox.  This ...
Score Traffic limiter/filter
DCaballero - 5 Jul 2006 3:28 PM - 1 message
We need to build an application which blocks network traffic in the client computer of any application other than 1 we want, and also that we can limit the amount of data transmission to a certain bandwith like 32k. I know this might sound harsh on the user and stuff like that, but this ...
Score Working with Collections and Datagrids
Guy Thornton - 5 Jul 2006 12:59 PM - 7 messages
I have an application that is using Datagrids to display a collection of objects (.Net 1.x, VB.Net environment using Collection Object).  The Collection Object, lets say holds a collection of Customer Objects. I want the datagrid to be editable, so that users can enter data through the ...
Score Class Not registered on STA Thread with ActiveX Control
Shahzad Godil - 5 Jul 2006 10:56 AM - 2 messages
I have one remoting server which is launch Visio activex based application on remote request. I have this code to launch my application.  But it is giving "Class Not registered" error in InitializeComponent of form which has ActiveX control. ...
Score FileShare question
Rembo - 5 Jul 2006 10:47 AM - 2 messages
Can anyone tell why I can't create the second filestream object? Stream s1 = new FileStream("C:\\test.txt", FileMode.Open, FileAccess.ReadWrite, FileShare.Read); Stream s2 = new FileStream("C:\\test.txt", FileMode.Open, FileAccess.Read, FileShare.Read); FileShare.Read should make it possible just read the file after it is ...
Score DateTime.Add() query
madhur - 5 Jul 2006 10:07 AM - 5 messages
Hello If I create a DateTime instance like this : DateTime d=DateTime.Now(); And then d.AddDays(3); The 3 days doesnt get added to it. But If I do like this : DateTime d=DateTime.Now.AddDays(4); The days gets added correctly. ...
Score Removing the " Web Form Designer Generated Code " region after converting from ASP.NET 1.1 to ASP.NE
Nathan Sokalski - 5 Jul 2006 3:24 AM - 7 messages
I recently converted some ASP.NET 1.1 projects of mine, created with Visual Studio .NET 2003, to Web Application Projects in Visual Studio .NET 2005 so that I could use ASP.NET 2.0 (All my ASP.NET is done using VB.NET). After ...
Score CheckIfInstallable method locks the file
Stefano - 4 Jul 2006 11:08 PM - 5 messages
Hi all, when I try to use the CheckIfInstallable  method of System.Configuration.Install.AssemblyInstaller on a file not installable, I correctly get an exception, but then the file checked remains locked by the application until I close the program (e.g. I can't delete the file or ...
Score SelectSingleNode Issue
Bob Mixon [SPS MVP] - 4 Jul 2006 9:18 PM - 3 messages
All, There are so many newsgroups these days, I am not sure if this is the correct one I should be posting to; if not, I apoligize! I have the following xml file, this was generated by the .NET disco.exe utility. ...
Score ToolBoxBitmap attribute does not seem to work in .NET 2.0!
schneider - 4 Jul 2006 9:11 PM - 1 message
The ToolBoxBitmap does not seem to work in .NET 2.0? Anyone have a VS2005 project that shows that this works? I have several projects which worked in VS2003 but nolonger work in 2005... Thanks, Schneider ...
Score Using AddOutParameter and the DAAB
Pete - 4 Jul 2006 7:56 PM - 4 messages
Hi, I'm running into an error while trying to get the output value of an identity column.  In my database, the identity column is of type 'bigint', which is what seems to be causing the problem. The DAAB syntax I'm using for adding in an output parameter is: ...
Score SerialPort.GetPortNames() returns incorrect port names?
Vile - 4 Jul 2006 4:28 PM - 5 messages
SerialPort returns incorrect port names for virtual COM ports. In my case it reports "COM5i" instead of "COM5" for Siemens MC35i terminal Hyperterminal shows "COM5". SerialPort.Open() doesn't work with these names - Incorrect port name error. Who knows how to get the correct names ? ...
Score Problem in Importing data from Excel (Urgent)
Abhijeet Kumar - 4 Jul 2006 11:05 AM - 3 messages
Hi I am using following code to Import data from Excel File in .NET 2005 DataSet myDataSet = new DataSet(); string strConn = @"Provider = Microsoft.Jet.OLEDB.4.0; Data Source = c:\test.xls;Jet OLEDB:Engine Type=5; Extended Properties=Excel 9.0"; ...
Score Is WMI supported in Compact Framework 2.0
netcommander - 4 Jul 2006 10:23 AM - 2 messages
Can anyone tell me if Windows Management Instrumentation (System.Management namespace I think) is supported in the CF 2.0 so I can discover information about a device such as a PocketPC or SmartPhone? ...
Score Disable error reporting
Lucvdv - 4 Jul 2006 10:20 AM - 2 messages
At [link] it is explained how error reporting can be disabled for Office. Can this also be done for the .Net framework? Or even better, can the errors for which a report is generated be filtered ...
Score Making my own classes compatible with TransactionScope
Steve B. - 4 Jul 2006 9:50 AM - 1 message
Hi, I'm using TransactionScope to make updates in a DB. Within the same TransactionScope, I execute custom code. How can I make this code "compatible" with TransactionScope ? ex: using(TransactionScope ts = new TransactionScope()) { myCmd.ExecuteNonQuery(); myCmd2.ExecuteNonQuery(); myCustomObject.ExecuteSomeCodeIWrote(); ...
Score sending mails
Crespo - 4 Jul 2006 9:05 AM - 2 messages
hi,every one!     I have a question about sending emails.My codes works well over some smtp servers,but doesn't over the others. My codes is listed belowed:     try    {      MailMessage mailObj = new MailMessage(); ...
Score question about sending email
Crespo - 4 Jul 2006 9:04 AM - 8 messages
hi,every one! I have a question about sending emails.My codes works well over some smtp servers,but doesn't over the others. My codes is listed belowed:     try    {      MailMessage mailObj = new MailMessage(); ...
Score merge images
Crespo - 4 Jul 2006 8:44 AM - 1 message
hi,everyone    I have a question about merging images. I want to merge serval tiff images into one file using C#,that means the final file has multiple frames.My problem is that I want each frame in the final file is of ...
Score RegAsm : error RA0000 : the specified module could not be found
sureshmylavarapu - 4 Jul 2006 8:39 AM - 1 message
Hi all, I have an assembly dll. while trying to register it using regasm regasm x:\source\qryserver\NVserver\bin\debug\NVServer.dll. I had successfully registered the same on other machines, I registered this some time back even opn my machine, but now I formatted my machine ...
Score AppDomain just like Winword
Shahzad Godil - 4 Jul 2006 6:16 AM - 2 messages
I am able to keep same process for my different instance of my application when we are launching "New Document" in our application using AppDomain.CurrentDomain.ExecuteAssembly.  Only issue is that one instance is running, on double click on exe in explorer, it is creating seperate process ...
Score Cannot Create Data Connection
JamesJ - 3 Jul 2006 10:38 PM - 2 messages
Just installed Visual Basic 2005 Express Edition. Off to a very fast start. When attempting to link to a data source which is a ms access database I get the following error (if I wrote it down properly). Format of the initialization string does not conform to ...
Score DPAPI User Store... Access denied?
iScanTeam@community.nospam - 3 Jul 2006 10:26 PM - 1 message
Dear All: I've spent the past three days attempting to implement the DPAPI w/User Store solution reccommended by Microsoft ([link]), and after following the instructions exactly, I recieve an error of the ...
Score Visual Studio .NET 2005 using Web Application Project
Nathan Sokalski - 3 Jul 2006 9:22 PM - 6 messages
Because I wanted the builds for my ASP.NET sites to be a single *.dll in a /bin/ directory (like VSNET 2003), I decided to try the Web Application Project download. However, I am still pulling my hair out because it doesn't ...
Score Method.property string
StumpedSteve - 3 Jul 2006 8:53 PM - 7 messages
In the framework of most OOP is the underlying ability to string commands like Thread.CurrentThread.GetHashCode().  I have tried to find how this is done, unsuccessfully I might add.  I feel that it possibly one of those ...
Score How to generate automatic win-forms for SQL Server's tables?
ABC - 3 Jul 2006 4:46 PM - 3 messages
I need to build many data enter forms for SQL Server's tables.  Is there any best methods to generate data forms from database table structure? ...
Score Access Private Key
Ash - 3 Jul 2006 3:01 PM - 1 message
Hi, I am trying to sign xml using SignedXml class using a certificates private key. i am using vs2005 with .net 2.0 and c#. i am having problems and now am quite confused. all i really need to do is ...
Score bug in C# generated crystal report
Romain TAILLANDIER - 3 Jul 2006 1:24 PM - 1 message
Hi group, I have a very simple report linked to a database. A big title, and a page of raw corresponding to a database row. Sometimes (can't identify when) all the lines (titles, headers, footers, lines ...) are vertically truncated. just like if the space ...
Score Moving Chat sample from Http to Ipc channel...
Nathan Baulch - 3 Jul 2006 12:23 PM - 4 messages
After failing to a solution in the remoting newsgroup, I've decided to post here also. I'm trying to convert the "Remoted Events (Chat) Sample" ([link]) from Http to Ipc ...
Score .NET exe of Webserver is not executed in .Net 2.0
Christian Schönig - 3 Jul 2006 11:33 AM - 5 messages
When I put a .NET assembly (.exe) generated with VS.NET 2003 on a Webserver (IIS) and try to invoke it over a Browser (IE) from another station the following happens: 1. under .NET 1.1 the application gets executed (normal appearance) ...
Score Best practices in .NET libraries compatible to Compact Framework
Mirek Endys - 3 Jul 2006 8:16 AM - 5 messages
Im writing .NET libraries for .NET Framework and .NET Compact Framework too. What is the best practices to write 'multi-platform (.NET Framwork / .NET Compact Framework)' libraries (Which attribute says; in my class; that this member of a class is .NET ...
Score kader
faruk.nur - 3 Jul 2006 7:07 AM - 1 message
Kader; soru:madem,herþey bir kader defterinde yazýlý ve herþey ona göre oluyor.o halde insanlar niçin cehenneme gidiyor? cevap:evet herþey bir kader defterinde yazýlý ve herþey ona göre ...
Score Microsoft.Common.targets, HELP!!!!
Søren M. Olesen - 3 Jul 2006 6:45 AM - 3 messages
Hi I'm suddenly getting the following error when I try to build a class-library, Windows Application,....: Error 1 Unable to copy file "obj\Debug\ClassLibrary2.dll" to "bin\Debug\ClassLibrary2.dll". Could not find file 'obj\Debug\ClassLibrary2.dll'. ...
Score disabling sound card
europa68 - 3 Jul 2006 3:23 AM - 2 messages
Can some one provide information on programmatically disabling a sound card.  Thanks. ...
Score ClientScript.RegisterClientScriptBlock in ASP.NET 2.0
Nathan Sokalski - 3 Jul 2006 1:00 AM - 5 messages
I am working on converting my code from ASP.NET 1.1 to ASP.NET 2.0. In ASP.NET 1.1 the RegisterClientScriptBlock method was just a key and script (2 Strings), but in ASP.NET the ClientScript.RegisterClientScriptBlock also ...
Score Blob reading problems
excession - 2 Jul 2006 4:33 PM - 2 messages
Hi I'm trying to read RTF and Word files from blob columns in SQL Server, but the files can't be opened in Word when i retreive them. They seem to contain garbage... What am I doing wrong? This is some of the code used to get the files: ...
Score debug custom assemblies
Dierk Droth - 2 Jul 2006 7:30 AM - 3 messages
Hi, My application provides a feature to load custom assemblies. The application is build in release mode (/optimize). This is .NET 2.0. As a user wants to debug his custom assembly be e.g. forcing a debugger break ("Debugger.Break()"), he experiences that he can not inspect the value ...
Score ToolBoxBitmap attribute bug/design flaw?
schneider - 2 Jul 2006 12:59 AM - 1 message
Anyone have any idea how to use this POS object in VS2005? Was working in 2003 just fine [pain to figure it out there also]. A sample project [VS 2005] would be great if anyone knows of one? Thanks, Schneider ...
Next »