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# > july 2005 > threads for friday july 22

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

ImageList the old way...
Posted by Sam Carleton at 7/22/2005 8:23:11 PM
I have an BMP from the C/C++ world which is 16x400 which is a "list of images". The images are still being used in the C/C++ world and I would like to use the same image in a C# tree control. Can it be done? If so, now? Sam...more >>


Find and Replace
Posted by me at 7/22/2005 4:53:47 PM
Hi, I have a text box that is name txtQuote. Enduser might type in txtQuote: It is unbelievable <a href="http://sports.yahoo.com/sc/news?slug=reu-tourtrial_picture&prov=reuter s&type=lgns">Armstrong is on <font color="red"FIRE</font></a>. How do I convert the < to &lt; and > to &gt;? ...more >>

C# and VB COM object
Posted by Bob at 7/22/2005 4:41:38 PM
I have a VB COM object with a method as follows: Public Function GetTotalAmount(strUniqueIdentifier As Variant) As Variant This method works fine in classic ASP. But in C#, when I call this method, it complains because the parameter is a Variant. How do I get around this problem witho...more >>

ASPNET 2.0 released date
Posted by gg_spenard NO[at]SPAM yahoo.com at 7/22/2005 4:01:01 PM
Any date ? Please ? Will it be in 2005 ? -------------------- Free iPod: http://www.freeiPods.com/?r=20454745 ...more >>

Using Local File Links in Web Browser Control
Posted by Christopher D. Wiederspan at 7/22/2005 3:19:29 PM
I've got a WebBrowser control in a C# Windows form. I build HTML on the fly and then set it into the control using the DocumentText property of the control. All of this works fine, except that part of the HTML that I construct is an <A> element that links to a local file, something like this: ...more >>

Friend Class
Posted by LDD at 7/22/2005 3:13:33 PM
How do I declare a class as a friend that can be used outside the local assembly? LDD ...more >>

How can I pass a multidimensional array as a ref parameter in func
Posted by vmsgman at 7/22/2005 2:59:02 PM
Here is a code sample ... int blah = ReadFile( defArray[,], defFileName, w, h); // Read File Contents into memory array and return for processing public int ReadFile( ref ushort[,] nArray, string sFname, int w, int h) { FileStream fs = new FileStream(sFname, FileMode.Open, FileAccess.Read)...more >>

Encrypt Database Data
Posted by John Smith at 7/22/2005 1:03:10 PM
Hello all: Is there any way (simple hopefully) to encrypt data stored in a database. I'm looking for something similar to PHP's MD5 functionality (a simple function call) as I am storing passwords and would like them to not be in plain text. Thanks, John...more >>



Performance in csharp, scientific simulation
Posted by Michael Gorbach at 7/22/2005 12:43:14 PM
I was asked this summer to write a monte carlo code to simulation magnetic nanoparticles. For the nonphysicists, basicly it is a simulation where most of the time is taken up by looping through each pair in an array of 500 or so particles, in order to calculate interaction potential. I wrote wha...more >>

Simple code sample wanted: enum as method parameter
Posted by kenfine NO[at]SPAM u.washington.edu at 7/22/2005 12:38:12 PM
I'm new to VS.NET, C#, and the enumerated datatype. I'm told that VS.NET 2005 Intellisense will pop up the members of an enum as a selection list if you are using the enum as a method parameter. This sounds very handy. I would really appreciate it if someone could give me a basic C# code sa...more >>

Reading the name of a variable
Posted by Azat at 7/22/2005 12:09:21 PM
Hi, I am wondering if there is a way in C# to get the name of a variable. Let's say: int MyName=3; How can I get a string with the Value "MyName"? Any ideas on that? Thanks Azat ...more >>

Security permissions for .NET v2.0
Posted by Squeeze at 7/22/2005 12:02:54 PM
Hi there, We're in the process of converting our .NET 2002 apps into 2005 and have run into a security issue. We are trying to attach to an assembly using a UNC path. We sorted the issue out in .NET 2002 by using the 'Adjust .NET security' Wizard. and moved the Local Intranet security se...more >>

Datagrid - preventing the user from adding rows
Posted by Neil Arnold at 7/22/2005 11:57:02 AM
Hi, I've an app which has a datagrid embedded, but whenever the user navigates to the last row & presses the down arrow (or clicks with the mouse just below the last row), I see an additional row added, full of nulls. Is there an easy way to prevent this extra row? Cheers -- Neil Arno...more >>

C# Chr and Asc Function Equivalents - The Undocumented Truth!
Posted by Darrell Sparti, MCSD at 7/22/2005 11:48:04 AM
There have been many postings about this subject on this newsgroup. Unfortunately, they're incorrect. You can't just cast a value in C# and have it work for all ASCII characters. Nor can you use the ASCII encoding as some have suggested. The undocumented truth is, Microsoft uses the Western ...more >>

Changing Globalization CultureInfo
Posted by Alvaro E. Gonzalez V. at 7/22/2005 11:36:59 AM
Hello everybody; Somebody has a simple example of like applying to the change of Globalization to an application MDI with children windows already opened? HEY!!: That "located" properties of my controls automatically change when changing the current culture. Thanks Alvaro PD: I...more >>

