Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
all groups > c# > january 2004 > threads for wednesday january 21

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

before/after line space
Posted by m_dorrian NO[at]SPAM yahoo.com at 1/21/2004 10:45:39 PM
I want my program to be able to either skip forward a line of text or skip back line of text. For example to be able to put a blank line of text between two lines you have written. The same as in the paragraph property in microsoft word where u can set 1 line spacing between text for example...more >>


Names that start with @
Posted by Jon Shemitz at 1/21/2004 10:04:13 PM
I'm trying to call some code written in Delphi for .Net. In Delphi, every class has a corresponding metaclass type; you can use a metaclass reference to create instances of the class &c. What's important here is that some methods take a metaclass reference as a parameter. On .Net, metaclasses...more >>

Alligning a line of text in a textbox
Posted by m_dorrian NO[at]SPAM yahoo.com at 1/21/2004 9:36:38 PM
can i allign a line of text to the Top/bottom....more >>

MySQL Provider not registered
Posted by Steven Blair at 1/21/2004 9:34:23 PM
Hi, Trying to make a connection and getting the following error: "The 'MySQLProv' provider is not registered on the local machine." MySQl is installed and working, I also went to ODBC settings and created a new System Data Source for MySQl. (MySQL ODBC 3.51 Driver) Is it my responsibilt...more >>

before/after line space
Posted by m_dorrian NO[at]SPAM yahoo.com at 1/21/2004 9:33:20 PM
How can i program this function in C#...more >>

Horizontal text/Vertical Text
Posted by m_dorrian NO[at]SPAM yahoo.com at 1/21/2004 9:01:24 PM
Can you have Horizontal and Vertical text in a Textbox or RichTextbox and can u have both together....more >>

How to know when you are on next line when Multiline is switched on?.
Posted by m_dorrian NO[at]SPAM yahoo.com at 1/21/2004 8:57:31 PM
I am trying to find out when i reach the next line when multiline is switched on and i DON'T PRESS ENTER TO GO TO THE NEXT LINE(lines method is there for that purpose). Is there any other method i can use so that when i automatically type on the next line i can know. I tried to compare the Textl...more >>

Using Sql and OleDB
Posted by Steven Blair at 1/21/2004 8:33:38 PM
Hi, I have a class which uses SQL object to connect and return data from the database. I want to upgrade the functionality of this dll so it can use OleDB. Should I stick with my current SQl class and add OleDB fucntionality in it, ie overload methods like MyConnect() or should I write a ...more >>



thursday
Posted by Bernie V at 1/21/2004 8:11:46 PM
Hi group, I'm a beginner in C# (I developed 5 years in Clarion). In Clarion it was possible to get the daynr of a week. I think in C# you get the dayname as return. Is it possible to get the daynr in C# also ? Or do I have to do that with the daynames ? And ik i have to do that with the da...more >>

