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# > august 2005 > threads for friday august 19

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

static virtual/override
Posted by Tony Maresca at 8/19/2005 8:54:24 PM
RG9uJ3Qga25vdyBpZiB0aGVyZSBhcmUgYW55IERlbHBoaS9PYmplY3QgUGFzY2FsIGNvbnZlcnRz DQpoZXJlLCBidXQgYmVpbmcgb25lLCBJIHNvcmVseSBtaXNzIHRoZSBmZWF0dXJlIHRoYXQgcGVy bWl0cw0KY2xhc3MgKGUuZy4sIHN0YXRpYykgbWV0aG9kcyB0byBiZSB2aXJ0dWFsIGFuZCBiZSBv dmVycmlkZGVuDQppbiBkZXJpdmVkIGNsYXNzZXMuDQoNClJlbGF0ZWQgdG8gdGhhdC...more >>


The :: operator, and "global"
Posted by Javaman59 at 8/19/2005 8:10:01 PM
I saw in a recent post the :: operator used to reach the global namespace, as in global::MyNamespace I hadn't seen this before, so looked it up in MSDN, which explained it nicely. My question is, do "global" and "::" always go together? Is there any other use for these operators, th...more >>

Retrieve local/remot IP from Socket
Posted by Marty at 8/19/2005 7:09:42 PM
Hi, From a socket on the server side, is it possible to retrieve the remote IP to which the socket is connected to? Which property of the socket can return that information? I would use that to see if a computer got connected to the server. Regards, Marty...more >>

How to convert 1223/100 to 12.23 not 12 in sql server?
Posted by TaeHo Yoo at 8/19/2005 6:52:23 PM
I have a column called "Amount" and this field contains amount as cents. So when I get the values of it, I do like "select amount / 100 as amount" which basically ignores cents. Do you know how to get cents? Thanks a lot *** Sent via Developersdex http://www.developersdex.com ***...more >>

may be escape chars related?
Posted by abcd at 8/19/2005 5:09:36 PM
Case 1 I have a variable called sConnectString whose value is [ I dynamically generate sConnectString from the database values, so can not hardcode] "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\msxp102\shared\DBS\db3.mdb;User Id=;Password=;"; after this I call following statements...more >>

what exact registry entries does the installing of a .net windows service create? either with installutil or with a deployment project.
Posted by Daniel at 8/19/2005 4:47:24 PM
what exact registry entries does the installing of a .net windows service create? either with installutil or with a deployment project. ...more >>

Object Inheritance on Forms
Posted by Christopher Weaver at 8/19/2005 4:15:12 PM
When I place a visual object on a superclass form and run the app it shows up on the subclass forms. How do I get it to show up on the subclass forms at design time? ...more >>

RAM Memory problem VS2003 C#
Posted by Marius Rus at 8/19/2005 4:02:02 PM
I was build an application that it is using SQL server database. The clients are conecting to the SQL server that resides on an server machine. The application works on W2K or XP with .Net Framework 1.1. with SP1 and have forms that have closer to 100 dataadapters on one form. The application ...more >>



How do I get multiple selection data form a listbox to a dataset t
Posted by Alpha at 8/19/2005 3:51:03 PM
User selected multiple items in the listbox. How can I put these selected ids into a dataset table so I can pass it to my crystal report? Thanks, Alpha...more >>

how to change background for a JTextArea object
Posted by Colibasi at 8/19/2005 3:45:02 PM
I would like to have a JTextArea with a background white and text should be readonly. The way I tried is something like this: JTextArea text = new JTextArea(); text.setEditable(false); text.setBackground(Color.white); In Java this works ok the backround is set to white. In J# the backgro...more >>

setfocus in web control page
Posted by dale zhang at 8/19/2005 2:39:40 PM
Hi, I saw the post here about setfocus. But they are for web form. Web control page HTML does not have form1. the Jscript there does not work here. My question is how to set focus to the text box in web control page? The following is the html version of the page design: <DIV sty...more >>

