Groups | Blog | Home


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# > march 2004 > threads for saturday march 27

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

Immediate Window question
Posted by ianoliver_noreply NO[at]SPAM yahoo.com at 3/27/2004 11:42:49 PM
I am debugging an example and have a breakpoint set: int lhs; lhs = int.Parse("43") // break point here I can execute the line with the breakpoint and lhs gets the value 43 So why when I go to the immediate window do I get this: ?int.Parse("43") error: identifier 'int' out of scope ...more >>


cryptography
Posted by juzan at 3/27/2004 11:25:51 PM
hi can anyone give me a small example of using the cryptography api. where can i apply this in a basic sense. kind regards Juzan ...more >>

TreeView Sounds
Posted by Bryan at 3/27/2004 10:36:28 PM
I have a TreeView component in my application. It is setup so that you can add a node, and after you edit it, you can press enter and it will create a new node directly under it. This works great, except that it causes some sort of sound event to occur. I went through the windows event so...more >>

Fill combobox from a select query
Posted by news.microsoft.com at 3/27/2004 10:27:04 PM
How do I fill a combobox from a select query returning a list of names. I'd also like to refresh this list when an action (LIke adding a new value to the list occurs. ...more >>

Sharing a "Enum" Type between different classes
Posted by pei_world at 3/27/2004 10:08:30 PM
anyone has idea? please help thanks; ...more >>

OOP/OOD/OOA with C#???
Posted by genc ymeri at 3/27/2004 9:11:57 PM
Hi, I would like to know what OOP/OOD/OOA with C# books would you recommend/suggest ? Thanks a lot in advance ! ...more >>

New type w base/radix 3. How To ??
Posted by Eigil Krogh at 3/27/2004 8:06:14 PM
Hello I'm new to C#. I need a type with radix (or base) 3 (that is it counts 0 - 1 - 2 - 10 - 11 - 12 - 20 ...) How do I construct that in C# ? Thanks in advance Eigil ...more >>

New Site - Featuring ASP.NET, ADO.NET, and MySQL
Posted by telysium.org at 3/27/2004 6:46:39 PM
submit articles www.telysium.org ...more >>



Is working with a database really this hard?
Posted by rick cameron at 3/27/2004 6:36:58 PM
....or am I just dense? As a starter, I want to put a control on a Windows form that will display the contents of a table in an Access database, and allow me to edit rows & add new ones. It seems to me that this was a no-brainer in VB pre-.NET ('though I'm not a VB programmer). I would have...more >>

Delegate puzzle
Posted by Chuck Bowling at 3/27/2004 6:03:32 PM
I've got a problem. Not sure if it's a problem in the code or in my understanding. I have a class that contains a delegate. The delegate is assigned to a simple method in a form that assigns the values of a series of strings to an instance of the label control sequentially. // ****** publi...more >>

Implement Friend Function in C#
Posted by Tan at 3/27/2004 6:02:18 PM
C# does not offer the keyword "Friend" (C++ has it). Is there anyway that I can emulate this ? namespace myclass{ public class A { protected virtual void Add() { } } public class B:A { private StringCollection MyCollection; ...more >>

Masking valid file names
Posted by ~toki at 3/27/2004 6:01:30 PM
I need to check if the user put some invalid char when he name a file to save. Exists any function that check this? (prevent / * ; etc) ...more >>

simple Boxing question
Posted by Andrew Gniadek at 3/27/2004 5:07:28 PM
Hey, just going through "C# for Java Developers" by Jones&Freeman and I've got a quick question about one of their examples. They give a simple example of converting an instance of a value type to an object: // Box an int variable int myInt = 100; object myIntObject = myInt; System.Console....more >>

How to access a common dataset from multiple window forms?
Posted by Michael at 3/27/2004 4:41:06 PM
How do I access oleDbConnections, oleDbDataAdapters, and data sets that are one one windows form, from another windows form Basically what I've done is add a new item of a data set to a project, drag a database from the server explorer, and define the relationships. I now want to access, populate,...more >>

Data format string in uppercase
Posted by Arjen at 3/27/2004 3:52:38 PM
Hello, How can I display the first char in uppercase? (This is the first letter of the dayname) Here is my currect dataformat: DataFormatString="{0:ddd. dd MMM. yyyy}" Thanks! ...more >>

