| radio button in datagrid (2 replies) |
| microsoft.public.dotnet.general |
| I have added a radiobutton in a datadrid using template column, say column(4). How to capture the selected values of the radiobutton in datagrid using a button click event. Any code snippet or links would be appreciated. Thanks Jagriti |
|
| Assigning Hex values to a C# variable (long) (3 replies) |
| microsoft.public.dotnet.general |
| Hi, I have a very simple question: I am trying to assign a hex value to a variable of "long" type. But in no way I can make it accept this value. Could you tell me how this can be done ? Many thanks, Alex |
|
| Newbie: How to set up a custom Class (3 replies) |
| microsoft.public.dotnet.general |
| I have a class as follows Namespace Parent Public Class CompanyA Public Class Product ReadOnly Property SerialNum() Get Return "SN1005" End Get End Property ReadOnly Property Description() Get Return "Description" End Get End Property End Class Public Class Invoice ReadOnly Property Number() Get Return "000001" End Get End Property End Class End Class Public Class CompanyB End Class End Namespace ... |
|
| Threading & shared methods? (9 replies) |
| microsoft.public.dotnet.general |
| Can someone please help up Are shared methods shared by all threads in a process? I believe they are which makes me wonder if there could be thread blocking problems when calling a shared method. Imagine this situation: A long running shared function that runs on a machine with multiple processors. When this method is called from separate threads, what happens? Does one thread wait for the other t... |
|
| enumerations (2 replies) |
| microsoft.public.dotnet.general |
| Can I create an enumeration at runtime? |
|
| Logging in a Web Service (2 replies) |
| microsoft.public.dotnet.general |
| What is the most appropriate way for me to perform logging in a .Net web service? This is general purpose logging, that means logging should support different log levels, configurable from for example the web.config file. I would like to log to files. Is there a suitable component for doing this in the framework, or should I build one myself? Thanks! Thomas Evensen |
|
| String conversion question (3 replies) |
| microsoft.public.dotnet.general |
| How do I take a string containing a number and store it in a int variable in C#? I want to do something like: int i atoi(lbl.text) but atoi doesn't appear to be valid c# syntax. I know the answer is probably brain dead simple but I cannot find an obvious link to a solution in any of the online documentation. Thanks |
|
| Internet Connection Speed (2 replies) |
| microsoft.public.dotnet.general |
| Hi, Can we calculate the Internet Connection Speed programatically using VB or C#? Ani |
|
| Is there a way to do this in VB.NET? (2 replies, VIP) |
| microsoft.public.dotnet.general |
| In C# if I want to be able to trickle events to more than one control at a time. Example: for hosting controls like the datagrid which can have two control states: Normal and Editing. I can do the following: public event EventHandler CheckedChanged { add { viewItem.CheckedChanged value; editItem.CheckedChanged value; } remove { viewItem.CheckedChanged value; editItem.CheckedChanged value; } } Is t... |
|
| Programming assembly code in .NET (3 replies) |
| microsoft.public.dotnet.general |
| Hi! Im trying to find a sample code about how to write assembly code in VS.NET i saw some where a piece of code somthing like ..class a extends [mscorlib]System.Object{ .method int aa(){ } } can some one show a working example to run in .NET? thnx a mill |
|
| Marshaling Structures containing pointers to arrays (2 replies) |
| microsoft.public.dotnet.general |
| I am trying to call a c function in a dll that will modify arrays created in my program. Function Declaration: Declare Function myFunction Lib "myDll.dll" Alias " myFunction" (ByRef vMyStruct As myStruct) As Int32 Structure Declaration: StructLayout(LayoutKind.Sequential) Structure myStruct Dim a As Int32 Dim b As Int32 Dim input As IntPtr Dim results As IntPtr End Structure Calling Program: 'Vari... |
|
| Property (2 replies) |
| microsoft.public.dotnet.general |
| Sorry if this is a re post. I am trying to access the properties of a dynamically loaded usercontrol. I am setting the control: ex. Dim MyMessage As Control LoadControl("uc.ascx") Placeholder.Controls.Add(MyMessage) MyMessage is the UC and I would like to set properties and get properties after they were set or from post back. ex. MyMessage.Text "Message text changed!" MyMessage.Color "red" ex. te... |
|
| Problems with MD5 Cryptography (2 replies) |
| microsoft.public.dotnet.general |
| Hi, I've been trying to use the MD5 cryptography class that comes with .Net Framework to encode a string that is needed to communicate with the MSN IM's Notification Server. However, the encoded string always seem to be different from what the Server needs. I have searched around for possible reason, and found someone with a similar problem. For example, when we encode 1013928519.693957190mypasswo... |
|
| What's the best way to write a thread safety checker? (3 replies) |
| microsoft.public.dotnet.general |
| Hello All, I am looking for comments that the community might have on existing techniques that are out there for building automated thread safety checkers. I have been tossing around ideas for how to build a utility that allows me to ensure that I am accessing non threadsafe methods properly, and my best idea so far is to create a custom attribute that I can apply to all of my threadsafe methods, ... |
|
| How does the ThreadPool handle MethodImplOptions.Synchronized? (2 replies) |
| microsoft.public.dotnet.general |
| Hello All, When marking methods with [MethodImplAttribute(MethodImplOptions.Synchronized)], does the ThreadPool perform a lock on the entire object which provides the method, or simply prevent the method from being pushed onto more than one call stack at a time? The documentation seems to indicate the latter, but I'd like to be sure. Thanks, Chris |
|
| Doubt in COM + Service (4 replies) |
| microsoft.public.dotnet.general |
| Hi, I deployed one Dll as a COM Application.. I want to check whether it's running or not from C Sharp. How can i Check it? Please let me know. Regards, R.BASKAR |
|
| Insert Error in ASP.Net and Access2002 (2 replies) |
| microsoft.public.dotnet.general |
| I am coding in ASP.Net and Access2002 and keep getting the following error on insert: Operation must use an updateable query. Now the odd part is I can populate a recordset without any problem. Any help would be appreciated Freeon CODE mstrConnect "Provider Microsoft.Jet.OLEDB.4.0;User ID Admin;Password ;Data Source " & Request.PhysicalApplicationPath & "Database\CodeKeeper.mdb" Dim dcnConnection ... |
|
| Can someone from Microsoft PLEASE try this remoting example? (6 replies) |
| microsoft.public.dotnet.general |
| I have a problem where if I register a well known type as a singleton, with the assembly registered in the GAC, the remoting framework on the client end does not find the assembly. From the exception generated it looks like it only looks in the server process directory (the server and client apps are running on the same machine). If I copy the assembly to the server app directory it works. The att... |
|
| SQL DMO usage (8 replies) |
| microsoft.public.dotnet.general |
| Hi all, I am trying to build an application that will be used to browser through SQL servers and their objects on the network... I am using SQLDMO.. However, the SQLDMO.NameList gets me ZERO SQL servers from GetAvailableServers The source code is in http://www25.brinkster.com/codehose/trial.zip I hope one would try the code and tell me what is wrong with it. |
|
| Newbie problem displaying ASP.NET page (5 replies) |
| microsoft.public.dotnet.general |
| I am trying to learn .NET by working through a book. I am having some problems getting my first page to display. I have Windows XP Professional. I installed IIS. I went to www.asp.net and downloaded the .NET Framework SDK. Here is what I typed in: script language "C#" runat "server" void Page Load() { time.Text "Hello world"; } /script html head title The Punctual Web Server /title /head body h1 W... |
|
| How to set NotifyIcon Contextmenu focus (2 replies) |
| microsoft.public.dotnet.general |
| Hi! Here is my problem: I want a NotifyIcon's ContextMenu appear on left mouse click. I do this with the following lines (in the icon's MouseUp event): If e.Button MouseButtons.Left Then notifyicon.contextmenu.Show(Form1, New Point(Cursor.Position.X, Cursor.Position.Y)) End If However, in this case the ContextMenu does not have the FOCUS, so, when pressing up and down keys on the keyboard, menu se... |
|
| Close a context menu (2 replies) |
| microsoft.public.dotnet.general |
| I want to close a context menu on click of a function key in addition to esc or mouse click. Is this possible.? |
|
| Error in my VB.Net/Access2002 insert. (4 replies) |
| microsoft.public.dotnet.general |
| I am coding in ASP.Net and Access2002 and keep getting the following error on insert: Operation must use an updateable query. Any help would be appreciated Freeon CODE mstrConnect "Provider Microsoft.Jet.OLEDB.4.0;User ID Admin;Password ;Data Source " & Request.PhysicalApplicationPath & "Database\CodeKeeper.mdb" Dim dcnConnection As New OleDbConnection(mstrConnect) Dim strSQL As String Dim cmdInse... |
|
| Search & Remving in an array/Collection (2 replies) |
| microsoft.public.dotnet.general |
| Greetings. I'm currently developing a webinterface to a spam /email filter I've developed for Exchange 2000. Most of the page works well, but now I want to add a statistics button to it, and things start to not work so well. :) Here's the setup: An array or collection containing some hundred email addresses What I want to do is this: Seach through the array (or collection) For each address found I... |
|
| Cannot add System.Diagnostics.TextWriterTraceListener via configuration file (2 replies) |
| microsoft.public.dotnet.general |
| Hello, I have the following problem with debugging .NET apps: if I add the lines from MSDN docs: system.diagnostics trace autoflush "false" indentsize "4" listeners add name "myListener" type "System.Diagnostics.TextWriterTraceListener,System"/ /listeners /trace /system.diagnostics into configuration file for my app it fails to add listeners at startup and raises exception: Can not find type "Syst... |
|