DataSet Read XML from string
Posted by Maziar Aflatoun at 8/19/2005 2:28:21 PM
Hi, I have ds.ReadXml(myXML); which reads an XML file into my DataSet. How can I read my XML from a string instead of a file? Can someone please provide me with a sample? Thanks Maz ...more >>

ThreadStateException & Clipboard
Posted by Jaret Brower at 8/19/2005 2:00:03 PM
I'm trying to get Clipboard data from across the network to get a screenshot. I hit a button on the server, it sends a request to the client, when the client get's the request it does a SendKeys.SendWait("%{PRTSC}") , then when i make the call Clipboard.GetImage() a ThreadStateException is th...more >>

Threading Question
Posted by graeme g at 8/19/2005 1:24:36 PM
hi how do i start a thread but give it parameters... i.e. say i want to resolve a whole bunch of ip addresses how do i give the thread the ip address without having to put the addresses in a list then have the thread get it from there thanks graeme...more >>

Document to BLOB
Posted by Christopher Weaver at 8/19/2005 12:14:41 PM
Anyone have any examples of writing the contents of a document (Word or whatever) out to a BLOB field? I could take it from a file but I would also like to know how to grab it from the application itself, which I believe would entail opening the document editor within my app. ...more >>

HELP C# - HOW TO BUILD FILE RECEIVED FUNCTION (BIZTALK) IN C#
Posted by Macisu at 8/19/2005 12:07:03 PM
I am looking for the C# code to read through the directories/files on the hard drive (File Received in Biztalk ). If you could point me in the right direction I would appreciate it. Please NOT FILE SYSTEM WATCHER ...more >>

system security issues
Posted by Dave Cullen at 8/19/2005 12:05:52 PM
I have an application that runs fine on my development machine, no matter where I copy the files to on the local drive. However if I put the files on our network I get a System.Security.SecurityException, even in directories that I have read/write privileges to. The program is not my code, and...more >>

Upper/lower Case in C#
Posted by tshad at 8/19/2005 12:00:23 PM
I have the following in vb.net: DataSetObj.Tables(0).Rows(i).ItemArray(1) = UCase(DataSetObj.Tables(0).Rows(i).ItemArray(1)) I tried this is C#, but got the error that UCase and LCase don't exist. DataSetObj.Tables[0].Rows[i].ItemArray[1] = UCase(DataSetObj.Tables[0].Rows[i].ItemArray[1])...more >>

URLencode a URL Query string
Posted by Imran Aziz at 8/19/2005 11:58:50 AM
Hello All, from my C# dialog based application I am creating a URL that has some query string parameters that I want to URL encode, the URLEncode function is suppose to be in the HttpUtility class under System.Web but I cannot seem to find it, is there an alternate to encode a URL query s...more >>

Disable Tab Key
Posted by Gene Vital at 8/19/2005 11:49:49 AM
C# I am trying to figure out how to disable the Tab key in a TextBox.I need to prevent the user from leaving the TextBox unless the data was entered correctly, any pointers? ...more >>

CurrencyManager Relations
Posted by Christopher Weaver at 8/19/2005 11:48:35 AM
I have a CM bound to a table like this: cMgrSort = (CurrencyManager)this.BindingContext[dsSortOrders, "SortOrder"]; Under certain circumstances I need to find a specific row in that table DataRow r = dsSortOrders.Tables["SortOrder"].Rows.Find(SortOrder); When that happens, I need the...more >>

Reflection Enum Type Value__ FieldInfo.isPublic
Posted by Freddy Willockx at 8/19/2005 11:25:53 AM
Hi I'm doing some actions through reflection and generating some source code to speed up my actions. But, when I'm generating source code to read and write the fields of an Enum type, it goes wrong. An internal field "Value__" is added to the field. The problem is that this field is mar...more >>

using a config file
Posted by Dave Cullen at 8/19/2005 11:15:56 AM
I'm a C# noob trying to maintain and modify someone else's code. The previous programmer used a config file to load parameters for a database connect string. The file is named app.config and it's in the project and under VSS source control. I'd like to rename the file to something more appropr...more >>

