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# > november 2003 > threads for wednesday november 12

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

Directory listing over http
Posted by Tom_Graves NO[at]SPAM i2.com at 11/12/2003 10:45:10 PM
I need to get a directory listing through http. If I put the directory path in the browser address bar such as http://somewebpage.com/subdir I get the listing of the directory. Of course this is returned to my client in html. To get the directory listing from this I would need to do some inters...more >>

Downloadable files list
Posted by Fabrizio at 11/12/2003 10:42:33 PM
HI, I'm trying to create an aspx page that lists all files that an user can download from a site simply clicking on the link. There is any example on the web? Thanks, Fabrizio...more >>

How to place text over a picturebox
Posted by Phil Diwell at 11/12/2003 9:28:43 PM
Hi all. I am trying to place text over a picturebox. I thought I coul do this by making the textbox.backcolor property = color.transparent. However this doesn't work (textbox doesn't support transparent backcolor) and so I am wondering if anyone knows how I can do this. I need to be able ...more >>

Is there no Thread.join method ?(Smart Device project)
Posted by dharan NO[at]SPAM newspage.com.sg at 11/12/2003 8:16:21 PM
Hi, I am using C#. Is there no Join method (in thread class)for Smart device application? And Also i noticed that Name property isn't there(got compiler error when trying to use them) Is this a limitation for smart device application? Is there any forum/group available for Smart device appli...more >>

Fixed aspect size when form is resized
Posted by Ron Vecchi at 11/12/2003 7:57:19 PM
I know the math I need to perform on width and height to keep an aspect ratio but where and how would I implement keeping a set aspect ratio on a form when a user resizes it. Override OnResize? couldn't quite figure it out. -- Ron Vecchi ...more >>

HttpWebRequest and QueryString
Posted by Chris Gallucci at 11/12/2003 7:14:02 PM
I'm trying to execute a "POST" with a HttpWebRequest object that has a Uri containing a QueryString. The QueryString is being Url-Encoded by the object. The server receiving the "POST" is not Url-Decoding the QueryString and I have no control over this behavior. Can someone show me how to preve...more >>

Control the screensaver in C#
Posted by Marcus Ahlberg at 11/12/2003 7:00:39 PM
I want to write a program that can enable/disable the screensaver and the powersaving mode with a single click on a notification icon. Does anyone now how to change these settings in C#. Is there any API method I can invoke? _______________________________________ Marcus Ahlberg cable_guy6@sw...more >>

convert a C# string to a unmanaged C char
Posted by Jim at 11/12/2003 6:32:44 PM
I have to access a third party api to work with their hardware. Everything was going great UNTIL I ran into the problem of C# char being 16 bits and the C char being 8 bits. I cannot seem to cast the string properly to use it in the unmanaged code. I have tried to use the MarshalAs func...more >>



Break Point doesn't stop anymore
Posted by Iris at 11/12/2003 6:32:11 PM
I don't know what I have done, but I can't view the code through the Break Point anymore. It comes a ? at the point and it says: The breakpoint will currently not be hit. No symbols have been loaded for this document. Can you please tell me how I can watch through my code with the breakpoint a...more >>

Odd Exception Trying To Load Form
Posted by Dan at 11/12/2003 6:29:51 PM
I am back yet again :) I am encountering an Exception that has me scratching my head. I have two forms. Form A launches Form B in response to the user clicking a button. The Constructor for Form B takes 5 parameters but none of them complicated ( three short strings and two booleans ). Fo...more >>

How do I use CSharp to create ActiveX Objects?
Posted by Rashad Rivera at 11/12/2003 6:16:05 PM
HI, I want to hide my JScript code for some DHTML routines that I designed. So I figured that I could pilot the code into CSharp and create a DLL that I can call in JScript as an ActiveX Object (via "new ActiveXObject('MyProgID.Example');"). Is this possible Rashad Rivera...more >>

Line No
Posted by Baskar RajaSekharan at 11/12/2003 6:15:25 PM
Hi, How to Get a Line Number in C-Sharp? For Loging purpose , i want to log the Line no where the Error Happens? Regards, R.Baskar ...more >>

clarification is needed
Posted by Baskar RajaSekharan at 11/12/2003 6:12:10 PM
Hi, Please let me know is ther any way to pass some default parameters to a Method in C-Sharp without overloading the Method. In VB we can done the above with the help of optional parameter . What's the Equvelent in C-Sharp. Note : Without Method OverLoading. can you give me some s...more >>

