|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
.NET Frameworkmicrosoft.public.dotnet.framework
GC Question
Cool Guy -
11 Jun 2005 8:10 PM - 14 messages
In the following code, is it possible that foo be garbage collected (and therefore foo_Finished() never gets entered? I'd imagine so, because there are no references to foo after Main exits. However, I can't make this ...
How to display Image without using PictureBox?
Gravity -
11 Jun 2005 4:47 PM - 4 messages
Hi, As the title indicated, does anyone has any easy solution? I found the I have trouble attaching images to the PictureBox in a separate thread. Basically it just hang there and not even catch it. I am really stuck at there. On the other hand, direct calling the function without ...
Why String.Empty is not Constant?
hB -
11 Jun 2005 7:49 AM - 2 messages
Hi. Why String.Empty is not Constant? --- hB ...
Microsoft.VisualBasic Removal
Conceptor -
11 Jun 2005 4:09 AM - 5 messages
Hi all, Should I or shouldn't I remove the reference the microsoft.visualbasic reference (project properties/Imports/Microsoft.Visualbasic)? Yes I know, the reference is still there and visible in IL code, but then at least my IDE ...
Capturing headers from Request/Response
octupul -
10 Jun 2005 9:21 PM - 5 messages
Basically I have some code that accesses an Internet Explorer interface directly through COM and the WebBrowserClass. I have access to all the navigate and alteration functionalites this provides however, when I try to obtain headers I am at a loss. The only event that seems to ...
ConfigurationSettings.GetConfig difference between .NET 1.1 and .NET 2.0 beta 2
Predrag Stanar -
10 Jun 2005 8:36 PM - 4 messages
This piece of code works flawlessly in .NET 1.1 but fails in .NET 2.0 beta 2 with following exception: Unhandled Exception: System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for customGroup/customSecti on: Could not load type 'System.Configuration.NameValueSectionHandler' from asse ...
Problem with .net and Strings
Travis Ellis -
10 Jun 2005 4:18 PM - 4 messages
I am having a problem with .net Strings. Encoding ascii = new ASCIIEncoding(); string foo = ascii.GetString( new byte[]{ 0, 0, 0, 0 } ).Trim(); if( foo == "" ) { Console.WriteLine("Empty"); // This never happens } I have noticed that when you create a string using the null characters ...
Excel process remaining
Rob T -
10 Jun 2005 3:59 PM - 3 messages
I have a routine that imports a spreadsheet which normally works fine. However, sometimes I can find excel.exe is still running as a process in the task manager and I manually need to end it. If I don't kill it, I'm unable ...
Returning Byte[] from C++ to C#
capsoncc -
10 Jun 2005 11:13 AM - 2 messages
I am creating a method that I need to return an array of Bytes. How do I return a Byte array in C++ as an output variable? In C# I can do this Calling application (C#) { byte[] attByteArray=null; ...
Find which machines do NOT have .NET Framework installed
cindy -
9 Jun 2005 11:06 PM - 3 messages
I need to include something in our 200+ users' login scripts that will tell us which machines do not have the .NET Framework installed. Anyone done this before? What file can I look for? TIA........cindy ...
CANNOT debug
MrDotNet -
9 Jun 2005 9:19 PM - 5 messages
I copy My.dll and My.PDB files into bin directory but still I CANNOT debug the code I am geting message box "there is no source Code Availble for the current location" so can you help me how I do debug. ...
How to get Drive Volume Name
Chuck Walters -
9 Jun 2005 8:14 PM - 3 messages
Is there a .net API to get the "Volume Name" of a given drive? ...
framework installation issues
JohnMSyrasoft -
9 Jun 2005 7:55 PM - 2 messages
Hi, I'm seeing lots of issues like this logged on the Net but a whole lot of solutions. I have an XP Pro SP 2 machine that I cannot get the .NET 2.0 Framework installed on. I'm using the latest dotnetfx.exe from MSDN. ...
Find Connection Object
Tom W -
9 Jun 2005 6:33 PM - 4 messages
How can I locate the currently active database connection? I'm writing a class that will be used in an application that will have one connection object. Without passing it the connection, how can I locate it? Tom ...
non resizable window forms
ve -
9 Jun 2005 5:06 PM - 5 messages
how do i make the Window.form non resizable? ...
USB power reset
Pino -
9 Jun 2005 4:58 PM - 2 messages
Hi to all. I would like to reset the power of an USB device. Are there same methods to do this action in .NET or WMI? I would like to replace the power off state, when I phisically disconnect the PC from the power supply. ...
Application dependencies
Todd Bright -
9 Jun 2005 4:25 PM - 2 messages
Is it possible to only replace the EXE of an application without replacing its dependency DLL's (or replace one of the DLL's without replacing anything else)? When I've tried this before, the application blew chunks until I also ...
Enterprise Library - Getting Started in VB?
cara_little -
9 Jun 2005 3:56 PM - 3 messages
Good Morning, I'm trying to get started with the Enterprise Library to evaluate it and recommend to the rest of the developers in the company. However, I'm having a heck of a time getting started and must be missing ...
SecurityAction RequestOptional, RequestRefuse, & more
David Thielen -
9 Jun 2005 2:41 PM - 6 messages
Hi; I have a DLL that has events that applications can register with. When those delegates fire, my DLL is in the permission call stack. In this case here is where I get confused. If I use SecurityAction.RequestMinimum- then that permission can be used by ...
catching an event(VB) raised in Assembly(C#)
Irene -
9 Jun 2005 1:46 PM - 3 messages
I have an Assembly written in C# and its app in VB. In the Assembly an event is raised, and it is consumed by the app. The problem is whenever the event happens, its handler (VB) in the app is ...
Is there a NumericBox rather than TextBox in C# compact .net
Gravity -
9 Jun 2005 11:51 AM - 5 messages
Hi, As the title indicated, any ideas? Basically I want to have a EditBox to enter network port number. I had using convertion from text to number, but the results messed up with the following codes; Byte[] f_bytePort = System.Text.Encoding.ASCII.GetBytes(textBox_Port.Text); ...
Connected users list
Mircea Pleteriu -
9 Jun 2005 6:53 AM - 2 messages
Hi, How to get the list of the users connected to my system? ...
Zip file while Chinese or Japanese Characters.
Shrek -
9 Jun 2005 5:11 AM - 6 messages
HELP! I write a C# class which uses J# class java.io.FileOutputStream,java.util.ZipInputStream and so on to do operations on zip file. For example: When I add a file '1.txt' into 'hah.zip',everything goes well. ...
assembly security/permission question
David Thielen -
9 Jun 2005 12:07 AM - 4 messages
Hi; I have a library DLL and in my AssemblyInfo.cs I want the permissions to say that the dll does not ever call the file dialogs. But I do NOT want to stop other parts of any program that connect to my library from using the file ...
Supress message boxes in AxWebBrowser?
Aaron Pfeifer -
8 Jun 2005 11:56 PM - 4 messages
Here's the problem: I've got an AxWebBrowser control on a form that I'm writing in c#. I have an algorithm which navigates through different pages on the control. I'd like to be able to supress message boxes that pop up while I'm navigating the ...
GetType from custom class library
baffled -
8 Jun 2005 11:09 PM - 3 messages
I'm baffled, please help!! I have a class library (MyClassLib). A class in the class library (AClass) is a simple class not derived from anything with basic methods and properties. I need to be able to get a Type object of the ...
[BUG] LoadLibrary fail (sometimes) in the debugger (only)....
Lloyd Dupont -
8 Jun 2005 10:52 PM - 12 messages
I have this very simple program (attached)(~30 lines) which call LoadLibrary to load libraries. I notice that *some* library fail to load in the debuger... ?!?!? In fact I have the sample here: [link] (which ...
Pausing and Resuming Threads cause High CPU Utilization
MVB -
8 Jun 2005 8:41 PM - 8 messages
I have implemented Thread.Suspend and Thread.resume for pausing and resuming threads respectively. It works fine,But the only thing that I noticed was,when I suspend my thread,the CPU utilization goes to 99-100% Why would this happen?And is there a workaround for this or is there any ...
newbie: RichtextBox
Peter Schmitz -
8 Jun 2005 8:31 PM - 4 messages
Hi, just one question: I placed some code in my RichTextBox's keyPress handler (VB.net), and now I want to know at which current position (index) in my RichTextBox.Text the new char would be inserted. Can anyone help? ...
Cannot save file to network: UNC path should have the form \\server\share.
cnathaide -
8 Jun 2005 8:23 PM - 4 messages
I have developed a .NET application using C#. It has been installed at a client site on a Citrix server, and a new version was just released. Now the users inform me that when they try to save files to the ...
Alter regex to allow a url to span multiple lines.
recoil@community.nospam -
8 Jun 2005 6:41 PM - 2 messages
(http|ftp|https):\/\/[\w-_]+(\.[\w-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])? I have the following RegEx which extracts URL's from texts. It does a very good job however i need it to be able to match something like [link] ...
Data Access...
Ty Salistean -
8 Jun 2005 6:18 PM - 14 messages
Why can't M$ allow .NET developers to run ANSI standard SQL queries on ADO.NET datatables/datasets (SELECT, INSERT, UPDATE, DELETE)? This will allow other developers to learn ANSI syntax and be able to utilize SQL Server without much learning curve. I bet there are people out there ...
Coloring text
Peter Schmitz -
8 Jun 2005 5:56 PM - 3 messages
Hi, how can I automatically change the color of specific words in my RichTextBox (VB .NET). The feature I want to create is similar to the feature that's included in VS.NET: Some specific keywords are colored. How can this be done? ...
Using the thread pool properly.
Jim Kitterman -
8 Jun 2005 4:20 PM - 4 messages
i Currently have a vb.net application that iterates through a selected directory structure. I have 6 threads running all iterating through different folders and does an insert into sql database. The 7th thread would start sporadically at best sometimes not at all. I would like to use the ...
how to do memory allocation in C# need help
Naveen koul -
8 Jun 2005 12:56 PM - 2 messages
Sir , I am new to c#, I am unable to allocate memory to this structure. can anyone please tellme how can we allocate memory to this strucutre. struct matrix { public int row_dim; ...
.NET Framework 2.0 Beta 2 Configuration Snap in failure
Bruce Ramsey -
8 Jun 2005 10:16 AM - 5 messages
After installing the new Beta 2 .NET 2.0 framework on a Win2k3 (64bit) machine, the Framework 2.0 Configuration MMC won't start, I get the follow message: Snap-in failed to initialize. Name: .NET Framework 2.0 Configuration ...
Not creating window handle
trialproduct2004 -
8 Jun 2005 5:01 AM - 2 messages
Hi all I am having problem in dot net application. I am getting lots of errors while running this application. But no exact sceanario is found. First error i am getting is 'error in creating window handle'. Which is occuring if i run application continuously for nearly 30 minutes or for ...
Obtaining the URL from an Internet Shortcut
Rich S. -
8 Jun 2005 4:06 AM - 2 messages
Hello, How does one use the IUniformResourceLocator interface from C# in order to get the URL that an internet shortcut points to? Is there a specific reference I should add to my project? Thank you very much, Rich ...
Window class name
AlexS -
7 Jun 2005 11:49 PM - 5 messages
How can I set class name for my form in .Net? For example, my app main form has class name like WindowsForms10.Window.8.app3 is it possible to change it? Tx Alex ...
Mac Moves to Intel - Anything for CLR?
Richard Myers -
7 Jun 2005 11:07 PM - 3 messages
Hello, With Steve Jobs recently confirming the Apples move away from the IBM Power PC chipsets and over to Intel, Im wondering what, if anything, will this mean for the .NET framework and a potential Mac based CLR? On the face of it Im thinking this means very little. With the CLR ...
Dynamic SQL generation for the UpdateCommand
John -
7 Jun 2005 9:22 PM - 3 messages
I upgraded the MDAC to 2.8 on a server/system that has been in operation for several months, but now get the following error: Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information. ...
MemoryStream.Write() Offset cannot be zero
Gravity -
7 Jun 2005 8:05 PM - 6 messages
Hi, I am using the MemoryStream class with the member function, Write( ). I found that the 2 parameter, which supposed to control the offset of the destination cannot be zero. As long as it is non zero, like 1, 2 or 3, it ...
framework redistributable vs languages
kenneth@nospam.nospam -
7 Jun 2005 6:20 PM - 3 messages
BASED ON CREATING INSTALLATIONS FOR AROUND THE WORLD: What is the difference between different versions (english,german,etc) of the v1.1 framwork resdistributable? When creating an installation for your application, where you want to pre-install the framework, does it matter which version you use? ...
out of Memory exception
cmies -
7 Jun 2005 5:57 PM - 12 messages
I hope someone can help. I have an application whose purpose is to suck files into memory and read through them. These files can't be read sequentially. This has worked like a charm for over a year... file sizes are anywhere from a few hundred bytes ...
What is the PostMessage(to self) equivilent in .NET?
David Thielen -
7 Jun 2005 5:32 PM - 3 messages
Hi; In the windows API you could call PostMessage() to yourself (the window you are in). Is there an equivilent in .NET so I can cause an event in my form to trigger after all events presently in the queue complete? ...
SecurityException on GetTempFileName()
David Thielen -
7 Jun 2005 5:24 PM - 16 messages
Hi; This is driving me nuts because it should work. In my AssemblyInfo.cs I have: [assembly:CLSCompliant(false)] [assembly:ComVisible(false)] [assembly:IsolatedStorageFilePermission(SecurityAction.RequestMinimum, UserQuota=1048576)] [assembly:SecurityPermission(SecurityAction.RequestMinimum, UnmanagedCode=true)] [assembly:FileIOPermission(SecurityAction.RequestMinimum, Unrestricted=true)] ...
Control.Invoke
Cool Guy -
7 Jun 2005 5:20 PM - 2 messages
If I call Control.Invoke on a worker thread, which thread gets blocked: the worker thread or the main (GUI) thread? ...
modal DLL calling
Elisabete de Moraes -
7 Jun 2005 5:10 PM - 3 messages
Hi everyone, I have a .Net dll that instantiates other .Net dll's and win32 dll's, through LoadLibrary and System.Reflection.Assembly namespace. That's working fine. I need .Net dll (caller) to wait till the end of the called function / ...
My application object is nothing on a network drive
NICOLAS Julien -
7 Jun 2005 4:03 PM - 7 messages
Hello, I have a dotnet dll file. This dll is to use MS Project by VB. When I am launching my application from a local drive (c:\mylocapp) : no problem The Problem is when I am trying to launch my application from a network ...
View Assembly Cache information remotely?
tron9901 -
7 Jun 2005 4:03 PM - 4 messages
In .NET Configuration 1.1 - Assembly Cache, there's a link called "View List of Assemblies in the Assembly Cache." I need to look at that information on several Windows 2000 Advanced Servers. Is there a way I can view this list remotely? Without having to ...
Pass Parms to script via Process class
Billy TheKid via .NET 247 -
7 Jun 2005 4:00 PM - 2 messages
Using the Process class I need to pass some parameters to the .vbs file i am Starting Code so far Dim ShellProcess as new Process ShellProcess.StartInfo.FileName = strVBS ShellProcess.StartInfo.UseShellExecute = True ShellProcess.Start() how do I pass parameters to the Start method? ...
.NET Memory Problems
Prasad Dannani -
7 Jun 2005 3:46 PM - 5 messages
HI, I am a C#.NET Developer. I created a windows application which is taking too much memory. But my code is calling dispose methods of all objects and assigning null them. I don't know why is it happening After that i tried the GC methods it worked ...
performing pre-batch compilation
julio -
7 Jun 2005 2:27 PM - 2 messages
Hi, I need some article about performing pre-batch compilation. Can any help with this topic and find this articles? Tia Julio ...
GC.Collect doesn't trigger finalizers?
Conceptor -
7 Jun 2005 2:12 PM - 11 messages
Hi all, I am building a VB.Net app on Framework 1.1 using VS.Net 2003. I have a special logging *singleton* class that needs to do work once every object in my application has either finalized or been disposed of. ...
GC.Collect doesn't trigger finalizers?
Conceptor -
7 Jun 2005 2:11 PM - 2 messages
Hi all, I am building a VB.Net app on Framework 1.1 using VS.Net 2003. I have a special logging *singleton* class that needs to do work once every object in my application has either finalized or been disposed of. ...
Runtime Control Of XML Serialization (Elements vs. Attributes)
grwalker -
7 Jun 2005 11:39 AM - 2 messages
I have some classes that have the <Serializable()> attribute applied, which of course by default serializes the class properties as elements. What I would like to do is to be able to override this behavior at runtime to serialize the properties as attributes. ...
Install windows service from command line
Brecht Yperman -
7 Jun 2005 11:23 AM - 3 messages
Hi, I'm trying to create an application that's, in normal use, nothing but a simple console application (a server), but can install a service if certain arguments are passed through. (compare with, for instance, mysqld and mysqld --install). ...
Checking version...
NICOLAS Julien -
7 Jun 2005 8:58 AM - 3 messages
Hi, I need to know if the framework was installed in the computer and after that checking the version of it to be sure that I can use my .net application on the machine. thanks for your help ! JULIEN. ...
ASP mail component
AVL -
7 Jun 2005 8:47 AM - 2 messages
Hi, What is ASp mail component? where can i find more info abt it? Is it a freeware or do i need buy it? ...
Curious: static void Main() does not to be public?
Neo The One -
7 Jun 2005 7:40 AM - 2 messages
I just found that program entry point static void Main() does not need to be public! Is that an violation of language infrastructure and runtime security? ...
attribute?
pinetaj -
6 Jun 2005 11:46 PM - 4 messages
This question is about serialization of .NET. Why a class to be serialized should be defined with [Serializable] attribute? Is it just a security concern so that a run-time system(CLI) knows that the class shouldn’t be serialized? Or is there any other reason like a class ...
TCP Socket not working - Logic issue?
Gravity -
6 Jun 2005 7:19 PM - 10 messages
Hi, I have a TCP server running on my desktop. While another TCP client running on my laptop. Both written in raw C/C++ and they work perfectly fine. Now I am developing socket application using C# on the same laptop as TCP ...
Populate DataReader
Roby Eisenbraun Martins -
6 Jun 2005 6:58 PM - 3 messages
Hi, How can I populate a DataReader without connection or command? or Hpw can I store a lot of data in a better way? I don't have all the data at once. Thank you, ...
Hash File Stream?
Sebastian Dau -
6 Jun 2005 6:03 PM - 2 messages
Hello, I'm writing a security related application in .NET 1.1 and I wonder how I compute hashes from very large files (up to 1 GB). Does anybody know a good pattern of how to create a stream from a binary ...
FrontPage Extensions
Frank Baed via .NET 247 -
6 Jun 2005 3:12 PM - 2 messages
I am creating an ASP.NET Web Application, but I am not using file share, I want to use FrontPage extensions. MS Devel Environ wont let me set up the project because "the project folder can't be opened with FrontPage." I have tried reinstalling FrontPage Extensions and got an error message which says, You must first install IIS 4.0" I looked in Administrative Tools and sure enough my workstation does not have an IIS. What am I missing? What do I need to install to give me IIS 4.0 or greater? ...
What is DWORD equivalent in C# .Net?
Gravity -
6 Jun 2005 2:24 PM - 3 messages
Hi, As the title indicated, does anyone know the answer? ...
How to return the pointer of int32 in C# .NET?
Gravity -
6 Jun 2005 2:23 PM - 4 messages
Hi, I am a bit shocked that C# got nothing to do with C/C++. Here is what I wanted to do; Int32 f_nSomeValue = 200; // Supposed to be 4 bytes long in length, right? MemoryStream f_MemoryStream = new MemoryStream(20); ...
Save a System.Drawing.Color in the db
Richard Brunet -
6 Jun 2005 2:15 PM - 3 messages
Hi, I have a DataTable that has a Color type DataColumn. I use OleDbDataAdapter.Update(myTable) to update the db. Is there a place(an event?) where i can do a type conversion from Color to string (or int) so ...
[OT] NNTP/newsgroup server
Lloyd Dupont -
6 Jun 2005 11:27 AM - 3 messages
Does anybody of you know about company hosting newsgroup server? I google like a madman but I'm rather unsuccesfull so far .. :( ...
Self populating collection
bblac -
6 Jun 2005 11:10 AM - 2 messages
Hi Has anyone encountered the following situation (I cant believe I am the first.) As part of a system I am designing I require a collection class that populates itself. So far I have a design along the following lines. ...
MSCORCFG
Chris Holland -
6 Jun 2005 10:43 AM - 5 messages
I have just installed the Beta of the .Net framework version 2 on a test machine here and it does not install the mscorcfg.msc file anymore - where has this gone? ...
[OT] about VC# express
Lloyd Dupont -
6 Jun 2005 9:31 AM - 3 messages
is it legal to develop commercial application with VC# express? ...
DBConcurrency Exception Handling
Salim -
6 Jun 2005 9:29 AM - 3 messages
hi, I am creating a dbconcurrencyexception in my program. Update fails with 0 rows affected message. Because I changed the data in DB from SQL server front-end after my grid fills with data. i followed the example in msdn. in ...
Implementing an interface by relying on base class
Gareth -
6 Jun 2005 8:59 AM - 2 messages
Hi, I'd like to do be able to implement an interface in a derived class by relying on the base class for some of the members. For example like this: Interface ITest Property prpA() As Integer ...
Regular expression induced the program can't respond
ch2x -
6 Jun 2005 5:48 AM - 2 messages
Now I have a regular expression: string pattern = @"[\s\S]*?(?<content>\<div id='news'\>\<div[\s\S]*?\<\/div\>[\s\S]*?\<\/div\>)[\s\S]*"; I want to use this pattern to match a html file's content,and replace the ...
Gridview, using Callbacks when Sorting and Paging
ck388 -
6 Jun 2005 5:21 AM - 2 messages
For some reason when I enable the callback feature of the gridview I still get a page refresh, that is it seems like there is a postback that occurs, not a callback which is just supposed to update not the ...
Send mail in BOTH html and text formats
Amil Hanish -
5 Jun 2005 9:09 PM - 4 messages
How can I send an email and include BOTH html and text format? Yes, I already know this is supported in framework 2.0...but how can I do it in 1.1? amil ...
FileStream.Read method
Roby Eisenbraun Martins -
5 Jun 2005 8:08 PM - 2 messages
Hi, Do you know how the method FileStream.Read populate the Char array if we don't use out or ref? Thank you, Roby Eisenbraun Martins ...
Read File Fast
Roby Eisenbraun Martins -
5 Jun 2005 8:03 PM - 6 messages
Hi, Which one is the fast way to open a file and read it. If possible without buffers and any other kind of conversion. I need one step from the harddisk to the Array. Right now I am using FileStream. Is this the best way? ...
Enable a windows form over another one?
panda -
5 Jun 2005 7:25 PM - 3 messages
I want to disable a form after opening a new one in front of it and i use the enable property for this as Form4 newForm = new Form4(); newForm.Show(); ...
How to do simple memcpy in C#?
Gravity -
5 Jun 2005 9:31 AM - 7 messages
Hi, I am very new to C#? How could I do a simple memcpy (in C/C++) in C#? Example; I have a Byte[] Data = new Byte[500]; And I want to copy various things like int32, other bytes etc into various ...
|
|||||||||||||||||||||||