ListView and File renaming
Posted by MikeY at 8/19/2005 11:05:47 AM
Hopefully someone can help, I have a listview box where I display my desired files. I single click on the desired file to be renamed and I rename it with a new name. My problem arises when the new name gets displayed through refreshing of my loop and display function. The problem is that wh...more >>

form only open one time???
Posted by aaaa at 8/19/2005 10:35:25 AM
I there, I have the folowing problem: In Form1 i have a button that open a new form (Form2). If a clik several times in that button, i open several form's of Form2. I don't want this!!! if a form2 is open it can not create a open a new form. How can a do this?? PS: the showdialog() meth...more >>

WM_RBUTTONDOWN WM_RBUTTONUP selects text I don't want selected in a textbox
Posted by bitwxtadpl NO[at]SPAM yahoo.com at 8/19/2005 10:04:53 AM
I want to programmatically set the position of a cursor in a textbox that has focus based on a X and Y value. However, when I send a WM_RBUTTONDOWN and a WM_RBUTTONUP message to the textbox it selects the text from where the cursor is to where I want the cursor to be. All I want is to move the...more >>

DataTables
Posted by bernardpace NO[at]SPAM yahoo.com at 8/19/2005 9:01:07 AM
Hi, I have a DataTable full of data. Now I am trying to clone it with its schema and its data. A snippet of the code is shown below DataTable original, cloned; .... loads schema from an xsd file and loads data from an xml file // original.Rows.Count is being found as 95 - correct clone...more >>

Quick Pop-up Splash Screens
Posted by Greg Smith at 8/19/2005 8:46:39 AM
I have some applications that are slow loading and some of my users keep clicking away until they see something. Can anybody point me to some examples of quick loading splash screens and tips on tweaking up the load speed of an application? Any help is greatly appreciated. ...more >>

Convert From HEX
Posted by MDB at 8/19/2005 8:35:22 AM
Hello all, I am not sure if I am using the correct verbiage however, I need to convert  to 02. I believe  is a hex string? And I need to know the into value but I need the 02 value not just 2. ...more >>

Timing Question
Posted by Amir Ghezelbash at 8/19/2005 7:21:39 AM
Hey every body i had a question i am in process of writing an application, where this application needs to check the database on hourly bases to see if they are any information that are needed to be processed in the next upcoming hour so my application has to to connect to data base right ...more >>

Compile with /3G extended memory space
Posted by Dave Booker at 8/19/2005 7:05:02 AM
I am using VS2003. How can I compile a (32-bit) C# project so that the program can use more than 2GB of memory space? I came across a /3G compile option searching on this subject, that is supposed to give a process 3GB before throwing OutOfMemory. But I can't find any documentation on how...more >>

Detect Form Border Click
Posted by Diogo Alves - Software Developer at 8/19/2005 3:29:03 AM
Hi Can Someone tell me how to detect a click on the windows form border? I really need this... and I can't find a solution :( Thanks in Advance...more >>

String.Format Question
Posted by Akeel at 8/19/2005 2:38:04 AM
Hi I have the following code char[] splitter={','}; string[] fields=row["DataLine"].ToString().Split(splitter) string serviceDefintion="" // row["DataLine"].ToString().Split(splitter // conatins the followin //"MigrationRef,ContactType,FirstName,LastName,MiddleName,Title string _storedPro...more >>

