Home All Groups Group Topic Archive Search About

Visual C# .NET

microsoft.public.dotnet.languages.csharp
Score WCF Retrieving Metadata Issue
Junoti - 31 Mar 2007 9:43 PM - 3 messages
Hello, I've done some research prior to posting this, but I can't seem to resolve an issue when I try to add a Service Reference to my application. I can successfully add a reference for the "GoalService", but nothing I try allows me to add one for the ComboService. Is there ...
Score Please Help - Access Current Row in table adapter
Troy Bull - 31 Mar 2007 7:56 PM - 2 messages
Greetings I am new to C# coming from Java / EJB.  I have been messing around and in an app i am working on I am trying to get access to the fields of the current row in a table adapeter (current row from binding source). ...
Score What are the essential Web Application files?
Monica - 31 Mar 2007 7:34 PM - 2 messages
Hi, An ASP.NET Web application was created in C# and you want to deploy it to a host server on the Internet. The application was configured with code-behind pages which are compiled in the build process. What are the essential Web ...
Score How should you package the custom control?
Monica - 31 Mar 2007 7:04 PM - 2 messages
Hi, Does someone know the answer? You are building a setup for your application. The application contains a custom control developed by you, which will be shared across multiple applications. How should you package the custom control? A:  Package the control in a Merge Module (.msm) and add the .msm file to a ...
Score adding key/value to Exception.Data & avoiding key conflicts
Zytan - 31 Mar 2007 6:38 PM - 2 messages
[link](VS.80).aspx says: "Avoid key conflicts by adopting a naming convention to generate unique keys for key/value pairs. ... two applications, named Products and Suppliers, each has a method named Sales. The Sales method in the ...
Score Cross process signalling - best way of doing it?
Clive Smith - 31 Mar 2007 6:16 PM - 4 messages
Hi Folks, I am developing an application consisting of a webservice and a Win32 service both written in C#. When the webservice is called it writes a number of records away to a SQL server database. These records require further processing by the Win32 ...
Score The opposite of page scraping - what's it called
ssg31415926 - 31 Mar 2007 4:16 PM - 5 messages
I'm familiar with the idea of page-scraping - getting data from websites where there's no nice feed to use. Is there a name for the opposite i.e. when your program simulates a human inputting data to a site?  I need to do this and I don't know ...
Score Sockets recieving data
bbdobuddy - 31 Mar 2007 4:06 PM - 6 messages
Hi, I have a question that hopefully someone can help me out with.  I am trying to use fop to create a pdf report.  I have the fop code created but I can't figure out how to recieve data.  ...
Score Call an event from the base class
kenny.deneef@gmail.com - 31 Mar 2007 3:22 PM - 8 messages
Hey all We are working on a project and have alot of forms with textboxes on. Now we want to put some input validation keypress events on those textboxes. We got a parent class where we putted some event into ex. ...
Score Thoughts on how to get this dynamic variable name workaround to work?
Mark S. - 31 Mar 2007 12:21 PM - 4 messages
As I understand it, C# doesn't offer dynamic variable names. Below is my attempted workaround. Is what I'm doing possible? FYI, I already read all the "why in the world do you need dynamic variabale names" comments by other posters, if you are kind enough to post a reply ...
Score Threaded TCP socket program incorrectly reporting establishment of connection
shofu_au - 31 Mar 2007 10:44 AM - 5 messages
Hi Group, A question about threads and asynchronous TCP sockets.  In the attached code, even if the host TCP server is not running my code reports that the connection has been established. With the Server NOT listening I get  (Even actually the system powered ...
Score What does M mean just after a number?
tundra999 - 31 Mar 2007 4:35 AM - 8 messages
Such as this: return base.CalculatePrice() * 0.9M; What data type does the 'M' stand for? I can't find a listing of these shorthand notations anywhere. Thanks, Tom ...
Score RegEx and filenames
Jeff Williams - 31 Mar 2007 1:27 AM - 3 messages
I have a list of file names I need to parse and check if they match a valid expression. I want this to work like you were listing a directory. ie *.doc dhows all doc *.* shows all documents *doc shows all those ending with doc ...
Score dialog's Form.FormClosed is not run
Zytan - 31 Mar 2007 1:17 AM - 11 messages
I have created a new form from the main form.  When I close the main form with the 'x' close button, its Form.FormClosed event is run, but not the dialog's. Is this normal?  It is ok / dangerous?  How can I force shutdown code ...
Score Accelerator key not working
B. - 31 Mar 2007 1:07 AM - 3 messages
I have a C# winform with accelerator key associated with some menus. If my exe is in unmanaged C++ and the winform is invoked through interop, the accelerator key not working. If I create a new C#.Net project and the same winform is invoked in the C#.Net project, the ...
Score [Q] Threads or events - How to?
stuie_norris - 31 Mar 2007 12:12 AM - 3 messages
Hi Readers, I am trying to understand threading and or evetns with C#. So I have set myself up a learning challenge. I wish to develop and application that reads information asynchronously using TCP sockets and uses a seperate thread to process data once it has arrived.  This second thread, a ...
Score SQL or C# for searching one table based on another table's data?
Ronald S. Cook - 31 Mar 2007 12:06 AM - 4 messages
I have a table of keywords (hundreds/thousands of records): KeywordID   KeywordName ---------   ----------- 1           Apple 2           Orange ...
Score Is adding information to Exception.Data frowned upon?
Zytan - 30 Mar 2007 9:11 PM - 2 messages
I have a function that accepts an Exception, and writes out all of its information to a log.  This function is called in many places where an exception is caught.  In some places, I'd like to add one more bit of ...
Score Where to hook/unhook events with Forms/Controls
JS - 30 Mar 2007 8:52 PM - 5 messages
I have an application with many user controls and forms which display measurements in whatever the current unit system is.  The current unit system is kept in my 'Units' static class as Units.CurrentSystem.  I also have an event in the Units class called ...
Score What's the best Timer to use
DaTurk - 30 Mar 2007 8:21 PM - 10 messages
Hi, I'm creating an application that will need to use a timer to do a static method call every second.  My question, is what would be the best timer to use?  I know there are several, but I'd like to use a ...
Score Creating an object from a wsdl definition?
sean.j.gage - 30 Mar 2007 8:14 PM - 2 messages
Is there a way to get to a Type definition from a wsdl through c# during runtime? I'd like to load and process the wsdl into its various objects at run time and be able to use a factory to return the ...
Score Reflection
Jason - 30 Mar 2007 6:56 PM - 2 messages
Hello I'm still what you'd consider to be a newbie to c#  Can anyone provide an explanation to reflection, when, why it's used, and benefits or show an example. Thanks ...
Score Printing in C#
Gaurav - 30 Mar 2007 6:56 PM - 2 messages
Hello... I am trying to print a .pdf file using my C# application using:          Process myProcess = new Process();         myProcess.StartInfo.FileName = "c:\\Document.pdf";         myProcess.StartInfo.Verb = "Print"; ...
Score CurrentDomain.UnhandledException doesn't catch Exceptions from other Threads?
james - 30 Mar 2007 5:53 PM - 3 messages
Hi all, I have a console app that uses AppDomain.CurrentDomain.UnhandledException.  However it only seems to catch exceptions in the current thread.  Exceptions in other threads (like from a timer) don't seem to get reported at all (and my ...
Score Ienumberable<T> / Event Handler design question...
Jamie Risk - 30 Mar 2007 5:47 PM - 3 messages
As an example supposing I have an object:    public class myClass    {      public List<byte[]> listOfBytes;      public int X;      public int Y;    } ...
Score How to read html files AS IS. Encoding seems to change the characters.
Zoro - 30 Mar 2007 5:43 PM - 15 messages
My task is to read html files from disk and save them onto SQL Server database field. I have created an nvarchar(max) field to hold them. The problem is that some characters, particularly html entities, and French/German special characters are lost and/or replaced by a ...
Score My UnhandledExceptionHandler Won't Fire
victorcamp - 30 Mar 2007 5:33 PM - 5 messages
I'm new to Visual Studior C# .Net 2003 on Vista, and have been uable to get my UnhandledExceptionHandler() to fire. I have added these lines to Main() before the Application.Run():    AppDomain adCurrent = AppDomain.CurrentDomain;    adCurrent.UnhandledException += new ...
Score Public delegate & event not seen in parent instantiation
Mike McAllister - 30 Mar 2007 5:00 PM - 11 messages
I have a partial class of a UserControl coded as follows:     public partial class Login : System.Windows.Controls.UserControl     {         public delegate void StartingLoginHandler(string message);         public event StartingLoginHandler StartingLogin; ...
Score Compiler complains about type constraint in generic class
Whitney Kew - 30 Mar 2007 4:54 PM - 2 messages
Hi there, I have the following class hierarchy that isn't compiling correctly, and I don't understand why: public abstract class A<T> where T : System.IComparable<T> { } public abstract class B : System.IComparable<B> ...
Score Automatically generating get and set properites for private class data
Charles - 30 Mar 2007 3:37 PM - 7 messages
How often have you seen this kind a of construct in a .NET class: class A {    private string b;    public string B    {       get { return b; }       set { b = value; } ...
Score Doubts in Design Level. Desktop ->Web-Based in .NET TECH.
John - 30 Mar 2007 3:14 PM - 3 messages
Hi all,            We have one product. It is client/server based application. We have  developed client application in VC++ 6.0. Our client is desktop based application like dialog based application. Client application will connect to ...
Score Re: .Net 1.1 versus .Net 2.0
Chris Dunaway - 30 Mar 2007 2:49 PM - 4 messages
..Net 3.0 *is* .Net 2.0 with some extra assemblies added to support WF, WPF, and WCF.  The .Net 2.0 Assemblies have not changed.  They are the same. ...
Score DateTime question!
DBC User - 30 Mar 2007 1:25 PM - 7 messages
Is it possible to check a datetime value as in which culture format? My program is written for international customers. I have a function which converts the date and time to en-US format and is working. But I want to check before converting to see if the date and time is already ...
Score Is there anyway to get the row number?
chance - 30 Mar 2007 1:18 PM - 4 messages
I have this code: DataRow row = docAttachTable.NewRow();         docAttachTable.Rows.Add(row); What I want to know is the primary key number (it's auto-generated). Is there anyway to do that? thanks in advance, ...
Score Debug vs Release
Grigs - 30 Mar 2007 12:40 PM - 8 messages
Hello, After getting some posts on forums.microsoft.com but no solution I was asked to post over here.  Hopefully someone here can help with my problem. I have a Windows Forms application written in C# via VS 2003.  It does 100% ...
Score reading a C++ structure from a binary file using C#
Nand Kishore Gupta - 30 Mar 2007 11:06 AM - 11 messages
I have a binary file created using C++ that contains an object of the structure:     struct student     {            int roll_no;         char name[20]; ...
Score ADO.net question
Matt - 30 Mar 2007 9:44 AM - 3 messages
Hi, I have an xsd which contains two tables, for the sake of this example I'll call them Person and Salutation. Person contains personal details, plus a key reference to the salutation table which contains salutations i.e. Mr Ms Mrs etc. ...
Score Why is there no contains/exists in SerializationInfo?
KWienhold - 30 Mar 2007 7:31 AM - 4 messages
I have been working with serialization in some places for a while and have now begun to run into version issues. Unfortunately my company is still working with .Net 1.1, so using the VTS of 2.0 was not an option. ...
Score How to search for a keyword in a StringBuilder?
Laser Lu - 30 Mar 2007 6:44 AM - 2 messages
Sometimes, I need to do some time-consuming operations based on whether a specific keyword was contained in a lengthy string. Then, for a better performance, I wrapped that lengthy string into a StringBuilder. But after doing that, it seems there's no proper methods defined in ...
Score Marshal-by-refrence Warning.
preitymathur0422 - 30 Mar 2007 6:22 AM - 2 messages
I m working on a MDI application. Here on the parent form I had two variables declared as public int curUserID = 0, ViewUserID = 1; the form is inherited by the "Form" class. I m using these variables on all the other forms. ...
Score WebResponse ContentLength=-1
nakul.reddy - 30 Mar 2007 6:04 AM - 6 messages
I'm trying to use HTTPWebRequest to POST data to a website using multipart/form-data. It's HTTPS, and it returns a response object with -1 ContentLength. Any help would be appreciated! Below is my code:    private string HTTPPost(string URI, string Parameters) ...
Score WebBrowser - changing HTML content after DocumentCompleted event
Robson Siqueira - 30 Mar 2007 5:49 AM - 5 messages
Folks, I am facing a problem. I am trying to manipulate the HTML data (thru the Document and DocumentText properties) of the WebBrowser object (System.Windows.Forms). The problem is that the application enters in a loop state and my changes ...
Score Writing to AD using LDAP/C#
Robert Iver - 30 Mar 2007 4:33 AM - 2 messages
Hello,        I am developing an application in C# using VS .NET 2005 that will be accessing and updating Active Directory via LDAP.  So, far I have written the main portions, but now I am stuck on the code to ...
Score Are there classes for NIS, SCP, SFTP, RCP for connecting to Unix?
Pucca - 30 Mar 2007 1:12 AM - 7 messages
Hi, I'm using VS2005, .net 2.0 and created a stand-alone windows application. I need to connect to Unix server on the network to read in a couple of files from it.  I also am required to provide the user with all those protocols and ...
Score get name of variable as string?
Zytan - 30 Mar 2007 12:49 AM - 45 messages
Shot in the dark, since I know C# doesn't have macros, and thus can't have a stringizer operator, but I know that you can get the name of enums as strings, so maybe you can do the same with an ordinary ...
Score Get derived class from base class (find actual exception from Exception)?
Zytan - 30 Mar 2007 12:16 AM - 5 messages
I deal with a bunch of exception handlers by calling a function that writes the info to a log file.  Of course, this takes in Exception, so I can pass it any exception class.  But, it'd be great if somehow I ...
Score switch(nullable type)
John Grandy - 29 Mar 2007 10:10 PM - 5 messages
Is it considered good practice to perform a switch operation on nullable types ? ...
Score How do I get the last generated sequence number in Oracle?
chance - 29 Mar 2007 4:57 PM - 2 messages
I need to write some c# code to get the last automatically generated sequence number from an Oracle database. Can anyone provide an example. tia, chance. ...
Score 2 char's to 1 integer - and back.
Mantorok - 29 Mar 2007 3:44 PM - 11 messages
Hi Is it possible to convert 2 char values to an integer and be able to reverse it? I'm sure there must be some algorithm to achive this. Any ideas? Thanks Kev ...
Score Is this easy locking of a Hashtable's element too good to be true?
Mark S. - 29 Mar 2007 2:25 PM - 5 messages
Much to my surprised the code below compiled and ran. I just don't know enough about threading to know for sure if this is too good to be true. I'm attempting to isolate the Hashtable lock to "row level", the whys aren't ...
Score VS 2003 C# - threads?
Chris - 29 Mar 2007 2:04 PM - 8 messages
I have a win app. this a form with a button. after pressing the button a new form is shown. when looading the form is being filled by data taken from a database. the problem is that it takes a few seconds, so a user has to wait a ...
Score Constant expressions' implicit conversions not performed at runtim
Axel Dahmen - 29 Mar 2007 1:52 PM - 8 messages
Hi, disassembling following expression I noticed that the implicit conversion between int and decimal appears to be performed at runtime. Why? TIA, Axel Dahmen void Main() {     decimal a=1.2m, b;     b = a + 0; ...
Score How to get the size of managed class?
Sharon - 29 Mar 2007 11:52 AM - 5 messages
I need to know the size, in bytes, of System.Drawing.Color. In general; how to get the size of managed object of class instance and of class type? ...
Score Typed DataSets in VS2005
Peter Bradley - 29 Mar 2007 11:10 AM - 17 messages
Hi all, This post is sort of tangentially related to my earlier posts on configuration files for DLLs. Does anyone know how to create typed DataSets using VS2005's new DataSet designer, but with the ability to configure the connection string via a ...
Score CSharp Coding Standards
auratius - 29 Mar 2007 10:44 AM - 8 messages
[link] Complete CSharp Coding Standards 1. Naming Conventions and Styles 2. Coding Practices 3. Project Settings and Project Structure 4. Framework-Specific Guidelines Naming Conventions and Styles Use Pascal casing for type and method names and constants: ...
Score Interaction of windows service with UI
sonali_reddy123 - 29 Mar 2007 10:09 AM - 4 messages
Hello all,   I am trying to develop an application which will run as a windows service.   The application should have Normal options available with service like start, stop and   pause but along with this I need an option to ...
Score Error when Iterating through a bitmap data with palette
Sharon - 29 Mar 2007 9:56 AM - 3 messages
I'm using a Bitmap that has a palette of 256 colors (256 bytes). I'm taking the Bitmap data by: System.Drawing.Imaging.BitmapData refData  = myBitmap.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), System.Drawing.Imaging.ImageLockMode.WriteOnly, bmp.PixelFormat); ...
Score Implement a Thread Safe Circular Byte Buffer
shofu_au - 29 Mar 2007 7:08 AM - 4 messages
Dear readers, Before poorly reinventing the wheel I thought I would ask if a class already exists. I need to use a circular byte buffer that is thread safe. I cannot use MSMQ, my regular choice, due to complicated reasons - ...
Score Regular Expression for currency
hellbent4u - 29 Mar 2007 3:43 AM - 4 messages
Hi All, I need a regular expression to be used in an ASP page which would allow a user to enter: 1000 as well as 1,000 i.e. an amount without comma as well as with comma(for example 10,000 ...
Score Literals and strings - make it stop!!
RobinS - 29 Mar 2007 3:13 AM - 53 messages
This is probably a stupid question. I'm new to C#, and I am having a string problem. I am storing strings in an XML file. Example, a connection string: DataSource="servername/sqlservername";InitialCatalog="nameofdatabase"; IntegratedSecurity=true; When I load this from the XML file, and look at it in the debugger, it ...
Score How can I speed up ToString of decimal and double?
ThunderMusic - 28 Mar 2007 11:58 PM - 9 messages
Hi, We have a part of our application that deals with millions of records and do some processing of them. We've achieved a pretty good performance gain by developping a custom DateTime.ToString and a custom int.ToString, but we ...
Score CS0564
PGP - 28 Mar 2007 7:41 PM - 7 messages
This error has the following description - "Overloaded shift operator must have the type of the first operand be the containing type, and the type of the second operand must be int." Could you please explain the need for this restriction? In fact, i want this ...
Score How to get a DateTimePicker accept and show empty date (emty string/space/null)?
Claes Wedin - 28 Mar 2007 6:20 PM - 3 messages
My customer needs a DateTimePicker in VS2005 C# that can show emty date values (blank/space/null). I need a control that: 1. Can show a blank value 2. Detete a date when hitting the delete and/or back key ...
Score C# IDE - commenting / uncommenting
Zytan - 28 Mar 2007 6:01 PM - 7 messages
Ctrl+E, C and Ctrl+E, U will comment and uncomment out multiple lines.  However, it has two issues: 1. It will not include the // for empty lines, which makes it hard to 'see' that one group is altogether commented out.  Since programmers ...
Score Looking for an XSLT 2.0 Tranform Engine
Eric Renken - 28 Mar 2007 5:23 PM - 3 messages
We are looking for a XSLT 2.0 transform engine that we can include with our commercial product and I was wondering if anyone had any ideas?  We already looked at SAXON, but it looks like its license doesn't allow for ...
Score .Net 1.1 versus .Net 2.0
RobinS - 28 Mar 2007 5:11 PM - 2 messages
I am working at a company that is going to publish a product on the market. The code is currently in .Net 1.1. The developers would like to migrate it to .Net 2.0. Management has concerns about users having to install the .Net framework ...
Score Unittest of GUI
davidspoulsen - 28 Mar 2007 11:14 AM - 2 messages
Last year I read an article about using unit testing GUI. I think it was a patterns & practices article, but I can no longer find it. The article described how to unit test GUI using stubs. Can anyone help me find the article or similar articles? ...
Score A problem with AutoResetEvent
Maqsood Ahmed - 28 Mar 2007 5:34 AM - 5 messages
Hello, We have been experiencing a problem with AutoResentEvent class for past 2-3 months. It seems that it just stops at WaitOne and the thread doesn't released from blocking state. We have been using the following code for past 4 years, and It was working perfectly fine till Nov-Dec ...
Score Check to see if a pc is on before attempting file.copy
RvGrah - 28 Mar 2007 3:23 AM - 6 messages
I've built a small app to deploy my apps in a small domain, just for my own use when I make small updates to pass to my end users. My app uses File.Copy, and works fine except that it takes a long time to ...
Score Circular reference
sippyuconn - 28 Mar 2007 1:43 AM - 3 messages
Hi I Have a solution with about 50 projects and each project have References to 1 to n of the projects in the solution. I try go to a project and try to add a reference to another project and I get  a Circular Reference" error and ...
Score Converting C# string to char*
rkpat - 28 Mar 2007 12:18 AM - 4 messages
i'm calling a C++ DLL from C#. here's C++ interface: char* __cdecl SendCmd(void* handle, char* cmd, char* data, char* buffer); here's my call in C#: [DllImport("somedll.dll", CharSet = CharSet.Auto, EntryPoint = "SendCmd")] unsafe public static extern byte* SendCmd ...
Score Customizing a ComboBox
michael sorens - 27 Mar 2007 10:56 PM - 6 messages
I want to create a customized ComboBox where the methods ComboBox.Items.Add and ComboBox.Items.Insert will behave thusly: -- If the item is not present, add it. -- If the item is present, set the selected index to the item (without ...
Score What exactly Dll does
nishitha Pothuri - 27 Mar 2007 5:16 AM - 4 messages
*** Sent via Developersdex [link] *** ...
Score How to get HTML code for a web address
Ashutosh - 27 Mar 2007 3:01 AM - 2 messages
hi I am developing a windows application, which needs to get a html code for a web address. Can someone please guide me in this?? Regards, Ashutosh ...
Score threads co-ordinating access to a method
Peted - 27 Mar 2007 2:58 AM - 3 messages
Hi i hope i explaine this correctly I have a class with a method that reads and writes using blocking sockets to a TCP device. Call it class IPdevice.  I can use this method to send commands and then wait for a response from this ...
Score Multiple Conditions Firing order
TheLostLeaf - 27 Mar 2007 1:31 AM - 3 messages
Hi, Does anyone know if these 2 code segments would operate the same way. for instance if the first condition fails does it bother to check the second? if (MyList.Count > 0 && CheckDate) { // do something... } or if(MyList.Count) ...
Score Databinding to a combo box: Newbie
weird0 - 26 Mar 2007 9:39 PM - 2 messages
I want to bind data to combo box from a db that returns something like three tuples with the content m,n,o of the same field. How can i do that? Can i just store the result in an array of string and add ...
Score Help with error: "No overload for method 'x' takes 'y' arguments" using web service
JamesG - 26 Mar 2007 9:21 PM - 4 messages
Hi, I'm new to C-Sharp (as of today) and i'm struggling to implement a SOAP client to a PHP5 web service. I have added the Web Reference (do I also need to use wsdl.exe and compile the .dll, and reference that ...
Score C# Static string appending problem.
BA - 26 Mar 2007 8:12 PM - 5 messages
Hello, I have a very strange code behavior that I cannot make heads or tails of: I have c# code being executed in BizTalk assemblies which is acting very strangely. In my BizTalk process I call a static method:   public static string ValidateMessage(params...) ...
Score Property browser
ortega23 - 26 Mar 2007 8:05 PM - 3 messages
Hi, I want to change values of properties of classes dynamically by a property browser. Is there a template or a useful class in .NET for this purpose? ...
Score Looking for some Controls
Eric Renken - 26 Mar 2007 8:02 PM - 5 messages
Does anyone know of any 3rd party controls that would give me basically what the "Full Name..." or "Address" buttons in Outlook give? Yes I could parse the names or the addresses myself, but I was looking for someone who may have already created a parse routine separate out the names ...
Score update a progressbar on update a mssql table
Robert Bravery - 26 Mar 2007 7:48 PM - 2 messages
Hi all, I have a typed dataset. I update, and insert well over a hundred rows at a time. How can I indicate to the user, via  progreesbar, of some sort of progress of the update, as each row is updated to the server ...
Score Using a C++ DLL in a C# Project
BDowling - 26 Mar 2007 7:03 PM - 10 messages
Hi all, I have an existing Visual C++ project that builds a DLL (not COM or ATL or anything). I wish to use this DLL in a Visual Studio 2005 C# project without having to define each function and structure again in ...
Score Switching to C#
Luc The Perverse - 26 Mar 2007 6:45 PM - 8 messages
Short version: Trying to learn C# - 5 years C++, 2 years Java experience :)  Help! Long version: I find "Learning C# 2005" by Jesse Liberty to be 'slow', to say the least. I am skimming through the book, started 2 days ago will probably finish ...
Score ADODB!!!
Vai2000 - 26 Mar 2007 6:40 PM - 7 messages
I am using a C# Application which uses a 3rd party DLL which returns a recordset. Unfortunately when I add ADODB.dll to my project reference I get an error: Message-Could not load file or assembly 'ADODB, Version=7.0.3300.0, ...
Score Cursor line in RichTextBox
Don Gollahon - 26 Mar 2007 6:24 PM - 3 messages
..NET 1.1 How do I get the line # the cursor is currently in in a RichTextBox? Cursor x, y coordinates in the component would be nice. Thanks. ...
Score DataTable already exist. Need to add data to DataTable
C#Schroeder - 26 Mar 2007 5:29 PM - 4 messages
I am trying to add an email and 2 phone numbers to a DataTable that has already been populated in my window application.  How do I call the DataSet with the information in it and update the users row in the ...
Score Invalid cast when trying to reference a database column...
chance - 26 Mar 2007 4:44 PM - 8 messages
Getting and error on this first line of code:                 //inspector phone                 theField = reader.GetString(20); ...
Score Click event + key pressed
infmpv00 - 26 Mar 2007 3:08 PM - 2 messages
Hi, I have a tabControl and when I click on a context menu and press ctrl key I would like the information appear in a new tab, like in iexplorer. If I don't press ctrl key the information would appear in ...
Score Confused by overloading (or can I claim it's a compiler bug...?)
AJ - 26 Mar 2007 3:05 PM - 13 messages
Why does the following behave as it does...?   public class Base   {     public void Add( byte b )     {     }   }   public class TestClass : Base   {     public void Add( int s ) ...
Score Static Class Factory?
GroupReader - 26 Mar 2007 2:50 PM - 5 messages
In my app, I have two very similar static classes.  After long thought, I've decided *yes - keep them static*. - Sometimes I will want to use Static Class A, and somtimes I will want to use Static Class B, depending on the situation. ...
Score Automatic Brush Selection ( by int i )
djp - 26 Mar 2007 2:38 PM - 3 messages
hi I have int i = 0 that changes to max 20 I need to select different brushes depending on this 'i'. How to do this? I cannot do something like this: Brushes[i]... :/ Thanks for any help PK ...
Score pass textbox value to storedprocedure
jed - 26 Mar 2007 11:26 AM - 4 messages
I need to pass a value that is inserted by the user in a textbox to a variable in my stored procedure. please help ...
Score how to set file attributes for read only purpose
sunilpgt - 26 Mar 2007 10:41 AM - 3 messages
hi,     i am confused to write a code for setting some file attributes.in such a way that if we disable copy&paste option for a text file it shouldn't be copied? At that instant there should come a message box ...
Score Define 24 Bit data type
stuie_norris - 26 Mar 2007 10:39 AM - 5 messages
Hi Group, I have had a go at defining a data type for handle 3 byte data (24 Bit).  I want to be able to use the datatype like a normal datatype such as int, short etc.  Plus ...
Score PictureBox leaving filehandle open
Jeff Williams - 26 Mar 2007 10:38 AM - 2 messages
I have a picture (jpg) displaying in a picture box but I find that the file handle is still open to the image on disk. I think I need the following to happen 1. Load image from file on disk ...
Score BE VERY CAREFUL, AS YOU MIGHT BE A VICTIM OF SCAM/FRAUD RIGHT NOW!!
SIS - 26 Mar 2007 10:28 AM - 5 messages
<HTML> <HEAD> <META NAME="GENERATOR" Content="Microsoft DHTML Editing Control"> <TITLE></TITLE> </HEAD> <BODY><FONT size=2> <P><FONT face="Arial Narrow"><STRONG><IMG ...
Score treeview control within a master page.
lior - 26 Mar 2007 9:14 AM - 2 messages
Hello, I have a treeview control that I use as a menu & navigation control within a master page. The nodes for this control are loaded from a database. Is there any simple method of maintaining the expanded / collapsed state of each node as my application moves from page to page? ...
Score How do i round off a float(newbie)
jed - 26 Mar 2007 8:51 AM - 5 messages
i need to round off a float to two decimal places. ...
Score how to generate prime numbers
ritesh.raghuvanshi - 26 Mar 2007 7:48 AM - 5 messages
can anybody help me in this...? i want to generate prime numbers starting from zero to the number entered by user... quick please.... ...
Next »