| C# Server and Connectivity to web site (5 replies) |
| microsoft.public.dotnet.languages.csharp |
| What/How is the best way to do this: I have a software that load up about 100MB of data from a database into an array and the search is done inside the array. The 100MB of data is loaded only once when the software starts. Unfortunate WEB Service is NOT persistence and I can't afford to load 100MB of data into the array and search every since time (load time would take too long and expensive). I n... |
|
| Newbie C# Database Question? (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| I am (unfortunately) pretty new to C# so, "I'm feeling my way thru the dark..." I have a very basic application where I want to take copied information (dragged or clipboard copied) and store it in an Access database. What would be the easiest way to accomplish this? I would appreciate any help... Thank you, Gary |
|
| Put comments in property of PropertyGrid (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| How I can do to put comments in property of object that I made in a propertyGrid. Tank you |
|
| Nested IF Statements (6 replies) |
| microsoft.public.dotnet.languages.csharp |
| Can some one please explain how to properly nest IF Statements in C#. I am a VB6 guy and I have noticed that the nested IF Statement dose not evaluate correctly exsample. if (((int)sqlCommand1.Parameters["@is valid"].Value) 1) { if (((int)sqlCommand2.Parameters["@is admin"].Value) 1) { //Allows admins to admin page. } else { //Sends user to denied page. } } else { //Sends new user to registration ... |
|
| format (3 replies) |
| microsoft.public.dotnet.languages.csharp |
| Hi, Anyone knows how to specify the decimal format like ###.##? (any number of digital before decimal point but only 2 digitals after the decimal point) How do I specify this in the string.Format("{0, x:D}, num)? Thank you. Mike |
|
| How to call an external program. (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| Hi, From a windows form I like to run an external program (like word for instance) I do not find how to make that call. regards Rob warning |
|
| How can I get an array of object props? (4 replies) |
| microsoft.public.dotnet.languages.csharp |
| Hi Guys, Is there any way to get all the values of properties or fields from an object and put them in an array?(not one by one , like using System.Reflection namespace) Thanks Reza |
|
| DLL examples needed (3 replies) |
| microsoft.public.dotnet.languages.csharp |
| hi, please help about the dll files how to create and use them. please tell about any exmple or tutorials. regards sajjad |
|
| How to associate file types in C#? (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| Is there a class or something in the .Net framework which can accomplish the task of associating some files types to the my own C# program? Thanks! |
|
| .ocx files do not work in dotnet (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| Hello, When I try and include a reference of an .ocx file in my project and execute its method or try to assign values to its properties it gives "Catastrophic failure". Is it because of lack of permissions of dotnet framework or is it something else? Thanks, Vikas *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
|
| indexer in inheritence (3 replies) |
| microsoft.public.dotnet.languages.csharp |
| hi all.. well, in the class ArrayList, it alwasy returns an object, so in most cases when using it i use type casting...... to overcome this problem i made a class inherited form ArrayList and overried the indexer as to reutrn int directly class IntArrayList : ArrayList { int new this[int i] { set{ ... } get{ ... } } } and now when using this class, in run time it works all fine, but in deisgn tim... |
|
| HexString to ByteArray (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| Hi, I want to convert this : string HexString "E793364B0F31B97CE429A839C368AFE1C2D5784FE7737FE"; to a Byte Array. E7 is the string representation of the byte 0E7h or 231d. I have the inverse function, but i think what i need exist in Java. I searched for it in C#, but never found it. string ByteArrayToHexString(byte[] bytes) { if ( bytes null || bytes.Length 0 ) throw new ArgumentException( "..." ... |
|
| add Tab in propertyGrid (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| How I can add a Tab in a PropertyGrid. ThankYou |
|
| DataGrid multiple selection.... (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| Hi... How can i to read the multiple selection rows in DataGrid of a Windows application!? Thanks... A. |
|
| Is this a bug or is something really wrong? (6 replies) |
| microsoft.public.dotnet.languages.csharp |
| I get the error: Use of unassigned local variable 'ipaddr2' This occurs in the foreach loop. Bellow is the entire code: Code Begins using System; class Class1 { static void Main(string[] args) { System.Net.IPHostEntry hostname; System.Net.IPAddress[] ipaddr2; string[] mystr new string[args.Length]; int myInt 0; string CRLF "\r\n"; bool host true; bool err false; foreach (string s in args) { mystr[... |
|
| ListBox FindString member doesn't work (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| Hello Everyone I have a list box with items added dynamically at periodic intervals. Eventually the list will become huge and I want to provide search facilities. However FindString member of listbox returns ListBox.NoMatches all the time. Is there anything that has to be done to make this work. Thanks in advance Aravind |
|
| Writting to event log from ASP.Net (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| Hi, I m trying to write to EventLog from ASP.Net but I couldn't everytime it gives the error "Requested Registry Access is not allowed" I added following users to Administrators group on my PC 1. ASPNET 2. IUSR MYCOMP 3. IWAM MYCOMP 4. The User currently i m logged on with is also part of Administrators group Here is the code protected void Application Start(Object sender, EventArgs e) { if (!Syst... |
|
| convert object back to class (4 replies) |
| microsoft.public.dotnet.languages.csharp |
| How do I convert an object (I had inserted my class into ArrayList) and now I want it back but I get error message Cannot implicitly convert type 'object' to 'Cerber For Subnetworks.CNewsletter Public' HelP! |
|
| how to change a language culture in a user control (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| hi, I want to write an application in whcih user switch the language and the text will be written in the chosen language. (just like notepad but with the language switch option in the main menue) if i change the language culture like this Thread.CurrentThread.CurrentUICulture new CultureInfo(..... but what is the right way to switch the language in a user control. thanks regards sajjad |
|
| How to convert from bytearray to float? (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| If I got following array : byte[ ] X new byte[ 4 ] ; And want to convert it to a float. Using BitConverter is not possible since it doesn't support ToFloat( ). Thanx :) |
|
| C#, LDAP and our own schema (6 replies) |
| microsoft.public.dotnet.languages.csharp |
| Hi I am working on making a LDAP Browser to help in the administation of a directory. Most of the entries on the directory use a custom schema. My problem is that when i try to get the values of the custom atributes i get a "System.NotImplementedException: Handling of this ADSVALUE type is not yet implemented (type 0xb).". This is most unfortunate because most of the information is contained in th... |
|
| I need a C# equivalent (2 replies) |
| microsoft.public.dotnet.languages.csharp |
| hi if any body is familliar with the URL class in java this class represents a url and contains a method called getStream which returns a Reader for this file The Uri C# class does not contain such features if any body knows a c# equivalent please HELP thinks Islam H.A. Azaz *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! |
|
| How do you run a SQL Server sql script file against a SQL Server database? (3 replies) |
| microsoft.public.dotnet.languages.csharp |
| I guess what I am trying to say is I need to run a .sql file which has all the create table statements in it from CSharp so that it hits the SQL Server database referenced in the following code: string sConnectionString; sConnectionString "Password ;User ID sa;Initial Catalog Northwind;Data Source (local)"; SqlConnection objConn1 new SqlConnection(sConnectionString); objConn1.Open(); I have a upda... |
|
| Can I Convert MS Word Doc to HTML and Parse Data? (5 replies) |
| microsoft.public.dotnet.languages.csharp |
| Here is what i want to do but im not sure if i can do it with C#, I hope so.... I want to convert a MS Word Doc from its Doc format into HTML and be able to parse the HTML so i can put certain values into a SQL DB. I have done this in VB 6 (well, most if it), but thats old school and i dont feel like reinstalling VB6. I would like to do this with C#. The bad part about this is that i need to keep ... |
|
| Self-Replicating a Windows Form (3 replies) |
| microsoft.public.dotnet.languages.csharp |
| Hi All, I am trying to write a 'Reminder Notes' program. I've a Windows Form with a RichTextbox and few other controls (Dialogs...icons and labels). Now, one of the features I want is a 'Clone Note' feature. I want my existing form to be cloned and the new instance running as a separate process (the original note can be destroyed/closed yet the newer note remain...). If anyone can give me pointers... |
|