Add a .js file to an aspx using inheritance
Posted by elbomberotorero NO[at]SPAM hotmail-dot-com.no-spam.invalid at 1/21/2004 6:30:12 PM
Hi everyone, I have several aspx files which inherit from a common file called Menu. In this file, I overwrite the Page_Load method and I put inside it the LoadControl method to load an user control to the daughters without having these any code line referred to that control (@Register con...more >>

import data from an unmanaged dll
Posted by Mark Urish at 1/21/2004 6:26:07 PM
Is there a way to import data from an unmanaged dll? For example, unmanaged.dll: __declspec(dllexport) int unmanagedErrno; managed.cs: class Managed { //this doesn't work: [DllImport("unmanaged.dll")] static extern int unmanagedErrno; } This fails because "extern" doesn't...more >>

Finding Min and Max value of Column in Dataset
Posted by Dan at 1/21/2004 6:06:07 PM
I have the following code that executes a parameterized Query and pupulates the data in a datagrid. All is good. My problem is I would now like to get the minimum and maximum value of one of the columns. My code that works is: public void button2_Click(object sender, System.EventArgs e) { ...more >>

re:Limitations/disadvantages of C#
Posted by form_w2 NO[at]SPAM yahoo-dot-com.no-spam.invalid at 1/21/2004 5:30:28 PM
Nobody has an opinion on this? ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---...more >>

Help with ArrayList.BinarySearh
Posted by Bob Weiner at 1/21/2004 5:16:57 PM
What I want to be able to do is create an indexer that can index into an ArrayList filled with objects of my own type. I have the following class structure: ---------------------------------------------- class PropertyList : ArrayList { public enum SortOrder { } public...more >>

.NET in CSharp?
Posted by Natan at 1/21/2004 5:01:49 PM
Just curiosity. I was wondering... does anyone know if the .NET Class Library (or part of it) was programmed in C#?...more >>

Transparency and Opacity
Posted by Lina at 1/21/2004 4:36:08 PM
Hello, I need to create a button that would be opaque and "see thru" over everything (applications, desktop) but the form should not be visible. I was able to achive that on one PC but the same steps don't work on the other. I am running: Windows 2000, Service Pack 4, Two PCs (A and B for cla...more >>

Sockets and non-blocking connect
Posted by Michi Henning at 1/21/2004 3:46:56 PM
Hi, I'm using a non-blocking connect to connect to a server. Works fine -- the server gets and accepts the connection. However, once the connection is established, I cannot retrieve either the local or the remote endpoint from the client-side socket. The *really* strange thing is that Sock...more >>

How to add MyComponent into a VS Toolbox?
Posted by Marcin_Grze;bski at 1/21/2004 3:44:46 PM
Hi Group, I've single project and i have a component class e.g. MyComponent in it. I want to put my project's component in any form or control in my project from designer. Is this possible to do this in VS .NET 2002 (or 2003) ? I know that "my project's controls" are placed in "Window...more >>

SOCKS 4/5 proxy
Posted by Pete Davis at 1/21/2004 3:26:40 PM
Does anyone know of any free (preferably GPL or similar license) code for supporting SOCKS 4/5 proxies? Basically, what I'd like is a socket wrapper in C# that already as support for SOCKS 4/5 built in so I don't have to write it from scratch. Thanks. Pete ...more >>

Integral Type for Switch ?
Posted by bradwiseathome NO[at]SPAM hotmail.com at 1/21/2004 3:20:10 PM
I want to do a switch statement on the value returned from getype(), but the value is not an integral type. Is there a way to do something besides gettype().ToString() and not use an if statement?...more >>

Selectable Objects
Posted by Mr. Mike at 1/21/2004 3:11:16 PM
I'm trying to create an application very similar to Windows Explorer using the Thumbnail view. I've created instances of Pictureboxes within a parent Groupbox. How do you create a child object that is selectable? I want to use yhe mouse to click a picturebox or drag and drop it to anot...more >>

Windows service 1053 error during startup.
Posted by Ashwin Kambli at 1/21/2004 3:10:48 PM
Hi, I am trying to write a Windows Service application using C#. I wrote a very trivial example (logs messages during Start and Stop events to the evenlog). I have no problem installing it (using installutil.exe). But, when I try to start the service it times out and gives me a "Error: 1053 The...more >>

XML Serialisation & Circular References
Posted by Earth Worm Jim at 1/21/2004 2:53:28 PM
I have been able to get simple circular references to be serialized in xml by using the ImportTypeMapping method on the SoapReflectionImporter class. But I am unable to serialise circular references when the circular reference is contained with in a collection class, specifically I am using a ...more >>

Can someone tell me what the parameters are?
Posted by Henry Stock at 1/21/2004 2:42:00 PM
I was just looking that the Word Document Model and at code for creating a Word Document. The C# code appears to have several more parameters for creating a Word Document than does Visual Basic. I am curious why... As you can see from the code below they list 3 ref variables after the template...more >>

Very strange !!!
Posted by Tamir Khason at 1/21/2004 2:29:54 PM
I create some user controls inherits from other controls (e.g. label, button). But when I' using them from the other application some of them works fine, but others (even the same type or just other instance of the sample contorl) in compilation lose all its properties (include position and othe...more >>

how to use vc# dll into vc++ project
Posted by Kanaiya at 1/21/2004 2:09:18 PM
how to use c# dll into visual c++ project. With regards, Gangani Kanaiya. ...more >>

ValueChanged event NOT being fired when setting NumericUpDown.Value property
Posted by discussion NO[at]SPAM discussion.microsoft.com at 1/21/2004 1:59:27 PM
Hi, I am setting the NumericUpDown .Value property and the ValueChanged event is NOT being fired. Does this ONLY get fired when I change it on the UI and not programatically? Thanks ...more >>

Several C# questions
Posted by Kaki at 1/21/2004 1:53:37 PM
1) How come const cannot be declared with static? Does const already mean static/implemented as static in C#? 2) How do I make a public non-overridable function/property in the super class private in the subclass? I want to completely hide that public function without providing a subclass alte...more >>

ComboBox
Posted by discussion NO[at]SPAM discussion.microsoft.com at 1/21/2004 1:53:34 PM
Hi, Why does all the other controls have FlatStyle of Flat and the ComboBox does not? If I configure a form to have all Flat, the ComboBox stands out like a pink cow in a dairy. Why the inconsistency? Somebody forget something or was it BY DESIGN to have inconsistencies? ...more >>

transparent control
Posted by bat21 at 1/21/2004 1:50:49 PM
How create transparent background in "UserControl" ( Opacity regulated ) ? thanks for all bat21 ...more >>

Requesting Suggestions For C# VS .NET Books And Question About Required Run-times
Posted by noid droid at 1/21/2004 1:00:37 PM
Hi. I posted yesterday asking if C# lived up to the hype. Thus far the feedback has been all positive. (Thanks.) Can anyone suggest GOOD books for learning C# and the Visual Studio .NET IDE? If there is a book that covers both, that would be great. Also, is it necessary for me to learn...more >>

Basic Conversion Query
Posted by C# Learner at 1/21/2004 12:57:24 PM
Hi, I have a string (System.String) which holds some data. This data is encoding in UTF8 (i.e. anywhere in the string where there should be a single 'é' character, there will be two characters holding the equivalent of that character in the UTF8 format). How can I decode this UTF8-encoded ...more >>

Replicating Mouse Clicks
Posted by Terry Redmond at 1/21/2004 12:43:36 PM
Is there a way to perform a mouse click in C#, but without touching the mouse....if you know what i mean? ...more >>

ASP.NET adding controls at run time
Posted by Jax at 1/21/2004 12:10:36 PM
I am looking to populate web page with controls as a result of a database query. eg (pseudocode) <% foreach(Garment g in GetStuffFromDB()) { //add controls Response.Write("<asp:Button id = 'Button'"+ctr.ToString() +"/>") } %> This doesn't work at all, I get nothing, not even one bu...more >>

DESCryptoProvider
Posted by discussion NO[at]SPAM discussion.microsoft.com at 1/21/2004 11:35:48 AM
Hi, How can I use the DES Crypto Provider to take in a string and encrypt that with a key then return an encrypted string and vica versa? All the examples I have seen are based on files and streams. Thanks. ...more >>

Exception Handling in Windows Forms Application - UnhandledExceptionHandler
Posted by bajaguide NO[at]SPAM yahoo.com at 1/21/2004 11:14:44 AM
I am working on a Windows Forms App. I have attached a standard UnhandledExceptionEventHandler to the current domain to catch unexpected errors. In my application, when I trigger an unhandled error, my handler does not get hit - I get the standard ugly run time error. The strange thing is, I ...more >>

Unresolved COMException : Incorrect syntax near '='.
Posted by Zoury at 1/21/2004 10:45:45 AM
Hi there! :O) I trying to use a COM DLL (made in VB 6.0) from C#... and it hasn't been working well for me this far.. :O/ I did a sample in VB 6.0 that used the DLL and it works great.. so now I'm trying to do the exact same thing from C#... But I get the following error when I call a fun...more >>

Emil and user account
Posted by Jeya at 1/21/2004 10:37:17 AM
SGkgLA0KDQpIb3cgZG8gaSBnZXQgYWxsIHRoZSBlbWFpbCBhY2NvdW50cyBmb3IgYSB1c2VyIGFj Y291bnQgPw0KDQpUaGFua3MgaW4gYWR2YW5jZS4uDQoNCkpleWFwYW5kaWFuIEtiLg==...more >>

Can user built Classes be Added to Csharp Program without rebuilding??
Posted by Steve at 1/21/2004 10:35:01 AM
Hi In the OLD COM world I was able to design COM Objects that could just be dropped on a machine and registered. This COM object could then be called by my pgm by a CreateObject of the ProgID. I would search the registry in a certain location for all the progid that I registered and then I ...more >>

How do I minimize my currently executing Console application?
Posted by GG at 1/21/2004 10:34:57 AM
Is there a way to minimize my current console app? Using this code but does not work System.Diagnostics.Process currentProcess=System.Diagnostics.Process.GetCurrentProcess(); currentProcess.StartInfo.WindowStyle=System.Diagnostics.ProcessWindowSty le.Minimized; Thanks *** Sent ...more >>

script focus example
Posted by selen at 1/21/2004 10:33:27 AM
I am using script for Focus to txtAdi which is textbox in c# web application.But it doesnt work. Have you any idea why it doesnt work.What must I do ? can you give me example. Because I am beginner in c# asp.net thanks....... char c=(char)34; string script = "<script language=...more >>

String manipulation question
Posted by Amintas at 1/21/2004 10:31:06 AM
Hi Everybody, Can anyone please tell me how I can get the rightmost characters of a string? In Visual Basic .NET there is still the old-fashioned but handy "right()" function. Since C# does not support these old stuff, I could not find anything similar. My guess is that there mus...more >>

sqrt operation for decimal
Posted by Maor Mishkin at 1/21/2004 10:02:17 AM
I've changed from double to decimal calculations but I can't find a math library for decimal (mainly for sqrt), Thanks Maor ...more >>

Doubt in DataBinding
Posted by Baskar RajaSekharan at 1/21/2004 10:01:30 AM
Hi, I have one Doubt in C#. I bound one CheckBox control to the Dataset column. when Leave the Checkbox using the Tab, the Value of the Check box is automaticllay set it to Zer 0r False. What could be the problem? is there any bug in Databinding for CheckBox control. I am not...more >>

Implementing object hierarchy in client/server development
Posted by Mark Neilson at 1/21/2004 9:49:46 AM
1. What is the best way to make a single instance of my top level class (DLL) internally available to all other members of the assembly? The top level object is where all other access is made in to the program. Where and how do I declare and initialise this object? For instance, it would ha...more >>

Borlands C# IDE
Posted by JJ at 1/21/2004 9:07:52 AM
Hi All, Was just wondering if anybody here has used Borlands C# IDE and if they like? What do you like about it and what does it have that VS Net doesn't ? Thanks, JJ...more >>

arrays
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 1/21/2004 8:46:54 AM
I have a two dimensional array. The first dimension is a number, and the second dimension is a string. Given the second dimension's value (String), how do I search for the first dimension? Thanks for all your inputs....more >>

how to translate that vb code in C#
Posted by arnold at 1/21/2004 8:44:18 AM
HI I 've been trying to find the equivalent code in C# but I did not succeed. What is the equivalent of Collection in C#? Dim c_colNewCustomerDataRows As New Collection() If c_colNewCustomerDataRows.Count > 0 Then Dim drCustomers As DataSet1.CustomersRow For Each drCustomers In c_colNewCus...more >>

Command "csc" is not valid.
Posted by Thom Little at 1/21/2004 8:38:06 AM
Under Visual Studio .NET 2003 I went to View | Other Windows | Command Window and issued csc /t:module StringLib.cs It responded with ... Command "csc" is not valid. What do I need to correct? -- -- Thom Little -- www.tlaNET.net -- Thom Little Associates, Ltd. -- ...more >>

Datataset Problem
Posted by michael haller at 1/21/2004 7:52:51 AM
In my project i have a textfile witch i import in my c# application. The datas in the textfile i show the datas in the textfile in my datagrid..ok that ist not my problem. Now i have a dataset (dataset.xsd the name is ds_BESR). How i can my datas in the datagrid into this dataset ds_BESR?...more >>

C# structures
Posted by anonymous NO[at]SPAM discussions.microsoft.com at 1/21/2004 7:45:17 AM
Hello I'm trying to use a C# structure as follows. class myclass { struct myStruct { int a; int b; } myStruct S1 = new myStruct(); } For some reasonI'm not able to access S1.a and S1.b from a method within the same class. Any help is much appreciated. ...more >>

redirect and target problem?
Posted by Cantekin Guneser at 1/21/2004 7:45:16 AM
in my project i am using framesets, at the left frame set notmally i am using hiperlink element with target to redirect main frame this is ordinary, but now i need to redirect main frame with dynamic text from dropdownlist and textbox, i tried like response.redirect("search.aspx?city="+dd...more >>

Article: An Analysis of the Google Search Engine Algorithm
Posted by johannblake NO[at]SPAM yahoo.com at 1/21/2004 7:22:54 AM
This aticle presents factual evidence that Google's PageRank, inbound links and keywords are irrelevent to your placement in the search results. It presents several case studies that show conclusively that the algorithm used by Google's search engine is flawed with serious "bugs" that deny ma...more >>

C# Standard Edition
Posted by rlzsmith at 1/21/2004 7:16:09 AM
Can you please tell me if the standard edition has the drag and drop wysiwyg forms designer Thank you....more >>

Message Box in An event handler code
Posted by Anil at 1/21/2004 7:06:06 AM
iam getting too many messages boxes when i include a message box in a KeyUP eventhanler function which in turn have validation if functio my code i when i press the ok button of the message box , message box pops again how to avoid it private void txtJobName_KeyUp(object sender, System.Windows....more >>

Thread and COM Interop
Posted by paul_bowman_3000 NO[at]SPAM yahoo.co.uk at 1/21/2004 5:55:34 AM
Hi All Does anybody have any ideas what I am doing wrong with this code. What I am trying to do is read data from a Domino Database. For purposes of the test I have wrapped the DominoCom object in a C# class that runs in a seperate thread. If I run this code: rd = new ReadData(src, 1, 10...more >>

Convert String to Time
Posted by [Joe] at 1/21/2004 5:06:07 AM
How can I get a string from TextBox.Text as Time, user insert an houre = "10:25" , How to use this. is the following is currect : DateTime A = textBox.Text.ToString("MM:SS"); ????...more >>

I have 3 classes derived from webcontrol and...
Posted by Owatona at 1/21/2004 2:46:08 AM
Hi to all... I have 3 classes derived from webcontrol. I the first i have two dropdownlist, in the second i have some buttons, and the third its the webcontrol that are instanciate the two first... I would like to know what is the best way to comunicate elements that are placed in different...more >>

What are the differences between this?
Posted by Josema at 1/21/2004 1:21:05 AM
Hi to all, I would like to know what are the differences between protected string mystring; (and after use that like this.mystring=anything and this.. protected string mystrin public string MyStrin get{return mystring; set{mystring=value; Thanks in advance Josema....more >>

DataGrid data limit
Posted by Rakesh at 1/21/2004 12:21:05 AM
Hi, Is there any limit to the number of rows a datagrid can display? Thanks, Rakesh ...more >>

C# datalayer architecture - comments please!
Posted by Ranier Dunno at 1/21/2004 12:21:05 AM
Hi I'm writing a datalayer for a C# application. Currently, I've implemented it using the following main components - An interface called IDataAcces - A singleton object called DataAccess implementing that interface - A static class called SqlQueryBuilder which is used by DataAccess to build d...more >>


DevelopmentNow Blog