Can't override CollectionBase.Count?
Posted by Eric Johannsen at 11/12/2003 6:06:10 PM
I have a simple object that inherits from CollectionBase and overrides the Count property: namespace MyTest { public class CollTest : System.Collections.CollectionBase { public override int Count { get { return 0; } } } } The compiler s...more >>

How to force DataAdapter NOT to update added rows?
Posted by Dmitry Karneyev at 11/12/2003 5:49:28 PM
Hi! I've got a DataSet with tables corresponding to the database ones. And I've got a table for my calculations and databinding in app. To fill "my" table I use myTable.Rows.Add(...) and then edit necessary columns. When app closes I check dataset.HasChanges() and if it is I make an update. Bu...more >>

Doubt
Posted by Baskar RajaSekharan at 11/12/2003 5:46:16 PM
Hi, Please let me know is ther any way to pass some default parameters to a Method in C-Sharp without overloading the Method. In VB we can done the above with the help of optional parameter . What's the Equvelent in C-Sharp. Note : Without Method OverLoading. can you give me some s...more >>

Datagrid
Posted by Ramki at 11/12/2003 5:42:03 PM
hi guys, How to add a new row in asp.net datagrid. regards, ramki ...more >>

Complicate question : DataSet2Class
Posted by Tamir Khason at 11/12/2003 5:20:10 PM
Is there "smart" way of converting DataSet to Class ??? ...more >>

Quando convalidare i dati immessi ?
Posted by P. Marcello Genuini at 11/12/2003 5:07:19 PM
Salve a tutti, Premesso che sono alle prime armi con c#, spero qualcuno di voi possa aiutarmi in un questo mio problema. Stò scrivendo una repository di form in c# che dovrebbero essere poi usate da un team di sviluppatori per scrivere applicazioni, e quindi vorrei dotare le varie form padre di...more >>

doubt
Posted by Baskar RajaSekharan at 11/12/2003 5:05:25 PM
Hi, Please let me know is ther any way to pass some default parameters to a Method in C-Sharp without overloading the Method. In VB we can done the above with the help of optional parameter . What's the Equvelent in C-Sharp. Regards, R.Baskar ...more >>

graphics, drawing problem
Posted by Jeroen Ceuppens at 11/12/2003 4:54:38 PM
Hi, When I draw a bitmap on a form, the bitmapdrawing disappears when I move the form, how is it possible to lock the drawing so it stays visible when you move or do somethings else.... Thx Jeroen ...more >>

Reflect a structure
Posted by Ian Williamson at 11/12/2003 4:53:50 PM
Assuming I have the following structure within a class: class myClass { public struct Action { public const String REQUIRED = "T"; public const String IGNORE = "F"; public const String OPTIONAL = "O"; } ... code ... } How can I use reflection to access the eleme...more >>

Delete File!! HELP!!!
Posted by Iris at 11/12/2003 4:44:28 PM
Hi! I have a big problem. I have a database and textfiles. Everytime a new textfile is saved to a folder this textfile is read and saved to the database. This works good .. but then I want to delete the file and here it is over .. it says access to path denied. What is the prob?? Could it be b...more >>

View all references in a list
Posted by Rico Hansen at 11/12/2003 4:36:25 PM
Hi NG! Does anyone know how to view all references in a listbox the same way when clicking the "add reference"? When clicking "add references" it's shown in a listview with Component name, version and path but how do I do it the same way? I my solution, I want to do it exactly the same way....more >>

Generate HTML Urgent!!!!
Posted by Chris Calhoun at 11/12/2003 4:22:34 PM
Does anyone know how to generate HTML or WebForms in C# Assemblies? Thanks in advance! ...more >>