RE:ALEXS:what is the coresponding type to COLORREF in C#.
Posted by ΢ÈíÐÂÎÅ×é at 3/27/2004 3:14:17 PM
NO,thanks . i think u have mistakened my idea. i have defined a external function from gdi32 which is GetPixel(handle hDC,int xcoodinary,int ycoodinary). it return a COLORREF value. now i need to use the COLORREF value in C#. but i dont know what is the coresponding type to COLORREF in C#. ...more >>

multi-threading web requests
Posted by VR NO[at]SPAM MSDN.COM at 3/27/2004 3:11:07 PM
Hi I'd like to know whether it's beneficial to multi-thread web request calls Experimentally, it doesn't look very helpful. I measured the time it takes to make request to a certain website from a C# application, and doing it serially 10 consequtive calls took about 20 seconds (2 seconds each, a...more >>

Newline in XML comments
Posted by Nico Vrouwe at 3/27/2004 2:50:08 PM
Hi, I'm wondering if it's possible to add a \n or \r\n to an XML comment. And if so, how? Some comments can get a bit long and it looks messy in the object browser. TIA, Nico Vrouwe ...more >>

HTTPS and security
Posted by Scatropolis at 3/27/2004 2:34:49 PM
hello, I'm starting planning on a server/client web based application and I'm wonder the best way to go about this. I haven't used asp.net but that sounds like it's what I need. One major thing I'm going to need no matter what I use is a secure internet connection. Now I'm assuming savvy w...more >>

