|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
.NET Frameworkmicrosoft.public.dotnet.framework
How to Create Bitmap of .NET web Browser Control?
Mateusz Rajca -
9 Sep 2006 11:41 PM - 4 messages
Hi Guys! Im new to C#. How can I create a Bitmap of the Web Browser Control using the CreateGraphics Method? Thanks! Matt ...
Proper unmanaged to managed exception handling -- SEHException and
Mark Moore -
9 Sep 2006 5:59 PM - 4 messages
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 ...
Trace is causing exception
Aryan -
9 Sep 2006 9:38 AM - 3 messages
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 ...
Question about DirectoryEntry.AuthenticationTypes
Vikas Manghani -
9 Sep 2006 9:13 AM - 3 messages
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 while binding, will it also ensure that ...
Need help with Remoting question
Jayme Pechan -
9 Sep 2006 5:17 AM - 2 messages
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 ...
Mute system sound?
Olav -
8 Sep 2006 8:48 PM - 2 messages
How can I mute the PC's sound from a C# program (just as I would from the volume control in the systray)? Olav ...
An object that serializes and deserializes itself dynamically?
Steve Bugden -
8 Sep 2006 7:42 PM - 4 messages
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 ...
How to find the default value of primitive data type at runtime
Webbert -
8 Sep 2006 7:03 PM - 4 messages
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... ...
strong name validation failed: compiled in VS 2005 (.NET 2.0) but running under .NET 1.1
likong -
8 Sep 2006 5:57 PM - 2 messages
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> ...
Implement a Time-out in the waitQueue of the ThreadPool
Ashish -
8 Sep 2006 2:23 PM - 5 messages
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 ...
Shared memory still not exposed via managed classes in .NET 2.0?
nickdu -
8 Sep 2006 10:48 AM - 3 messages
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 ...
Click Once
Bishman -
8 Sep 2006 9:54 AM - 1 message
Hi, I have to deploy a click once forms application on a machine that is used by multiple users, hence multiple logons. The issue I have at the moment is that every new user invokes a new install that throws up the security dialog for the first time installation. This ...
Calling functions from old DLL library (created in .NET)
SMichal -
8 Sep 2006 8:45 AM - 2 messages
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 .-) ...
Process.ExitCode returns InvalidOperationException when starting process with RedirectStandardInput
SMichal -
8 Sep 2006 6:28 AM - 1 message
Hi, I'm starting my process and cannt get ExitCode...It generates exception - >InvalidOperationException <- StringBuilder args1 = new StringBuilder(); args1.Append("-n" + localhost + " -u" + userName + " -p" + password + " "); Process myProcess = new Process(); myProcess.StartInfo.FileName = cdHome + "Direct.exe"; myProcess.StartInfo.Arguments = args1.ToString(); ...
Play sound from microphone
Taoge -
8 Sep 2006 2:26 AM - 4 messages
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. ...
Caching and Atlas - not working?
jeffmagill -
7 Sep 2006 11:03 PM - 3 messages
Hello everyone, I've run into a peculiar road-bump that I'm hoping someone can clarify. I'm building a database application (ASP.NET 2.0, MSSQL 2000) and have implemented data source caching via polling without a problem. ...
Windows Service Security Zone
The Man From SQL -
7 Sep 2006 9:01 PM - 2 messages
Can someone tell me in which of the four security zones a windows service running under a domain account would run? I have a windows service installed under C:\Program Files\blah blah blah... so at first I figured My Computer, ...
Operating System and H/W for new Dev Workstation
Arsen V. -
7 Sep 2006 8:26 PM - 3 messages
Hi, What's the best OS to use on a Development Workstation? The dev environment includes projects in: VB 6.0, C++ (Visual Studio 6) ASP 3.0 ..NET 1.0 (Visual Studio 2002) ..NET 2.0 (Visual Studio 2005) ...
Convertin a PDF File into Word
kalamantina -
7 Sep 2006 7:10 PM - 2 messages
Hi everyone, I am trying to build a small library ( in C# and VS2003) that accepts a PDF file and converts it to a word document. During this process all alignments are to be kept. Is there a way to deo it through code, I am playing with the ...
Finding Current/Active Session ID
Ahmed Perlom -
7 Sep 2006 3:48 PM - 5 messages
Hi all, How can I know if the session ID that a certain process is running on is actually the active session that he consol is connected to. I can get the session id of a process by Process P = Process.GetCurrentProcess(); ...
newbie question: on dataset and dataTable Collection
GS -
7 Sep 2006 3:46 PM - 3 messages
any tips to avoid trouble in multi-user environment? specifically how one can control overwriting changes between the time one gets the row to worked on and the rows one is ready to update the original> or does the ...
Startin process with an argument like <D:\CD\data.prc>
SMichal -
7 Sep 2006 3:37 PM - 4 messages
How can I start a new process with an argument in this form <D:\cd\Data.prc> ? string args1 = " <" + prozessFile + "> "; Process.Start("C:\\Direct.exe", args1); Ist this correct ? It works only under WINXP but not under Windows Serve ...
Class Library
Foxman34 -
7 Sep 2006 3:01 PM - 10 messages
Hi can anyone tell me why a class library i generated, compiled and installed does not show up as a reference in the ".Net" section of add a reference to my application. ...
How do I know my collection was modified?
Steve Barnett -
7 Sep 2006 2:49 PM - 4 messages
I have a user control that includes a StringCollection. I provide my users with a property that retrieves a reference to the string collection so they can add and remove items from it, just as you would do if this were, for ...
Assembly.LoadFrom, .NET 2.0
Marty Cerisano -
7 Sep 2006 2:24 PM - 2 messages
Since we converted our application to C# 2005 and .NET 2.0 our "no-touch-deployment" mechanism is broken. The whole deployment is based on a bootstrapper (NetRun) that loads our main application using Assembly.LoadFrom. When a client machine downloads the application for the first time, ...
Serialisation fails, but without any errors being thrown.
Greg -
7 Sep 2006 1:56 PM - 1 message
I have a bizarre situation in which serialisation is failing routinely under a specific condition, and I'm wondering if the details ring a bell with anyone here. I have 2 classes that my application serialises before closing down. One of these classes contains a string field which contains a path to a ...
Detecting Windows Forms Desginer
John Bowman -
7 Sep 2006 1:45 PM - 3 messages
Hi All, When VS 2005 visual designer attempts to open an inherited windows form it attempts to instantiate the form. Unfortunately, this does not work under certain conditions/needs to the form's constructor. You get a nasty error something like: "One or more errors encountered while loading the designer. ...
wi-fi detection
Vigj -
7 Sep 2006 1:19 PM - 2 messages
Hi, I need to implement in my application a function that, shows the wi-fi connection available on the notebook (running winxp), allows the user to choose one in order to copy a file on a folder though the wi-fi connection ...
Finding an available port for a socket connection?
andreas.baus -
7 Sep 2006 1:18 PM - 5 messages
Hi. I am trying to set up a TcpListener to listen for incoming TCP connections, and one thing I have been wondering is whether there's a good way for finding an available port number, say, from a given range ...
Month Calendar Weird Paint Behaviour
Abhilash Reddy -
7 Sep 2006 11:33 AM - 1 message
MonthCalendar .NEt 1.1 with Sp1, WinForms When either spin control is kept clicked and the year starts to change rapidly then the calendar portion of the control does not refresh properly. I ends up selecting all of the dates at the bottom. Has ...
Print out contents of a hashtable
Water Cooler v2 -
7 Sep 2006 11:21 AM - 5 messages
I can't believe I've stumbled on a simple problem such as this. After all these years, that too. Anyway, it goes that I just realized that I could not iterate through my hashtable and print out its contents. On further probing, I realized ...
How can I save a Graphics to a bitmap file?
myNickname -
7 Sep 2006 11:13 AM - 3 messages
I paint into a PictureBox with the help of its Graphics object. How can I save the painting into a bitmap file (not a metafile) ? Thanky in advance for any helpful hint. ...
System.net.mail.SmtpClient send generates a Syntax error, command unrecognized
howardr101 -
7 Sep 2006 10:30 AM - 2 messages
Hi, I've just posted this into the microsoft.public.dotnet.VB group by mistake - Just reposting it here... Have hunted around on the groups and can't find anything, hence. I've tried this against 2 mail servers (mailtraq and hmailserver) and ...
How to detect if an app is allready running?
feudalac! -
7 Sep 2006 9:10 AM - 8 messages
Hello How can i detect if my application is allready started? if it is started, set focus to it else start it? Thanks ...
What is Proces.WaitCode = 255 ?
SMichal -
7 Sep 2006 8:41 AM - 4 messages
Hi, I'm starting from my application simple bat data...test.bat. This file (test.bat) should start another aplication app.exe. I'm starting the test.bat from my application with Start() method of Process class. With proc.WaitForExit I'm waiting for end of the process and I must check ...
Cognizant Mega Recruitment Drive
Rohit -
7 Sep 2006 6:14 AM - 1 message
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 in the subject line.........to rohit.kati***@gmail.com....before 9th ...
Statics & Interfaces
hufaunder -
7 Sep 2006 5:57 AM - 11 messages
I have an interface where I would like to have some static functions. When I add "static" to any of the interface functions I get the following error: "The modifier 'static' is not valid for this item". Why is it not possible to define static functions in an interface? ...
Interfaces & Constructors
hufaunder -
7 Sep 2006 5:47 AM - 8 messages
I have an interface for which I want to define a particular constructor. I want to force the user to implement this particular constructor. Even better would be if I could make sure there is no default constructor. That might be a bit messy because the implementer ...
Async Remoting causes unexpected Serializable requirements
hellosticky -
7 Sep 2006 3:09 AM - 1 message
I have used .NET remoting for some time now calling a synchronous method and getting the result (which has the Serializable attribute). Recently, I changed it to asynchronous, and when I call EndInvoke on the delegate, it throws a not Serializable exception on a class that is ...
What questions would you ask when inteviewing a programmer for a dot net ap?
tom c -
7 Sep 2006 1:30 AM - 2 messages
What questions would you ask when inteviewing a programmer for a dot net ap? I want a few simple things I can ask over the phone just to weed out people who have no idea what they are doing. Then I want a few more questions that are a little harder to seperate ...
list controls with up/down
Taoge -
7 Sep 2006 12:57 AM - 1 message
hi, all is there a list control have up/down function sth like when we choose coulmns from a a table to export data in sql server thanks ...
RegEx substring
bryanmig -
6 Sep 2006 10:27 PM - 5 messages
Ok I am new to RegEx and what I am trying to do is find a substring. I have a string that constantly changes. This string is pulled from an Atom feed from a blog. I need to strip the HTML formatting from this ...
Loading assemblies dynamically using my own ResolveEventHandler
illegal.prime -
6 Sep 2006 8:50 PM - 2 messages
Hey all, so I've noticed that when I load assemblies dynamically in my own custom ResolveEventHandler that their Modules do not get returned when I invoke Process.GetCurrentProcess().Modules Here is some pseudo code to show what I'm talking about: ...
Arrays.fill(). How do I write that in J#?
Martin -
6 Sep 2006 6:57 PM - 1 message
Hello everyone! I need some help trying to use some functionality from Java that I don't find until now in VJS. It is the Arrays.fill() method from "import java.util.Arrays;" through which I'm trying to fill up an array with bytes. ...
Synchronous / Asynchronous Multithreading Question
Stephen Barrett -
6 Sep 2006 6:11 PM - 2 messages
I really hope someone can give me some ideas. Sorry for the long post. Problem (Using .Net 1.1): We have a current asp.net application that a user uses to submit work and when it is finished view the results. It is implemented using .net ...
Find out what called Finalize?
Mike Eaton -
6 Sep 2006 5:49 PM - 4 messages
Hi everyone, I have a long-running application (sits in the system tray waiting for something to do and interacts with the user via form and some hardware) containing an object (a reference to the aforementioned hardware and its associated functionality) that occasionally will become 'nothing' i.e. when I ...
How to use gacutil?
Enosh Chang -
6 Sep 2006 3:25 PM - 2 messages
Hi all: I use "gacutil /i myComponent.dll" to install my component. But I can't find it in the "Add Reference" of IDE. What's wrong? Enosh ...
ReaderWriterLock
Roy -
6 Sep 2006 2:57 PM - 2 messages
I use ReaderWriterLock to protect the internal state of a class instance from multi-threaded access, should it be declared as private member or static member of the class? ...
GPL / Open Source Application
Heinz K -
6 Sep 2006 12:03 PM - 14 messages
Hi all, I want to publish my application under GPL so it is open source and everyone could modify it. How could I prevent my users from installing "unauthorized" versions by fault? Someone might add malicious code and my application is then blamed for it :-( I use already strong names to ...
Application using old DLLs
Jon -
6 Sep 2006 10:16 AM - 1 message
Hello all. We have a web app that includes a number of dlls. These cover all sorts of things such as email handling, error handling, data access etc. The email handler dll has been modified a number of times but it seems that the old ...
Framework 2.0 and VS.NET 2003
Prem Kumar -
6 Sep 2006 10:06 AM - 4 messages
Hi I would like to know the compatibility of .NET Framework 2.0 and VS.NET 2003. Will everything work fine in this combination? What might be the framework factors, which would not be available, as we are using a 2003 IDE version? ...
How to play real-time sound stream from microphone?
Taoge -
6 Sep 2006 9:33 AM - 1 message
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. ...
displaying data from two datetimepickers to datagrid
esha -
6 Sep 2006 8:41 AM - 1 message
hello all, i am making project in vb.net. i want to display some information in datagrid from this date to this date. i have added two datetimepickers. and there is one button GO. on clicking 'Go', that information should be displayed in the datagrid ...
Question on creating a shared dell from PC to PDA
Gary B -
6 Sep 2006 8:08 AM - 2 messages
I am having difficulty in setting up a solution with a PDA application and a PC application and a common shared dll. Is there an easy way to achieve this? Many Thanks Gary. ...
Dual console / form application
JahMic -
6 Sep 2006 5:47 AM - 1 message
I know this topic has been touched upon before, but not to the specifics I need now. I am tasked with the following: If the app starts in a cmd window with the appropriate swiches, act as an console application and output via console.writeline. ...
Cannot instantiate type 'DataBoundLiteralControl' because there is no public parameterless construct
hellosticky -
6 Sep 2006 4:21 AM - 1 message
I have created a custom UserControl which emulates a DataGrid control. Internally, it simply instantiates an instance of a DataGrid control and adds it to its Controls collection, as well as initializing the various properties of the DataGrid, including the Properties ...
set a mark on a line so we can later come back quit quick access k
Tonger -
6 Sep 2006 1:55 AM - 3 messages
Hello, In visual studio, is there a facility that allows you to mark a line of code in the IDE so that you can come back later to that line later if you have to look at the source code somewhere else. Normlaly i notice the line number ...
Splitting a 31gb text file
web33 -
5 Sep 2006 10:45 PM - 3 messages
I have a 31gb file that was exported from a unix box. I was trying to bulkinsert it into sql but there seems to be something wrong with the file. In order to isolate the issue I have tried splitting it into smaller files. ...
Strong naming Shdocvw, (cannot locate CSP)
Vinit -
5 Sep 2006 10:28 PM - 3 messages
Hi I have added a MS WebBrowser control to my winform. This adds references to Shdocvw.dll and Axshdocvw.dll . However I am using strong named assemblies in my application and hence these also need to signed with my public key. ...
My.User.Name returns blank in Console App
Jamie Carper -
5 Sep 2006 8:38 PM - 2 messages
Hi Folks, I made aninteresting discovery today in regards to the Visual Basic .NET 2.0 The My namespace My.User.Name returns the username in a Windows form application but does not work in a Windows Console Application. Not sure why. ...
Application Unexpectedly Terminating
Martin -
5 Sep 2006 8:10 PM - 4 messages
I am running a c# application on WM5 using .NET 2.0 CF with the latest SP. The code was written in VS 2005. I have tried this on multiple devices and get the same results. Upon hitting the following line of codes the application unexpectedly ...
machinekey setting in .net framework 2.0
ctk70 -
5 Sep 2006 7:35 PM - 1 message
This setting works for .NET Framework 1.1, but not for .NET Framework 2.0. What am I doing wrong? Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details ...
Can I use the Visual Studio 2005 debugger to debug plain old ASP?
SammyBar -
5 Sep 2006 7:12 PM - 1 message
Hi all, I have Visual Studio 2005 Pro installed but I need to make some changes to an old ASP application. I wonder I need to reinstall the old Visual Studio 6 InterDev to debug some few pages. Can I use the Visual Studio 2005 debugger ...
In vb dot net, what is the syntax to see if something is a string?
tom c -
5 Sep 2006 5:33 PM - 4 messages
In vb dot net, what is the syntax to see if something is a string? For example, if I read FieldX from a table I want to do something like: If FieldX is string then 'Do something ...
Question on OleDbDataAdapters from a new guy
tom c -
5 Sep 2006 5:31 PM - 5 messages
I create 2 data OleDbDataAdapters, one with the wizard, and one in code. I know the adapter created in code is OK because I use it to fill a data table and I then look at one of the fields and the data is ...
Panda Platinum Internet Security 2006 blocks my openfiledialog
eduwushu -
5 Sep 2006 4:38 PM - 4 messages
here is another issue i found. When i try to show an openfiledialog in my application withh panda antivirus activated it blocks indefinitely. when i pause the debugging and look at the call stack i find that the last entry of ...
OpenFileDialog too slow
eduwushu -
5 Sep 2006 4:31 PM - 5 messages
hi im trying to create and show an openfiledialog to let the user selecta file but the control is too slow. When i call showdialog on it it takes too long for it to appear on screen and when i move between folders it takes too much time to update it. Whhat ...
Obtain the folder where is the executable of my application
eduwushu -
5 Sep 2006 3:26 PM - 3 messages
I want to obtain programatically the folder where the executable of my applicationj is installed. I want that path to find other files which are located related to the path where my application is installed. Is there antway to do this? ...
Using reflection to get parameters and values at runtime
Steve Bugden -
5 Sep 2006 2:28 PM - 3 messages
Hi, I would like to obtain a list of a function's parameter's and their values dynamically at runtime from within the function itself. Currently, I record these when starting a function by 'hardcoding' them into a collection. Please see my code snippet below. I use the collection in my ...
CommandText is placed in the resx file
Jaap -
5 Sep 2006 1:31 PM - 8 messages
I have the following class defined: [DesignTimeVisible(false), ToolboxItem(false), Designer("Agrovision.Data.Design.CommandDesigner, Agrovision.Data.Design, Version=3.0.3.0, Culture=neutral, PublicKeyToken=27bbda75f3eecde7", typeof(IDesigner))] public class CommandClass: Component { private string FCommandText; private string FConnectionName; ...
Problem with FileInfo class
eduwushu -
5 Sep 2006 1:23 PM - 4 messages
Hi i have an application wich have to retrieve information of files. I have an openfiledialog on which i cans elect a file and then i retrieve the path to the file selected on it by the user.I create a FileInfo object with that ...
app.config and assembly config in My.Config
Bart -
5 Sep 2006 11:36 AM - 9 messages
Hi, What is the best approach to deal with My.config and assemblies. When I compile an application the app.config is generated but not the assembly.config. I tried to add those setting in the application.config but this is not ...
Periodic housekeeping code strategy?
Bill -
5 Sep 2006 2:14 AM - 7 messages
I have a need to run a function on my dot net 2.0 web server every xx minutes forever - whether or not a client is logged on. Anyone have suggestions or examples of good ways to do this? Thanks ...
Accessing the server database from ClickOnce Apps
Tina -
4 Sep 2006 11:30 PM - 1 message
What is the recco architecture for accessing, say a backend SQL Server database from a clickonce app? Can the calls get transported through a DataSet somehow? Thanks, T ...
Is this the forum for ClickOnce Issues?
Tina -
4 Sep 2006 11:28 PM - 2 messages
I notice there is not ClickOnce forum so where is the proper forum for those issues? Here? Windows Forums? I'll post my first one here anyway for now... Thanks, T ...
HttpWebRequest.GetResponse throws StackOverFlowException
Niklas -
4 Sep 2006 1:45 PM - 3 messages
Hi, I am having a issue I couldn't figure out how to solve. I have a function that does WebDav Request against Exchange Server 2003. I can do about 3000 request and afterwards I get a StackOverFlowException on HttpWebRequest.Create(); ...
saving localization in a workbook
swayze -
4 Sep 2006 12:57 PM - 1 message
Hi all, Does anybody know how to save localization in a workbook (C# 1.1)? I'm not sure this is possible, but I'm trying to do this so that numberColumns keep their format no matter what local is set in the ...
WebException, SSL, System.ComponentModel.Win32Exception
edmarw -
4 Sep 2006 10:30 AM - 2 messages
Hi, Just for information, might help someone: One of our partners installed a new SSL certificate, and suddenly our HTTPS connections to them using C# .NET 1.1, started failing with this exception: ---> System.Net.WebException: The underlying connection was closed: Could not establish secure ...
Creating a Collection Class
APA -
4 Sep 2006 8:04 AM - 4 messages
I already have a colleciton class that implements IEnumerable but I also what to be able to implement this inteface: MyCollectionClass["somestringkey"]. EX: //MyCollectionClass is s collection of MyObject objects MyObject mo = MyCollectionClass["somestringkey"]; ...
Developer Toolz.Com
zoinky -
4 Sep 2006 7:24 AM - 3 messages
You guyst might find this website useful, there is a lot of different utilities/add-in's that make a programmers life easier. You can also share your own tools or tools that you use. The tools are freeware so that should make it easier on some of us who ...
Plugin Archtiecture
kumar -
4 Sep 2006 4:04 AM - 3 messages
hi, I am Working in a plugin Architecture for Windows application and using which i create a menu inside a parent form.for MDI Child Windows in which i need to create a MENU SEPERATOR to differentiate between two ...
DataSource/DataBind
ThunderMusic -
4 Sep 2006 3:08 AM - 8 messages
Hi, This question probably went back a couple of times, but I didn't find anything about it on google, so I ask here... What is the best way to use the DataSource/DataBind pattern in a class? I would like the user to be able to set a data source and I'd like my class to ...
|
|||||||||||||||||||||||