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 2006 > threads for tuesday november 14

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

Obtaining control under mouse
Posted by Johnny Jensen at 11/14/2006 11:51:07 PM
Hello Group In the old days i'ev created a VB6 appl. that was able to obtain the underlaying control under the mouse pointer. I would very much like to do that in a C# application. I'll use VS2005 and .Net 2.0 I'll know of the solution to code each control for the mouse over event, but I...more >>


Programmatically set WinXP color scheme
Posted by Charles Calvert at 11/14/2006 11:25:53 PM
I've checked the Google Groups archives and the web and not found the answer, though I've found hints that it's possible. How can I programmatically change the color scheme on Windows XP? I know that I can access the colors via SystemColors, but I actually want to be able to switch from the d...more >>

Dragging Dot Net Components to Non Dot Net Components
Posted by Abhijit at 11/14/2006 11:23:00 PM
Hi, I am having a treeview application in dot net using windows application in c#. This treeview appliaction fetches its all nodes from the database.At the same time I am storing some data related to that node in database.Now I have to drag and drop the node from the windows application to...more >>

System.Media.SoundPlayer Help
Posted by Vicky_r at 11/14/2006 10:37:16 PM
I am playing a .wav file in my application i.e running successfully on Windows 2000 Prof n Windows 2000 Serv. with Framework 2.0 Now I have installed Framework 2.0 on Win 98 and when I try to run the application its running fine but the .wav file is not running i.e I cannot hear the sound. Ca...more >>

Migrating RPG program to .Net
Posted by Kannan at 11/14/2006 9:12:01 PM
hi, I have a requirement to convert my RPG program to .Net. Is there is any one knows about the BEST way to migrate RPG to .Net. Do we need to do manual coding for migration? Is there is any free tool available in the market. ? Whether microsoft given any free tool to migrate RPG to ...more >>

how to map datatypes...
Posted by light_wt at 11/14/2006 7:25:01 PM
The MS SQL has a column using DEC(11) which is an unsignedInt. What is the correct way to declare the unsignedInt variable in c# to insert this value to MS SQL? recall from SQL2k BOL Use the int data type to store numbers in the range from -2,147,483,648 through 2,147,483,647 only (requir...more >>

Join DataTables in same dataset
Posted by don at 11/14/2006 6:39:08 PM
I have written a program to hold a sales contact db. It is written in c# express. an update is sent from head office in xl format, i need to import only the new rows to an access database. I have gotten this far: a separate OleDbconnection to each source, which reads the entire data ...more >>

C# drag drop
Posted by dickersonka NO[at]SPAM gmail.com at 11/14/2006 6:34:36 PM
I am wanting to make a C# interface with a SQL backend for creating a table/room layout design. The concept would be the same as a restaurant or bar style, except the user will create the design and be able to add and modify the layout of the location. I am using .Net 2.0 and want to allow us...more >>



Sorting ArrayLists by Multipul Columns
Posted by iKiLL at 11/14/2006 5:09:40 PM
Hi All, My background is that i am new to C- Sharp and OOP. I have been working with it for about 2 Weeks. I do have good experionce in developing in things like VB6, COM, ASP, JavaScript and i have done some development with VB.Net but it was not really done in an OOP fashion. i have Been ...more >>

Quitting before you've started
Posted by BMC at 11/14/2006 5:04:13 PM
When starting up, my app needs to pull some information out of a database, which it does. It also needs to quit if the SQL query returns no data. All the database checking stuff is in a private void that is called right after the InitializeComponent() on the form. The code in that function ...more >>