Multiple instances of a service.
Posted by Frank Rizzo at 7/22/2005 11:33:10 AM
I have written a .NET service, but now I want to install multiple instances of it onto the customer's server (for various reasons), much like SQL Server does. How would I go about doing that? Thanks....more >>

raising events in dynamically loaded com class
Posted by Ingo Beyer at 7/22/2005 11:03:59 AM
hi all, in my c# app i dynamically load a extern com library. in this lib is a class with events. when i inspect the methods of this class i get to methods: remove_TestEvent add_TestEvents How can I use this methods for applying event handlers in my c# app. thank you! ingo ...more >>

Should throw exception when validating data?
Posted by TS at 7/22/2005 10:53:59 AM
i'm wondering if it is preferred practice to throw exception in this circumstance. I have seen it done like that, but i have also read that you should try to never throw an exception in circumstances where you can do some test before the operation that would throw the test so that you can by pas...more >>

Retrieving Value from Grid in Master Detail Relationship
Posted by Christopher Weaver at 7/22/2005 10:43:06 AM
I'm having the hardest time doing the simplest thing. I have a DataGrid bound to a table in a master detail DataRelation within a DataSet relTaskActivities = new DataRelation("TaskActivities", parentCol, childCol); dsTaskActivities.Relations.Add(relTaskActivities); dgActivity.SetDataBindin...more >>

To locate to me in a cell of the DataGrid
Posted by Jonny at 7/22/2005 10:08:02 AM
Hello I would like to know a doubt, I feel not to speak English good. I have a DataGrid in Visual Microsoft C# .NET, would like to know how as to locate to me in a cell in concrete. Pardon by the English, not to be written and to speak very well. ...more >>

Fade PictureBox
Posted by Ben at 7/22/2005 9:57:59 AM
Hi everyone I'm new to winforms from asp.net and I'm trying to fade in/out an image in a picturebox on a winform. I'm doing research and I've found things like opacity for the winform, but I haven't had any luck with a picture box. Can someone please point me in the right direction? Tha...more >>

