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# > june 2007 > threads for tuesday june 26

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

DataGridView Almost Working....
Posted by bern11 at 6/26/2007 11:22:53 PM
I'm trying to bind a DataGridView to a BindingList that is a member of the main form. It worked once, then stopped. Now it does not display data when the list is clearly populated. I just get an empty grid. There seems to be several ways to bind the grid, none of which seem to work: 1) ...more >>


Some beautiful example of tabcontrol ?
Posted by pamela fluente at 6/26/2007 10:31:51 PM
Hi, I want to try design a TabControl (for instance http://www.codeproject.com/vb/net/MDITabControl.asp). For design inspiration, I would like to know pointers to beautifully looking tabcontrol design either on the web or within applications. BTW: I do not want copy anyt...more >>

OOP advice needed
Posted by Mike at 6/26/2007 10:26:32 PM
I've got an ASP.NET web site that primarily uses the SqlDataSource for data access tasks, and I am in the process of migrating it to use Business Objects based on Imar Spaanjaars's articles here: http://imar.spaanjaars.com/QuickDocId.aspx?quickdoc=416. This is my first bash at OOP and I've ...more >>

Login control
Posted by Mike at 6/26/2007 9:11:43 PM
Hi, How I can programatically get text from password and username edit boxes within Login control? Thanks...more >>

inherit form and generics
Posted by CassioT at 6/26/2007 7:57:57 PM
Hi. I want to create a base form class with a generic parameter. public BaseForm<T> : Form {} public MyForm : BaseForm<MyType> {} The problem here is that the inherited form doesn't work in the visual studio designer but the execution is perfect. Without the generic parameter it works i...more >>

Search Functionality Dilemma
Posted by Nightcrawler at 6/26/2007 7:45:22 PM
I need some input as to how the cleanest way to code the following. I have a aspx search page with a datalist displaying the results. Above the datalist are 2 textboxes and 2 dropdownlists. The idea is that the end user can choose any combination of the 2 textboxes and 2 dropdownlists to narro...more >>

ActionsPaneControl
Posted by NullQwerty at 6/26/2007 6:43:29 PM
Hey folks, I'm building an Office Smart Tag. I own VS 2005 Professional. I'm trying to use the ActionsPaneControl as seen in the example here: http://blogs.msdn.com/pstubbs/archive/2005/03/30/403801.aspx I don't seem to have this control however. My gut says that it must be apart of VSTO. ...more >>

Requested clipboard operation did not succeed
Posted by Figmo at 6/26/2007 6:31:48 PM
Wow.....this is darned odd.... I have an app that integrates with other applications. It registers a global hotkey with Windows. When the hotkey executes it sends a CTRL-C to the active window (any application) to copy whatever text is selected to the clipboard. It then issues a C# Clipbo...more >>



Differences between .net 1.1 and .net 2.2 (ngen, gac, rebase, system libraries)
Posted by shaji at 6/26/2007 5:27:48 PM
HI can anyone explain me (or direct me to a link) the differences in the system libraries in .net 1.1 and .net 2.0? What are the differences in GAC and Rebase between these two versions? Thanks in advance, Ssshaji. ...more >>

Sysinternals DebugView
Posted by eps at 6/26/2007 5:13:48 PM
Hi there, I am trying to download sysinternals debugView from microsofts website but i am getting an error. http://www.microsoft.com/library/errorpages/smarterror.aspx?404;http://www.microsoft.com/technet/sysinternals/utilities/debugview.mspx is this just a problem with their site ?, i ca...more >>

select items in winform dropdown style combobox...
Posted by trint at 6/26/2007 4:58:50 PM
In my winform, I have 3 dropdown style comboboxes. I want the program to always start with the "Todays date" to be selected in the three comboboxes. example of todays date selected by using all three combo dropdown boxes: cboDropDownStyle1 = June | cboDropDownStyle2 = 26 | cboDropDownStyle3 ...more >>

How to programmatically close a messagebox?
Posted by Frank Rizzo at 6/26/2007 4:22:10 PM
I am trying to programmatically close a messagebox. I don't see any obvious managed choices. Back in the day, I remember using a combination of FindWindow and EndDialog apis( http://msdn2.microsoft.com/en-us/library/ms645472.aspx ), but how can I ensure that the dialog that I am destroying...more >>

DataRow and DataReader
Posted by MattC at 6/26/2007 3:22:04 PM
Hi, Given that a data item in both a DataRow and DataReaders IDataRecord can be accessed using something like dr["ColumnName"]. I'd like to create method that accepts either a DataRow or IDataRecord. Anyone know if this is possible? Is there an interface that exposes an indexer that ...more >>

Library of Network routines.
Posted by Mufasa at 6/26/2007 3:09:50 PM
I'm looking for routines that will allow you to do things like set TCP/IP address, join/leave a domain, set up proxy settings - general network stuff. I need to do this for a machine that is going to be running embeded XP so we need to have our own interface to do this ( which is normally done...more >>

standard password mask character?
Posted by Smokey Grindle at 6/26/2007 2:41:02 PM
I have a text box on my form which I want masked as a password field, but I can't figure out what the standard mask character is in windows XP and up... anyone know what makes those round circles for the mask? thanks! ...more >>

rightclick "openlink" bypasses important javascript
Posted by jerunyon NO[at]SPAM smartvoicecast.com at 6/26/2007 2:16:10 PM
Recently I noticed that if you "right click" and "open link" on my site, you bypass the javascript code that fires "onclick". I have several pages that fall victim to this, and I could probably refractor the page and put checking on both javascript and cs side but before I did that I wanted to k...more >>

Can a List object be bound to a DataGridView control?
Posted by Eitan at 6/26/2007 1:58:02 PM
Hello, I am writing an application in c#. I have a List object that I would like to bind it to a DataGridView control. Can I do that, and if so how? If I can not do that, is there any other way that would bind a List (or a similar object) to the DataGridView control? Thanks Eit...more >>

abstract class question about operators
Posted by t f at 6/26/2007 1:20:09 PM
hi just a quick question - i have the something like the following public abstract class ClassA { protected int iA; public int Value { get {return iA;} set { iA = value;}} public ClassA(int value) { iA = value; } public static ClassA operator +(ClassA a1, Clas...more >>

When to use Delegates
Posted by JJ at 6/26/2007 12:48:00 PM
I have a logger component that logs to multiple sources, ie textfile, eventlog etc. and I have two methods that depending on where I call up my logger comp. one of them will be called. For ex. if I throw an exception I want to call one method and if I dont, I am just logging some info to even...more >>

Custom IPrincipal with a Generic
Posted by sloan at 6/26/2007 12:13:55 PM
I'm working on a custom IPrincipal. Sometimes I use the "good ole" MS system of strings. Lately, I've been storing my roles and rights as Guids. Check out the below code. I'm not sure if this is the way to go or not. What stinks is that I don't see how to keep IRolesAndRightsPrincipal...more >>

Reading / Writing XML's - noob question
Posted by Lang Murphy at 6/26/2007 11:56:16 AM
I'm baaaaack... some of you answered a question I had last week. Only problem is: I'm a dope who doesn't understand most of what y'all posted. Raw noob when it comes to .Net and C#. So I'm going to be more specific... All I need to do at the moment is figure out how to replace our usage of ...more >>

UPS Web Service
Posted by Looch at 6/26/2007 10:50:05 AM
Hi All, I'm getting this error: Server was unable to process request. --> Object reference not set to an instance of an object. When using this code { UPSWebService.ups.UPSTracking track = new UPSWebService.ups.UPSTracking(); txtResponse.Text = track.TrackingInfo("1Z385....").ToStr...more >>

Hexadecimal numbers from Active directory
Posted by owyn at 6/26/2007 10:50:00 AM
I am using DirectorySearcher to get data from Active Directory. When I obtain a GUID that is a Hexadecimal number it is automatically translated to a Decimal number. I need to be able to acquire the Hex number intact. Anyone have any ideas how to do that?...more >>

Problem with clickonce
Posted by tiempotecnologia NO[at]SPAM newsgroup.nospam at 6/26/2007 10:06:02 AM
Hi I'm trying to make an installer with clickonce for vb.net app with VS 2005. I can publish, but when I try to install, I got an error: Can't start the application Here is the log (I'm using spanish version) INFORMACIÓN DE VERSIÓN DE LA PLATAFORMA Windows : 5.1.2600.1310...more >>

How best pass errors from SQL to business, user tiers?
Posted by Ronald S. Cook at 6/26/2007 10:03:11 AM
How would you recommend passing errors back from your proc to your business tier to the client (assuming you have full control of all layers)? Take InsertUser for instance. The proc will automatically raise an error if someone tries to create a user name for themselves that is already taken....more >>

.NET security exception
Posted by Chris at 6/26/2007 9:58:04 AM
I get the following exception trying to open a folder using the FolderBrowserDialog control in Visual Studio 2005. This only happens when the code is running on a mapped drive. How can I avoid this? System.Security.SecurityException occurred Message="Request for the permission of type ...more >>

calculate number of days since Jan 1, 0000
Posted by Beemer Biker at 6/26/2007 9:43:21 AM
I cant seem to get that date into any DateTime to make my calculation directly by subtracting "01-01-0000" from "now". After reading this: http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=11469&objectType=File I kluged up this routine that works: // convert date tim...more >>

Form come up near system tray
Posted by deciacco at 6/26/2007 9:37:46 AM
I'm writing a very small notifyicon app and I want a form to pop up on double click near the icon tray. Any suggestions? Thanks....more >>

@parameter
Posted by Yin99 at 6/26/2007 9:20:17 AM
I have method that takes (int productID) as parameter- was playing around with VS2005 Class designer which writes it as (int @productID) . Any Difference? Best Practices? -Yin ...more >>

Different Project types
Posted by abcd at 6/26/2007 9:11:17 AM
Can someone explan or a web link which has information regarding all the different projects supported in VS2005 (say C#). I want to recapcture my knowledge who is doing what. like earlier ATL com project was there now its still there but there are other lots of different proejct options too so...more >>

Get the date form the monthCalander control
Posted by sravan_reddy001 at 6/26/2007 8:52:46 AM
how can get the date selected in the monthCalander Control i'm able to see the selectionstart property but its displaying the date and the start time (i.e) 12:00:00 AM i used the following code to get the date selected in the monthCalander control DateTime date = new DateTime(); ...more >>

File.OpenWrite(...) file not found
Posted by Ron at 6/26/2007 8:35:03 AM
I am writing out some files, using this syntax: FileStream fw = File.OpenWrite(Filename); fw.Write(bytearray,0,amount); fw.Close(); The files appear in Windows Explorer, they show up from the DOS Cmd when I do a wild card dir, but they cannot be copied in the DOS Cmd box. I get "file not...more >>

How to get Post-Build Event to launch GUI app, still edit.
Posted by Dave Harris at 6/26/2007 8:22:04 AM
I'm trying to launch a code coverage tool as part of the post build event for a special debug configuration. It launches just fine, but Visual Studio is busy waiting for the post build to finish before it allows any modifications to take place. I would like to be able to work back and forth ...more >>

Regular expression help
Posted by Mark Taylor at 6/26/2007 8:12:47 AM
Hello all - I have a problem here that I think can be solved using regular expressions, but not knowing enough about them, I wanted to ask. I'm pulling data from a database that we're provided that has all data unformated, all names, addresses, whatever are all in capital letters, zip codes...more >>

Show a .doc, .pdf or .txt
Posted by Peter K at 6/26/2007 7:24:05 AM
Hi In my windows application I have a byte array which could for example hold the binary data for a pdf document or a word document or a .txt document. I know the type of data - eg .pdf or .doc or .txt etc. How do I activate the Windows "designated application" for handling the file type...more >>

SQL, EXECUTEREADER
Posted by Givisiez at 6/26/2007 7:08:48 AM
Hi I'm programming a windows application. I store values on a SQL- database. Now I've a problem reading the values stored. I want to read a whole column from a table. I tried my SQL Command in the "Query" from the Microsoft Visual Studio. There I get exactly the values, which I want. When I...more >>

Last item in treeview not visible when XP visual styles enabled. Help!
Posted by pamela fluente at 6/26/2007 4:41:03 AM
I am having a problem with the Treeview control. I have 3 items in the Treeview. When I resize the form and the Height of the Treeview decreases enough the vertical scrollbar appears. The problem is that the vertical scrollbar appears NOT as soon as the third item is covered by the bottom...more >>

How to pass a form to another form
Posted by bharathi_dereddy NO[at]SPAM yahoo.co.in at 6/26/2007 3:54:47 AM
Hi all, I have a form1 ,in that i have 2 lable and 2 combo boxes. and a button. when the user clicks the button,i need to pass form1 to form2. how i can access the form1 controls in form2. plz help me ...more >>

Remote Registry - Requested registry access is not allowed.
Posted by JB at 6/26/2007 3:27:56 AM
I am trying to access a registry key on computer like so: key = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, computerName).OpenSubKey(Subkey); There are two keys I am trying to read, 1 works, and the other gives me the "Requested registry access is not allowed." i've narrowed it...more >>

C# App Runtime library path
Posted by sealo at 6/26/2007 2:41:21 AM
Hello, How does the C# App search the library in the runtime? Say, I build a C# App A, which use B.dll, and B.dll use the C.dll. I specify the B.dll and C.dll path in the IDE, and build was passed. If I run the app, do I need to put the B.dll and C.dll in the same directory with the App? How d...more >>

Display bitmap as compressed ASCII string of set bits
Posted by davidpryce123 NO[at]SPAM yahoo.com.au at 6/26/2007 12:50:07 AM
Dear Group. For an application I am developing I need to display a 64 bit bitmap as a compressed ascii string of bits. This is to allow for the easier understanding of the bits for the users. For example in the bitmap if bits, 1,2,3,4,5,6, 17,18,19 and 63 are set they would like to displa...more >>

Is it possible to turn off "HTTP Keep-Alive" globally in app.config?
Posted by Morgan Cheng at 6/26/2007 12:26:52 AM
Days ago, I post a question on how to make SoapHttpClientProtocol instance make new TCP connection for each web service request. Now, I found how. SoapHttpClientProtocol has a protected method GetWebRequest(System.Uri uri) which returns a WebRequest instance. Though MSDN doesn't make clear st...more >>

Select an item in a combo box with enter key
Posted by Rotsey at 6/26/2007 12:00:00 AM
Hi, I am having a problem trying to select an item with the enter key. I want to work the combo with the keyboard. So when I use the down arrow to browse the list I want to then hit the enter key as if selecting an item with the mouse. How do I do this? Can't seem to get it working. ...more >>


DevelopmentNow Blog