Observation on object references
Posted by Shailen Sukul at 11/14/2006 4:41:02 PM
Observed a weird behaviour with object references. See code listing below: using System; using System.Collections.Generic; using System.Text; namespace PointerExceptionTest { /* Desc: Apparent weird behaviour of encapsulated reference types getting "lost" upon instance rene...more >>

.NET Serialization Quest
Posted by Spam Catcher at 11/14/2006 4:11:56 PM
Hi All, I have a question concerning serialization in .NET. If I serialize an object to a database and then I change the object in code (i.e. add a property, rename a property, delete a property) will my object deserialize correctly? Will it throw an exception - or will it deserialize w...more >>

help - string.Format syntax
Posted by matt NO[at]SPAM mailinator.com at 11/14/2006 3:45:24 PM
hello, i am accustomed to using the string.Format method in this way: string foo = string.Format("The formula is {0} * {1}", inputOne, inputTwo); but now i am trying to do one where i need squigley brackets in the string, like so: crystalWhere = string.Format("{v_ChangeHistory....more >>

Replace character in string
Posted by Tim Kelley at 11/14/2006 3:16:46 PM
I am reading a text file with a streamreader. I parse out path and need to use that path in a sql statement. The path is in the file as \\servername\share\folder\filename.txt. When the line is read, it is in the format of \\\\servername\\share\\folder\\filename.txt. When I try to use thi...more >>

Sorting Dictionary by Values
Posted by Martin Pöpping at 11/14/2006 2:31:29 PM
Hello, I´ve a simple question about existing data structures/ collections. Is there a way to sort a dictionary (or any comparable collection/ data structure) by values instead of by keys? For example if you have a dictionary with words as keys and the frequency of these words in a text...more >>

using ! or == false? your preference?
Posted by Anders Borum at 11/14/2006 2:09:26 PM
Hello! While in-between sessions at the Tech-ED in Barcelona, I overheard a discussion between some developers. The subject of the discussion was code layout (i.e. how each developer formats and writes code). What are your takes at the following two examples? Which one would you choose and ...more >>

*int Vs IntPtr
Posted by TheMadHatter at 11/14/2006 1:39:02 PM
yello... Assuming a 32bit system for this Q.. Is there any proformance differences between an *int vs IntPtr ?? I know that the IntPtr can be an Int32* or an Int64* (or more) depending on the hardware. thanks in advance. ...more >>

Multiple levels of Null Checking
Posted by Karch at 11/14/2006 1:19:07 PM
I find myself doing things like this all the time: if ( SomeObject != null && SomeObject.AnotherObject != null && SomeObject.AnotherObject.YetAnother != null && SomeObject.AnotherObject.YetAnother.HelpMePlease != null) { // Do Something } Surely there must be a better way that I am ...more >>

Wrapping a date field so precision is not lost?
Posted by SenseiHitokiri at 11/14/2006 1:01:57 PM
I learned today that an insert statement I am generating out of a DataSet which gets populated straight from SqlDataReaders is not giving me the same precision that it is stored in the database with. Table 1 (Origin table) Nov 8 2006 5:19:10:617PM is being stored as Table 2 (Destinatio...more >>

Using bitwise to create a multiple selection listbox and having it bound to a sql
Posted by Jay Ruyle at 11/14/2006 11:54:52 AM
I'm trying to figure out a way to list several items in a listbox and let the user select any number of items in the listbox. I have tried to code in the items as bitwise items but all it stores in the database is the top item in the listbox. How can I get the listbox to add all the bit va...more >>

C# ASP.Net calling a CHM file
Posted by Joseph at 11/14/2006 11:50:02 AM
Hi All, I was wondering if it is at all possible to open a chm file from within an ASP.net application, and if so could you provide a snippet of code that demonstrates this? Thanks...more >>

asp.net value of textbox
Posted by Chris at 11/14/2006 11:31:02 AM
I created a very simple web page in asp.net. there are only a textbox and a button on the page. when the page loads into web browser there is current date in the textbox. but the date can be changed by user as well. now, when you press the button the date should be inserted into a database. ...more >>

A couple of RichTextBox questions
Posted by Michael A. Covington at 11/14/2006 10:56:48 AM
In a RichTextBox, how would I implement... ....bulleted paragraphs like in Word? Is there a provision for this or am I on my own? ....spelling check? Presumably using COM to communicate with Word which is installed on the same machine. I know how to do it myself on a low level and am ...more >>

problem with modeless child dialog
Posted by AboutJAV NO[at]SPAM gmail.com at 11/14/2006 10:20:50 AM
Hi, I created a child dialog to tell the user that there is a loading of data from the database. When the loading is done, the child dialog will close. The child dialog contains a custom control and the child dialog with the custom control show up fine if the dialog is called as a modal state...more >>

Embed Excel in Form Problems- Repost
Posted by Joe at 11/14/2006 10:12:30 AM
Hi I am able to embed Excel into a WebBrowser on my Dev machine but on a client machine an instance of Excel starts in it's own window outside of my form. I have used the WebBrowser with VS 2005 and the one with Office and get the same result. I have use the MS example from MSDN and get the sa...more >>

Tab Controls???
Posted by Todd Jaspers at 11/14/2006 9:54:02 AM
Hey guys, I have a "TabControl" component on my screen. I'd like to be able to control the focus of the individual tabs through a different button (which is working). However, I would like to be able to prevent the individual selection of the tabs from changing. I can't seem to find an...more >>

C# Fatal Error
Posted by Rob at 11/14/2006 8:37:01 AM
I am running a C# (2003) app on a Citrix server (Windows 2000, SP4), with SQL Server 2000 and the database. Program runs fine, then, without explanation, a user will attempt to start the app, and get a popup that says "Fatal Error", no subject to the message, just those words. Then the app c...more >>

Monitor.Pulse question
Posted by DeveloperX at 11/14/2006 7:24:13 AM
Hi, Below is a hacked up version of an example I found on MSDN. My only change was to add a third thread and some Sleeps. That's where my question(s) comes in. In the original it seems to work because Thread1 waits on Thread2 and vice versa, although I can't quite see how. Disabling Thread3 and...more >>

Length of digit after decimal point
Posted by Stefantastisk at 11/14/2006 6:24:05 AM
Hey there, Anyone knows a clever method for knowing the length of the digit after a decimal point in a standard C# decimal value, WITHOUT use of any string formatting. Example: 5231,12231 <- Lengt = 5 Tnx for your attention hope you are capable of helping. Kind regards Stefan ...more >>

HttpWebRequest and maximum http connection
Posted by faser at 11/14/2006 5:39:54 AM
In a windows form I execute a lot of HttpWebRequest. Each request run in his own thread and every requests have the same target server. Looking at netstat and in the web server logs it seems to me that only 2 connection are opened even if I have 100 threads. Do you know how can I modify this li...more >>

Office Add-In, getting reference to OLEObject
Posted by Johan at 11/14/2006 3:10:02 AM
Hi, I'm writing an PowerPoint Add-In using C# which adds a toolbar and a button. When the user clicks the button, an activex control is inserted into the presentation. Is it possible to somehow type cast the Microsoft.Office.Interop.PowerPoint.Shape or the shape.OLEFormat.Object to an in...more >>

Set Focus in axWebBrowser (newbie)
Posted by tamarindm at 11/14/2006 2:50:41 AM
Hi, I am quite new using csharp. I have a axWebBrowser control in my windows application. The axWebBrowser will contain a textbox. Is there any way to set focus to this text box from my windows application ? Thanks in advance. ...more >>

Http requests and character transfer
Posted by kikapu at 11/14/2006 1:09:07 AM
Hi to all, we are building a fairly complex system here in work, and we couldn't imagine from the start that we would spend too much time just to transfer safely some kind of characters from one network point to another... I explain: One part of our system is a custom, multithreaded...more >>

eek: Attempted to read or write protected memory....
Posted by spacehopper_man NO[at]SPAM yahoo.com at 11/14/2006 12:57:37 AM
ok - C# contractor on first contract getting this bad boy: "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." I see this intermittantly (maybe every 100 requests or so) in an ASP.NET 2.0 application running on Windows Server 2003 EE. I...more >>

trouble with a datagridview and a column hided
Posted by finleeds at 11/14/2006 12:48:04 AM
hi all I m using the visual studio designer to create 1 Dataset with 1 table with 3 columns : Id, Name, Birthday. Once this done, still with the designer, I m creating a datagridview and choose my dataset as DataSource. magic : the columns appear in the datagridview. Still with the des...more >>

File Share Question
Posted by Adrian at 11/14/2006 12:00:00 AM
In an application in which FileShare is set. Is it possible to go to say a file conntrol block to ascertain the condition of the file, ie. if someone else is working with the file? Or is is it necessary to do all writing (not reading) in a loop in which the user is kept till the file is free a...more >>

Check if Form exists
Posted by News Microsoft at 11/14/2006 12:00:00 AM
Hi there. I would like to know how can I test if a Form exists. This is the situation: I have a single Form in my application. My objective is, when I minimize the form, it will disapear and a TrayIcon apears in the task bar. When I click that icon, the form apears again. The problem is...more >>

Problem with Delete worksheet
Posted by sun919 via DotNetMonster.com at 11/14/2006 12:00:00 AM
hi , i have a question to ask regarding deleting the worksheet basically i have written code which find the select worksheet which work fine but it didn't delete the worksheet from the workbook and i dont know what i did wrong. Here is my coding book = app.Workbooks.Open(dir, Type.Missing...more >>

Clipboard
Posted by Alan T at 11/14/2006 12:00:00 AM
How to I save the contents of clipboad to the variable and reassign the content back to the clipboard ? ...more >>

Get available printers
Posted by Jeff Williams at 11/14/2006 12:00:00 AM
I am looking for a way to get the list of printers and there port name so I can populate a combobox. What I need to do is get the printer name and if it is a network printer the path and share name. Place the printer name in a combobox and the share name as a value in the combo box which...more >>

Best way to handle system wide values
Posted by Jeff Williams at 11/14/2006 12:00:00 AM
I know c# does not allow global variables so I am wondering the best way to achieve this. On start of my application I want to read values from the registry and then different forms will need to access the data. What is the best way to achieve this....more >>

build and assign an array to a combo box
Posted by Jeff Williams at 11/14/2006 12:00:00 AM
How di I dynamically build and 2 dimensional array and assign this array to a combobox. 1 item will be the displayed details and the other is the value I need returned....more >>


DevelopmentNow Blog