Need help ... how to find if form is closed?
Posted by Michael Gorbach at 7/22/2005 9:30:22 AM
Iv got a little bit of a threading problem. Iv got a form which handles events fired by an object running on another thread (the event handlers are executed on a thread differnet from the form's gui thread). Im using BeginInvoke to call methods on the form that manipulate its GUI elements, as is...more >>

Generics - A question on generics - delegates - runtime binding.
Posted by bigtexan at 7/22/2005 9:05:02 AM
I would like to do the following and cannot figure it out. public class A<T> { public delegate T GetValueDelegate(A<T> var); public GetValueDelegate GetValue = new GetValueDelegate(B.GetValue); } public class B { public static int GetValue(A<int> var) { //do something...more >>

Checklistbox with images
Posted by satankidneypie at 7/22/2005 8:26:05 AM
Hi, has anyone implemented a checkedlistbox with images as well as text, and if so can I have some sample code please?! Thanks, Stu...more >>

boolean and null
Posted by Italian Pete at 7/22/2005 7:57:01 AM
Can a boolean data type be null? I'm passing a parameter to a stored procedure. It's type is defined by the line: .... SqlParameter paramOK = cmd.Parameters.Add("@IsOK", SqlDbType.Bit); .... and it's value is set using: .... paramIsOK.Value = null; .... but it doesn't like...more >>

Uploading file in ASP.NET
Posted by Raj at 7/22/2005 7:42:06 AM
I want to uplaod file from my local machine to server using ASP.NET appln, I know we can use Server.MapPath and save it on the server. My question is I want to upload a file without giving any file size limit. I can configure the web.config and machine.config file but there is a limit how can ...more >>

button handler problem
Posted by Newbie at 7/22/2005 7:08:04 AM
i have a c# asp.net webform that has a "Close" button. When the user clicks the Close button, a message box saying "do u want to save to database...?". the problem is that the statements inside the Close function are not being executed. how can i save the data in the webform to the database? c...more >>

ToDouble() - problem
Posted by henfo at 7/22/2005 6:39:05 AM
This should be simple, but either I'm blind, stupid or going mad. I'm trying to convert a string, containing a numeric value to a double (in C#), but when I run the code below I get the error message "Input string was not in a correct format." Why? string s = "8.0"; double d = Convert...more >>

Bind datareader to datagrid
Posted by Ricardo Luceac at 7/22/2005 6:00:53 AM
Hi... My program make a select to an table and return the results to a datagrid, it's all ok with dataset, but in large tables it needs to get the entire table to show in datagrid and sometimes it takes much time... So I thik of use the datareader, but how can I bind the data that it is...more >>

Change the control class at runtime
Posted by kaumil at 7/22/2005 5:25:05 AM
I have a label on my form, but at runtime I would like to change it to a LinkLabel. Is it possible to change the class of that label control at runtime after the window is open? Is this possible? Please advise. Thanks...more >>

Set up context menus in advance
Posted by ssg31415926 at 7/22/2005 3:59:01 AM
I've got a ListView which can show many different types of object. I need to display a ContextMenu whose MenuItems depend on the object type. I was planning to pre-create the ContextMenus when the app is started and then assign them when the object is clicked on. The first few items in the me...more >>

ComboBox DataSets Qty
Posted by Steve B. at 7/22/2005 3:33:02 AM
My Program: a local C# ADO.Net application using VS 2003 Right now I have about 5 ComboBox's which provides drop down selection entries from the same MS-Access table via a DataConnection, DataAdapter and DataSet datasource. Each CB has it's own DA and DS. When I tried to use the same DS a...more >>

Ask windowsidentity IsInRole but about NOT current user
Posted by carome2 NO[at]SPAM gmail.com at 7/22/2005 3:01:13 AM
Hi I need to ask if a user (I have login and password) belongs to a particular group of Windows 2000 users. There are methods for doing this but with the current user.... I have found some examples using impersonate method, but with this restriction: ' This sample can be run only on Wind...more >>

Assembly date ?
Posted by Just D. at 7/22/2005 2:55:49 AM
We all know hot to get the Assembly name and version. Can we get the assembly compilation date and how can we get this datetime if it's possible? It's not a very good idea to get the file DateTime because this is the WebApp and even if we get this DateTime it can be wrong. Do we have some fi...more >>

Windows Forms, change font of the controls at runtime?
Posted by Iwan Petrow at 7/22/2005 12:52:12 AM
Hi, I have a window form with controls (labels, buttons...). I want the user to have possibility to change the font (name and size) of the controls. But when the font is changed the size of the controls changed and some of the controls overlap each other. How could I fix this problem? Th...more >>

Custom Control and ToolTips?
Posted by Tinus at 7/22/2005 12:00:00 AM
Hello all, [Sorry for x-posting but did not know in which group someone could help me] I've created a custom control that draws a monthly schedule (using the Draw function in C#). Basically it draws 31 boxes and writes the day number in every box. This works great. But I now want to sho...more >>

getting name of a file extension from explorer
Posted by Brian Henry at 7/22/2005 12:00:00 AM
How do you go about getting the "type" of a file from explorer? Say if I want to know what the type for the extension .DOC was, which is "Micrsoft Word Document" in explorer, how would I do this? I just want to get the name of the extension.. I do not have the physical file to reference for th...more >>

frustating FileSystemWatcher problem
Posted by Justin Time at 7/22/2005 12:00:00 AM
Is there any way to to get a list of file names that were deleted as a result of deleting their parent directory?? Cheers ...more >>

Comparing two text files
Posted by Holger Kasten at 7/22/2005 12:00:00 AM
Hello, I am looking for a fast and efficient way to compare two text files and create a thrid one. E.g. Input file 1: Number 1 Number 2 Number 3 Number 4 Input file 2: Number 2 Number 3 Number 5 The Output should be in case 1 (Show lines that are the same): Number 2 Number 3...more >>

images in arrays..
Posted by Maheshkumar.R at 7/22/2005 12:00:00 AM
How i can store images in array @ runtime..? What are the possbile = ways.. Thankz.. -=20 M=E4h=E9sh Kum=E4r. R=20...more >>

About DatasetTable and DateSet Question ( help us please! )
Posted by mhw at 7/22/2005 12:00:00 AM
When we called DataSetTable.AcceptChanges() ,it same to call DateSet.AcceptChange() Please tall me why? ...more >>

Help on File.Copy speed
Posted by adnan boz at 7/22/2005 12:00:00 AM
Hi All, Does somebody know why File.Copy function is 10 times slower than standard windows drag and drop copy between folders, when I copy files over the network? Actually, I need to copy files from one computer to another over a 1GBit ethernet network as fast as I can. Although windows copy ...more >>

Enums
Posted by Michael C at 7/22/2005 12:00:00 AM
Simple question. Is there any reason an enum cannot inherit from a string or guid? Cheers, Michael ...more >>

MSHTML in C#
Posted by NG at 7/22/2005 12:00:00 AM
Hi All, I had posted this question earlier but I could not find a solution to my problem hence reframing my question. GOAL: I want to use the MSHTML to access a HTML page, access the DOM tree, do some modifications in the DOM tree and save changed DOM tree to a local HTML file. However, I...more >>

Can't declare a usercontrol in a Class
Posted by ad at 7/22/2005 12:00:00 AM
We can declarre a web controls in a class, like: public class HealthClassBase: System.Web.UI.Page { public TextBox myTextBox; ....... But if TUserControl is a Web UserControl. When I declare it in a class like: public class HealthClassBase: System.Web.UI.Page { publi...more >>

How draw 3D buttons by code?
Posted by JohnLid at 7/22/2005 12:00:00 AM
Hi, I want to draw 3D buttons by code nice like this one: http://www.download.com/AquaButton-Control/3000-10253_4-10414398.html?tag=lst-0-1 The code may be anyone of .NET languages. Please help me out. Thanks in advance. John Lid ...more >>


DevelopmentNow Blog