scanf() and DllImport
Posted by Chris at 3/27/2004 2:11:33 PM
Hi, using DLLImport as follows : [DllImport("msvcrt.dll", CharSet=CharSet.Ansi, CallingConvention=CallingConvention.Cdecl)] public static extern int scanf(string format, ref int s1); then using : int sum=0; scanf("%d", ref sum); Console.WriteLine(...more >>

arrgh, aspx templates.
Posted by suzy at 3/27/2004 2:02:15 PM
this is driving me crazy. i hear so many people telling me page templates are easy, so why can't i get it to work in a nice way. i just looked at the following site to find out how to implement page temlates (http://authors.aspalliance.com/mamanze/articles/?path=pagetemplate3). i thought it...more >>

what is the coresponding type to win32 COLORREF in C#?Color or Int32 ?
Posted by ΢ÈíÐÂÎÅ×é at 3/27/2004 1:46:48 PM

making a screen capture utility
Posted by Laura Martignas at 3/27/2004 1:26:53 PM
Hi I'm developping a screen capture utility in C#. But I have the following problem : system wide hooks are not supported by .NET, and I'd like my utility (resident in systray) to use the F9 key to perform the capture. So, how could I do that in .NET without a keyboard hook ? Thanks ...more >>

show next preview data
Posted by Selen at 3/27/2004 12:54:39 PM
Hi, How can I show next preview data using ADO on asp.net c#.. Thanks ...more >>

HTML to PDF
Posted by Mark Rae at 3/27/2004 12:25:00 PM
Hi, Can anyone recommend an HTML to PDF converter, specifically one which supports CSS? I've been looking at HTMLDOC from EasySW (http://www.easysw.com/htmldoc/) but that doesn't support CSS - there's talk of an upgrade which will, but the manufacturers have no idea when or even if this will ...more >>

Working with 2 forms...
Posted by Donald Smith at 3/27/2004 11:08:19 AM
Hey, I have 2 forms. On the first form, there is a function that displays a lot of data, with a lot of values, that I store in variables. So what I want to do is use the info that I store in variables on the first form, and insert it into the second form. Like this... (Not my real code) For...more >>

struct list ?
Posted by at 3/27/2004 10:50:56 AM
i have a structure like public struct structure { public int net_id; public string net_desc; public string net_mail; public string[] update; public string[] select; } i want to create an structure array whose length is undefined... but i keep adding new...more >>

out parameter ???
Posted by Chris at 3/27/2004 10:17:44 AM
Hi, This what the documentation says about out-parameters The value of an out argument will not be passed to the out parameter. But ... static void F(out int i) { i = 9; ==> set breakpoint here Console.WriteLine(i); } static void Main() { int i = 10; F(o...more >>

Windows form globalazation
Posted by Kim Rasmussen at 3/27/2004 9:39:18 AM
Hello there, When a Windows form change the culture, how do I refresh/redraw/recreate the current form so the user gets the form in the newly selected culture? Fx. changing culture from English til Danish. Then I would like to have the Windows form change text on controls to Danish without h...more >>

Convert double[] to byte[]
Posted by Chucker at 3/27/2004 8:31:06 AM
I found the following way to convert from double[] to byte[] and I wonder if there is an easier one And I have another question I can see from the value in canFloat if my Data can be stored in Float Data If I want to do this and only convert 4 of the bytes in the double wich are the right ones? h...more >>

"Object must implement IConvertible." Error when Executing Stored Procedure
Posted by Chucker at 3/27/2004 7:06:08 AM
Hi Folks I got a strange Error when executing a Stored Procedure, can Somebody help me This is my Error Message Server Error in '/OMAS' Application ------------------------------------------------------------------------------- Object must implement IConvertible. Description: An unhandled ex...more >>

Polar Coordinates and Analog Clock Help
Posted by Charles Conlow at 3/27/2004 7:04:39 AM
Greetings all! I've hit a brain bump here and need a boost... given this analog clock code (just the hour hand here), where am I missing the math to move the hour hand along PAST this point? Using this code, it's drawn AT the hour position, but not PAST it as a real clock does. I'm thinking too ...more >>

Recalculate DataSet Computed Column
Posted by Mogens Nielsen at 3/27/2004 6:21:06 AM
Hi I have some troubles with a computed column in a DataSet I have a typed DataSet ds, which is received from a WebService ws. The Table BestillingslisteLinie has one child-relation to the table BestillingslisteLinieKommentar My computed column is added to the table BestillingslisteLinie like thi...more >>

Data - Highlight row
Posted by Mark Goldin at 3/27/2004 5:38:19 AM
Is there a way to highlight the whole row in DataGrid? I want to select a whole row clicking anywhere on that row. I also want to prevent the user from selecting individual cells. So when he clicks on the row the cell does not get activated. Can someone help, please? ...more >>

hyperlinks
Posted by Mark Goldin at 3/27/2004 5:35:10 AM
I am writing an application where I need to create hyperlinks to various documents on the network. Program will provide an OpenFileDialog for the user to select a file. Then I need to show the selected path as a hyperlink. What is a way of doing that? Thanks. ...more >>

Event model
Posted by ryanm at 3/27/2004 4:39:13 AM
I have a class with a non-blocking client socket open, but I don't want to poll it for data, I want to raise an event when data arrives. Is that possible, or does the Receive method have to be polled in order to know when there is new data? The socket doesn't appear to have any events of it's...more >>

Adding Load/Save pic to Buttons
Posted by ~toki at 3/27/2004 3:24:12 AM
I need to add the new, load, save, delete,, pictures to my buttons. Where are stored the IDE pictures? Are in some dll? How can i added to my buttons? ...more >>

DataReader -> Datagrid
Posted by Rikki at 3/27/2004 3:22:32 AM
Marcin wrote : > e.g. If you define DataTable object, You can load it with IDataReader > values and then set its table as a DataSource of DataGrid. Ok, i'm a beginner with C# ... i have tried this : connection = new OleDbConnection(connStr); connection.Open(); OleDbCommand myComma...more >>

RichTextBox Scroll Bar
Posted by NoChanceDongle at 3/27/2004 3:00:57 AM
I am building a text parser to scan a text document for predefined tags. I am using the RTB to display the contents of the plain text file in read only mode. I parse the file and get a list of tags which I can select from a list box, then using thier positions and highlight them in the RTB. Ho...more >>

file searching and deleting
Posted by rodrigo at 3/27/2004 12:38:46 AM
hi all... how could i make a exe that searches the hd for a specific file that can be in random folders, and delete it when find it. how can i accomplish that in c# ? any link ? source code to deal with file manipulation ? thanks ! ...more >>

How to programmatically access highlight colour properties un a treeview control?
Posted by Juan at 3/27/2004 12:32:57 AM
I haven't been able to programmatically access highlight colour properties un a treeview control? Is it possible? thanks, Juan ...more >>

Converting snippett from VB.Net to C#
Posted by Steve Graddy at 3/27/2004 12:27:53 AM
I am having a problem converting one line of code in this VB.Net Function. I have marked the line below in its context. In the converted C# code I am getting a error stating "Input string was not in a correct format". Is there anyone out there that can shed some light on fixing this line.. I h...more >>


DevelopmentNow Blog