Asynchronous problem
Posted by bernardpace NO[at]SPAM yahoo.com at 8/19/2005 2:20:02 AM
Hi, I am using the following code private void menuItemStart_Click(object sender, System.EventArgs e) { DataTable tbRand, tbShow; int randSize; .... // schema of tbShow is being loaded from an xsd file tbRand = DrawEngine.GenerateAllDraws(tbRand, randSize, ref tbShow); dataGridRandomi...more >>

Window Resize
Posted by Diogo Alves - Software Developer at 8/19/2005 2:05:07 AM
Hi there, Since my last questions wasn't very clear, I will do it in a different way. I want to resize my app but while resizing I dont want to see content of the form, I just want to see the window border, then on release, the form reappears, just like when we use "Show window contents wh...more >>

DataTables
Posted by bernardpace NO[at]SPAM yahoo.com at 8/19/2005 12:52:54 AM
Hi, I have two DataTables with same schema(2 columns: ID, value). These 2 tables are full of rows. Now I require to check if any data(value) in table 1 already exits in table 2. Is there a simple way to do this? Can someone help me out please Thanks in Advance ...more >>

How to check a string
Posted by ad at 8/19/2005 12:00:00 AM
How to check a string if this string is composite of number? ...more >>

binding datareader to datagrid in C# windows form
Posted by Jason Huang at 8/19/2005 12:00:00 AM
Hi, Is it possible to bind DataReader to a DataGrid in C# windows form? And how? And can we update data in a DataSet by using the DataReader? Thanks for help. Jason ...more >>

Folder Encryption
Posted by SirThanxALot at 8/19/2005 12:00:00 AM
Dear all, I want to protect a large number of files (say 3000) from unauthorised access. With protect, I mean: kind of vanished. As little as possible information should be given. key factors: - number of files - the data in the files (of course) - only accessible to a few own to-be-devel...more >>

saving decimal value
Posted by Brenny at 8/19/2005 12:00:00 AM
Hello I'm developing a project by using access database and there is a table(Table1) and it has a field(ml_mik) this is the decimal field. I'm taking a value from windows form as a decimal variable(for example 12,3 or 12.3). After saving record, value(12,3 or 12.3) is saved as 123, not 12,...more >>

winamp plugin
Posted by vertigo at 8/19/2005 12:00:00 AM
Hello Is it possible to write winamp plugin in C# ? Does anybody know sources written in C# and working ? Thanx Michal...more >>

Oracle Open Cursor Problem?
Posted by Adam Right at 8/19/2005 12:00:00 AM
Hi, I am developing a program with visual studio 2005 beta using C#. I have a problem about opened cursors on my Oracle 9i database. I cannot dispose opened cursors although there is a close statement after fetch statement in the database. It exceeds the maximum number of the opened cursors...more >>

GZipStream Class
Posted by Kristian at 8/19/2005 12:00:00 AM
Hi folks I am writing a program which is suppose to compress a file. The program will receives many different files. And I am wondering if there is a smart way to put them in an array using the new GZipStream Class, and then compress it all into the same zipfile. example the program re...more >>

HTTP 403.9 - Access Forbidden: Too many users are connected
Posted by larry at 8/19/2005 12:00:00 AM
Hi, I got a c# asp.net program on windowsXP IIS. My program is trying get a request from client then update a line chart data, which is from sql server, in every 5 sec. But I always get Error 403.9 after my program run for a while. I checked MSDN. It means too many users. windowsXP only...more >>

Are there color enum with ASP.NET
Posted by ad at 8/19/2005 12:00:00 AM
I cant to write a function to manage the font color of my web. The function is like: using System.Drawing; public static string Font(string input, Color my) { string sRV = ""; sRV = "<font color='" + myColor.ToString() + "'>" + input + "</font>"; return sRV; } but when I use ...more >>

How to Implement an AJAX Solution.
Posted by Gaffar at 8/19/2005 12:00:00 AM
Hello. My name is Gaffar. I am handling an module in a Project. This = application interface is slow and inefficient. So Client told = "implement an AJAX Solution which will increase speed and efficiency and = user's experience". So, My problem is what is AJAX Solution. How to implement ...more >>

go though Hashtable.Values thread saft?
Posted by Ryan Liu at 8/19/2005 12:00:00 AM
Hashtable.GetEnumerator is not thread safe, but what about I write I loop go though Hashtable.Values, is that thread saft? Thanks a lot! ...more >>


DevelopmentNow Blog