microsoft.public.dotnet.general Archive - April 2002
Post a message to this list
Messages
Page: 1234567891011
Format a date in datagrid? (3 replies)
microsoft.public.dotnet.general
All I want to do is change "3/30/02 14:23:28" to "03/30/2002". I can't figure out the formatting code for this. I can barely figure out how the formatting expressions work, intuitive it is not. It's for the DataFormatString Property of the DataGrid object.
Active directory - User in Group (2 replies)
microsoft.public.dotnet.general
Hi, I am writing a component that will identify if a user belongs to a group or vice versa. What will be the best way to achieve it? I couldn t find a sort of memberOf method for the Group or the Users in ..NET. Does looping over the member property of the group and comparing it to the CN user property is the only way. Thanks in advance Yoav
listbox multiple select (4 replies)
microsoft.public.dotnet.general
i am trying to use listbox control in my webform project.. after changing it to multiselect i can not able to get al the selected items. it only give the items with lowest index. Please help Joyjeet
C# Code Parser Always NULL?!?!? (2 replies)
microsoft.public.dotnet.general
Hi, Every time I call the CSharpCodeProvider.CreateParser method it always returns NULL. Is there anything else, apart from the code below, that I need to do in order for it to work? Code: CSharpCodeProvider provider new CSharpCodeProvider(); ICodeParser parser provider.CreateParser(); Thanks Michael
.NET Remoting and COM+ (2 replies)
microsoft.public.dotnet.general
I am currently developing a distributed application using COM and .Net Remoting. I am trying to inherit from the ServicedComponents class and the MarshalByRefObject class. However, this does not appear possible as I believe multiple inheritance is not supported by C# and VB.Net. I have therefore developed an interface class with the methods that I need to exposed and this class is now implemented ...
Master Mode in .NET? Interdev question (3 replies)
microsoft.public.dotnet.general
Old VS6.0 Interdev user. In .NET do we have the choice to work in 'master mode'. It asks me to start a project in local mode. Can't find where I can work from server. My development server has it installed. If not, do we have to 'publish' it to the production server or just transfer files?
Parsing HTML in .NET (3 replies)
microsoft.public.dotnet.general
Greetings folks, I know that this is probably obvious, but as yet I have been unable to find it. Essentially I am looking for a .NET namespace or component that will parse a HTML document. Preferably a messy parse, ie if the HTML is not correctly formed it will still take a best guess but a strict parser is better than none. What do I mean? I mean a component that I can give a string or file and h...
vsdisco files not usable when adding web reference (2 replies)
microsoft.public.dotnet.general
I've been working throught the .NET walkthroughs and find that I can't use the generated vsdisco files for adding web references. When attempting to use them I get a message to the effect "no web references found." If I access the Service asmx file instead, the web reference wizard is able to locate the web reference. Any ideas about this? PF
hyperlink in table (2 replies)
microsoft.public.dotnet.general
Hi, this might sound a stupid question but I have only just started and have come across wanting to add a hyperlink in a table I have created in Visual Studio but it seems I can only write the supposive link in text only by entering the name in the text feild. How can I make that text a hyperlink? can anyone help? Much appreciated. Marc.
DotNet performance issues (2 replies)
microsoft.public.dotnet.general
I tested rendering the Mandelbrot fractal from 3 sources: a) C native b) C managed c) C# In all three cases I created a class (struct in C#) "complex", overloading its operators to make complex additions & multiplications, compiled in "release" with all optimizations on, and tested performance (Athlon 1600 256MB memory) As it was expected C native was the fastest. C managed was only 12 15% slower,...
Windows Forms (2 replies)
microsoft.public.dotnet.general
How can I make a Windows Form application in C# that can run normally or in silent mode (not display the form)? I'm able to do this in C by creating an object of the dialog class and then either calling doModal() on it if I want the form to appear, or not calling doModal() if I want it to be silent. If running in silent mode, I can then use the dialog object to call the other member functions of t...
passwordchar (2 replies)
microsoft.public.dotnet.general
I'm trying to use the passwordchar property as the one I see on websites and in the WindowsXP login. It's that black filled circle or however you want to describe it. Does anybody know how to do that? Lance
gettype function (3 replies)
microsoft.public.dotnet.general
Can someone show me how to use gettype on an object to compare what it returns to a list of possible type you are looking for in order to perform a certain function. For example... select case(object) case1 Do X case2 Do Y I am working in VB.Net....creating a windows application. Thank You
What is a Component? (2 replies)
microsoft.public.dotnet.general
In the VS .Net IDE, if I right click on the Solution, select Add... there is an option to Add Component. What is that? Can you give example how it can be used? TIA.
serilaizing objects and streaming though a socket (2 replies)
microsoft.public.dotnet.general
I am trying to send objects back and forth between client and server (messages). I want to serialize them using the BinaryFormatter. For some reason it doesn't work: chatClient is TcpClient ProtocolV1.LoginRequest login new ProtocolV1.LoginRequest(); login.username "emad"; login.password "1234"; BinaryFormatter bf new BinaryFormatter() ; bf.Serialize(chatClient.GetStream(),login); chatClient.GetSt...
ItemData gone and what about now? (2 replies)
microsoft.public.dotnet.general
I have a problem. I need to use the ItemData from a combobox, but I can find the property in the .Net platform. I've been reading the help and they say it's no more supported. So how do you do the same stuff now? Thanks dudes. Andre Gil
Can I get line number from a stacktrace? (4 replies)
microsoft.public.dotnet.general
Hi, I am logging exceptions in a VB.NET application using stacktrace to provide detailed information. Is there any way to get the line number on which the error occured? Thanks! Al
"Redirect" problem with HttpWebRequest (4 replies)
microsoft.public.dotnet.general
Hi all, I need to download files from web sites and there is one that is not anonymous. For this one, I need to fill a form, for login password, and then I can point to the file that I need to download. To do that I have created a HttpWebRequest with a uri that points to the login page (anonymous). I set the "ContentType", the "Method" and write to the stream the only three fields, "username","pas...
Visual Studio.NET - Toolbox code snippets export? (2 replies)
microsoft.public.dotnet.general
Hello In Visual Studio .NET, you can add code snippets to your own tabs in the toolbox. GREAT feature. BUT, can you export those tabs, and their code and import it into another machines VS.NET IDE? Its not much use if you cannot create the same snippets at work and home easily. Any help greatly appreciated. Thank You
Text Box Control of input (2 replies)
microsoft.public.dotnet.general
On visual basic .net 2002, in the windows application, I have a text box for input, but I want the user to use on Numbers and no letters, how can I make this happen? How can I make the user input numbers only, or how can I control what is inputted on the text box?
SetServiceStatus (2 replies)
microsoft.public.dotnet.general
Hi! Does anybody know how to set the ServiceStatus of a running Windows NT Service ? Using the Win32API i could easily reach this by calling SetServiceStatus. In the structure passed to this function i could also specify a wait hint and thats another thing i'd need in my .net service! Any help would be appreciated!!! Thanks in advance markus
Questions onmigrating from Java based apps (3 replies)
microsoft.public.dotnet.general
I need to know some answers to the following questions so I can present .NET to my company as a viable solution to our Web applications. We currently use Silverstream and GUPTA along with JAVA for our Web development. We want to go to .NET and keep up with the times as per web development. I need to know: 1) Other than SQL Server, what other Data Bases are recognised by the .NET product? 2) Can I ...
Any Suggestions? (3 replies)
microsoft.public.dotnet.general
I have a service that runs in the background and loads a set of data into memory from the registry. I have another GUI that allows the user to edit the data in the registry. Both the service and GUI run on the same machine. What is the best way to force the service to refresh that data in the registry? How can the GUI notify the Service that data has been updated? Set a property, raise and event, ...
XmlSerialization & public constructor. (8 replies)
microsoft.public.dotnet.general
Hi All, ..NET gurus help! :) I have a class library. I need to add XML serialization to it. I DO NOT want to have default public constructor as it will ruin the library idealogy. How can I use standar (XML) serialization provided by .NET and do not have default public constructor? Things I tried: 1. Used attribute [Serializable] on the class. 2. Implemented ISerializable interface. 3. Implemented ...
C# Bug? (3 replies)
microsoft.public.dotnet.general
Seems that there is a little problem in VS.NET (among all of its other problems; this one is a little more serious though) with the C# compiler. It seems it can't handle a certain configuration of nested if statements. Take a look at this. Try it out if you want. Just stick it in a console app. int x 4; //We need this variable to compare //If we just did something like //'if (true)' then it wouldn...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com