Question on Regex.Split
Posted by Frank Oquendo at 11/12/2003 4:16:25 PM
I have the following code: string pattern = @"(\{)|(})|(\()|(\))|(\[)|(])|(\^)|(\*)|(/)|(-)|(\+)|(%)"; Regex regex = new Regex(pattern); string input = "QTY * ESTIMATED COST + 2"; string[] tokens = regex.Split(input); for (int i = 0; i != tokens.Length; i++) { Console.WriteLine("Token {0}...more >>

Serial Ports
Posted by Dennis at 11/12/2003 4:04:32 PM
I know this is probably a common questions, but is there any way to contorl the serial port in C# VS2003 without using an OCX. And if so, were is a good example? Thanks Dennis ...more >>

Classes to access modem serial communication
Posted by Rein Petersen at 11/12/2003 3:57:46 PM
Hi Everyone, I'm interested in writing an autodialer and announcement proggie with .NET and I'm hoping someone can point me to the classes that I should use to control a modem... Rein ...more >>

XML from SQL or from DataSet - Design Question!
Posted by PCC at 11/12/2003 3:55:09 PM
I am writing a data access layer for a web service. Data from the web service is to be returned as XML. My design dilemma is this... Should I be returning XML from my stored procedures using the "for xml" clause or loading the data into a DataSet in the data access layer and then outputting ...more >>

Question about equality
Posted by Matt Burland at 11/12/2003 3:35:20 PM
I'm a little confused about the way the default equality operator works with classes. Here's the situation, I have two comboboxes that are each filled with different object (i.e. ComboBox1 contains objects of class A, ComboBox2 contains objects of class B). What I'm trying to do is determine if a...more >>

C# vs Java Serialization
Posted by Ray Mitchell at 11/12/2003 3:27:52 PM
Hello, I have two Java applications that exchange serialized objects. Although I would like to ultimately convert both to C# it's a pretty monumental task, especially for someone just learning both langauges. I thought it might be more reasonable to start with simply converting the si...more >>

again abstract class problems
Posted by Sunny at 11/12/2003 3:09:46 PM
Hi again, in the past I have posted here a problem with static methods and abstract classes, and Jon Skeet and Richard Lowe have helped me to clarify the things. But now I have found another problem (I have posted similar thing in vs.ide newsgroup, but I do not know if this is and IDE or...more >>

Crystal Report Viewer overrides mouse cursor setting
Posted by at 11/12/2003 3:08:03 PM
Hi, I am loading some crystal reports in a method similar to this (see below). And set the cursor to waiting while the reoprt is loaded, run and shown. BUT while the report is running the cursor changes back to default. I have tested setting it back to waiting after the call to run the report,...more >>

Why C# doesn't support default values in functions?
Posted by Vyssokih Max at 11/12/2003 2:56:50 PM
Hello! In C++, I can wrote: void Update(int count = 0) {...} and use it without parameters or with one parameter In C#, I must wrote: void Update(int count) {...} void Update() { Update(0); } With many similiar functions it's hard to keep code fine and clear. What is ...more >>

Attribute Classes - How do I use them?
Posted by Jim at 11/12/2003 2:24:24 PM
I think I understand what these are for, but am not quite suer how to use them. I'm assuming that the basic purpose of the attribute class is to allow me to pull information from the class at runtime, kind of like the stuff that MFC did with macros and all the _Runtime_Class things you used...more >>

Type.FullName with a Plus?
Posted by Matthew Wieder at 11/12/2003 2:19:04 PM
CSharp, VS 2003. I'm writing a utility which takes an assembly and generates a proxy for that assembly in CSharp (much like the on in the Feb 2003 issue of MSDN for VB). It's almost finished, except for one issue. The proxy has three lines for each method - one declaring the return variable...more >>

Format question
Posted by george r smith at 11/12/2003 1:42:10 PM
How can you format the following so that all the numbers line up (right justification) ? thanks static void Main(string[] args) { for (int sq = 0; sq < 226; sq+=16) { int i = 0; i = sq & 136; Console.WriteLine(sq + " " + Convert.ToString(sq,2) + " " + Convert.ToString...more >>

Compare Strings
Posted by Drew at 11/12/2003 1:05:30 PM
Hello - I am a converted VB programmer. What I am trying to do it compare two strings in an if statement. The problem is that when I use string.compare it always returns a negative 1. I have entered the same string, different strings. The string is loaded from the results from a dat...more >>

System Error when trying to call Stored Procedure from code
Posted by Jenny C. at 11/12/2003 12:46:13 PM
Hi I am fairly new to .NET, and I am having a hard time to call a stored procedure from C# code in a windows application I have tested my connection (and login) several time and it is OK. If I try to do a query it works, but when I try to call a stored procedure i get the message "System Error". ...more >>

Commenting out XML
Posted by Ron McNulty at 11/12/2003 12:44:56 PM
Often when testing an app, I want to temporarily comment out sections of the App.config file. Is there any way to do this? Regards Ron ...more >>

Where to start???
Posted by Brian at 11/12/2003 12:21:36 PM
First, I'll give you all a little history. I started programming way back in the day with qbasic. From there I moved on to C++ in about 1992. It was more of an education project for myself than anything. I got away from computers in general for several years, then was thrown into programmi...more >>

local "static" variable
Posted by Zeljko at 11/12/2003 12:18:25 PM
Hi, Is there a way to define a local variable that retains it's value between the function calls ? Zeljko...more >>

Unsafe code
Posted by Jon Milner at 11/12/2003 11:59:41 AM
How do I declare that my code is unsafe? Sorry the help files at my University have not been installed!...more >>

copying a subsection of an array to another array?
Posted by jeric at 11/12/2003 11:44:04 AM
I have two byte arrays, X and Y. X contains 100 elements, and Y has 10 elements. I want Y to equal X[50] through X[59]. How can I do this without a loop? While in this example the arrays are only maxing at 100, in reality there will be up to 5MB+ stored in this byte array, hence the lack of ...more >>

OOP in VB.NET vs. C# (matching keywords)
Posted by NewbieDev at 11/12/2003 11:44:01 AM
Hi there, I have some experience with Java and C#. But currently I have to work with VB.NET And I was wondering if there is a good SHORT text about OOP features of VB.NET and its matching with C#. Something like: /*** C# class declaration ***/ .... '*** VB Class declaration *** ... Or ev...more >>

installing dotnetfx.exe
Posted by dawn at 11/12/2003 11:33:36 AM
Hi, How can I have the setup program I created (using Setup Wizard) automatically install dotnetfx.exe if it is not installed yet? thanks ...more >>

Getting values of parameters to method
Posted by Brad Quinn at 11/12/2003 10:29:22 AM
Is there a way to get the values of the paramaters to a method programatically? I know that I can use reflection to find out the parameter names and types, etc., but I want to know the values of those parameters too. I'm trying to write a generic error handler. I wan't to be able to l...more >>

c# and webforms
Posted by Carlos at 11/12/2003 10:22:49 AM
Ok I'm learning C#, I' trying to do a ASP.NET page where a user key a date range, now I want it to call a different asp.net c# page that will proces that request passing the parameters. What I have done so far is the main page were he user type the date range, I'll using all webform control, n...more >>

null date?
Posted by evolve at 11/12/2003 9:30:51 AM
why doesn't c# seem to support some kind of 'null date' for instance: i have an application where the user is not obliged to enter a date until an event happens (e.g. a bug was fixed on xyz) the calendar control in asp.net doesn't seem to have a selectedDate = null property is there an...more >>

determine if someone is done entering data in a text field
Posted by jayderk at 11/12/2003 9:11:32 AM
I am writing an application that has I/O entering data in a text field. My question is. does the event "textchanged" fire as soon as the data starts changing.. for example... if 12345 is being entered in the text field, does the event fire as soon as 1 is entered? if so, is there a way to know wh...more >>

Creating log files from Console App
Posted by amcniw NO[at]SPAM yahoo.com at 11/12/2003 7:45:51 AM
Is there any way to generate a log file with respect to errors that may have occurred in a console app? Specifically, are TraceSwitch and TraceListener one way to do it?...more >>

DateTime accounts for leap seconds ?!
Posted by nriesch at 11/12/2003 7:19:19 AM
In the documentation, the "Second" property of class DateTime is a value between 0 and 59. In UTC time, approximately every year of so, a leap second is added at 00:00:00 UTC, so as to account for the irregular rotation of the earth, which is slowing down a little bit. So, a minute can...more >>

Multiple Inheritance C++ & C#
Posted by am72de NO[at]SPAM yahoo.de at 11/12/2003 6:50:23 AM
Hi all, I'm converting some C++ Controls to C# and there's one big thing, that I can't solve: class CControlEx { int nDescriptionID; CString strDescription; public: //works with nDescriptionID & strDescription void DoSomething(); }; with this cla...more >>

Serialize Class To XML
Posted by Dan at 11/12/2003 6:10:04 AM
All I Am Attempting To Serialize An Object To An XML File. Here Is The Code For That public string SaveNewSurvey( MutualSurveyObject mso_TempObject, int i_JobID ) { string s_RootFileName; string s_FinalFileName; try { //Create The Final File Name s_RootFileName = "job" + i_JobID.To...more >>

Component vs IDE
Posted by Bram Vandendriesschen at 11/12/2003 4:36:43 AM
Hi, I already found the solution to my problem, but I would like to discuss it with you. I developed a component with a property called Name (of type String). Everytime I dropped the component on a form the IDE complained with the well-known (and sometimes nasty) "object reference not set...more >>

how can setting the session is end?
Posted by yohomonkey at 11/12/2003 4:12:58 AM
I want to setting the session end , but ican't waiting for the session is timeout! Who can help me?...more >>

WebRequest over SSL and Proxy
Posted by Matthias Kwiedor at 11/12/2003 4:06:37 AM
I try to get a page from a https server. I can build up a connection with WebRequest and everything runs fine without setting a proxy. After setting a proxy, i get the error that i can't build a thrusted connection to the remote server. If i try it over the IE i get a pop up which tells me ...more >>

UITypeEditor
Posted by Ernest Morariu at 11/12/2003 3:57:47 AM
Hi All! The MyEditor class derives from UITypeEditor and its constructor has some parameters. I have to use EditorAttribute to associate MyEditor with a type or property. Question: it would be possibile to specify some values for the costructor's parameters when I associate the MyEditor t...more >>

short question1
Posted by josema at 11/12/2003 2:58:41 AM
Hi... I have an array of elements that has dinamic size, sometimes has 5 elements, sometimes 3 etc... I would like to create a WebForm with as <input type=text> as elements i have in this array What is the way to make this, cause if i use a loop i dont know how i can instanciate the class wi...more >>

listview autoscroll event?
Posted by ashley at 11/12/2003 2:53:00 AM
How do i detect that the vertical scroll bar has been moved and how do i get the vertical scrollbar value from a listview. I need to do this to synchronise a textbox movement within the listview....more >>

query about zipping in c#
Posted by gaurav at 11/12/2003 2:51:19 AM
is there any zipping utility offered in visual c#.NET, as it is in Java (java.util.zip). please give your due concern....more >>

Start Process from Web Service
Posted by Dmitri Shvetsov at 11/12/2003 2:44:59 AM
Hi, Can I start an external process from the Web Service? I'm using a code, compiler keeps silence, compiles ok and starts the project. When I trace in Debugger it doesn't start an external process. That's strange for me. I understand that it should be a new shell, but why I can't start it?...more >>

General network error. Check your network documentation.
Posted by Buddy at 11/12/2003 2:35:27 AM
Hello, I'm getting the following error when running a large SQL. I am using the SqlCommand and calling the ExecuteNonQuery with the CommandTimeout set to 0. Here is the example of the code sqlCommand = new SqlCommand(m_SQLBuffer, (SqlConnection) m_connection); sqlCommand.CommandTimeou...more >>

Getting Clipboard Handle using GetClipboardData in C#
Posted by Roohi at 11/12/2003 2:25:33 AM
hi I am trying to copy an image to a clipboard and then get a handle to the clipboard using API calls GetClipboardData(). Following is the snippet of our code. Could any one please point out what am I missing here since I never get the handle to the object on clipboard <snippet> Op...more >>

"This row already belongs to another table" error
Posted by Saso Zagoranski at 11/12/2003 1:58:52 AM
Hi! I have a little search textbox, which goes through a dataset as the user types in the textbox... If the user types "1", then all the fields beginning with a 1 get shown in the datagrid... here's the problem... I load the dataSet with all possible entries at Form_Load event... but duri...more >>

modifying icons in .NET
Posted by Liz at 11/12/2003 1:29:43 AM
I need to modify some icons for buttons in my form. How do I go about this? ...more >>

Typical Time to Get up and Running?
Posted by John Thomas at 11/12/2003 1:29:29 AM
Hey, I was wondering what the typical time to get up and running to comfortably program ASP.NET with C#. I have done PHP, but no ASP. I have used C++ in the past and familar with the language and methods, although I don't actively code it. I been doing some C# reading for 3-4 days now, been...more >>

c# applet IE sandbox
Posted by n_sergiu NO[at]SPAM hotmail.com at 11/12/2003 12:47:48 AM
Hi all, How can I adjust my IE .NET sandbox security level? Sergiu....more >>


DevelopmentNow Blog