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 2006

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

How do I do this
Posted by Larry Smith at 6/30/2006 9:13:01 PM
Looking at the ".resx" files produced by the Windows forms designer, I see nodes like this: <data name="MyRadioBtn.Size" type="System.Drawing.Size, System.Drawing"> <value>94, 21</value> If you then read the "94, 21" back into your code as a string (exactly as seen), how do you then...more >>

Custom web control with two TextBox inside a panel
Posted by Wilson at 6/30/2006 8:34:02 PM
Hi, Would you give me a idea how to create a web control with two Textbox ? my code : namespace com.index.web.components { [DefaultProperty("Text")] [ToolboxData("<{0}:WebCustomControl1 runat=server></{0}:WebCustomControl1>")] public class WebCustomControl1 : WebControl ...more >>

C# equivalent to "Pset"
Posted by pcnerd at 6/30/2006 6:39:01 PM
I've been playing with "classic" VB since version 3. I have VB6 Learning Edition. Recently, I wanted to try VB.NET. I got a beginner's book with a CD with the software & installed it. There are things that I like about VB.NET & there are things that I don't like. I like to do graphics like plo...more >>

WebBroswers Control -> History
Posted by Jay Brodie at 6/30/2006 5:05:15 PM
I am trying to find a way to have the webbroswer object in my VC app to NOT write the browsed sites to the normal history for the deaktop computer. I have looked all over and cant find anything remotly close to what I need. Can someone shed some light on this for me? Or am I wasting my time...more >>

directshow in c#
Posted by Dave at 6/30/2006 4:57:44 PM
Hi, can I use directshow in c#??? dose Microsoft still support direct show sdk or there is a new technology today??? what is the best way to draw on playing video and how can I do that??? Thanks ...more >>

How to prevent Events from being queued?
Posted by Ole at 6/30/2006 4:02:23 PM
The pin_changed event from serial port is being queued while the eventhandler is busy, but how do I change it so that the new event is ignored instead while eventhandler is busy (I want to eliminate switch noise)? Thanks Ole ...more >>

Custom IE Toolbar IE6 C#
Posted by EmeraldShield at 6/30/2006 3:31:53 PM
I am developing a toolbar for IE6. I have referenced the sample project provided at http://www.codeproject.com/csharp/dotnetbandobjects.asp and the msdn article "Creating Custom Explorer Bars, Tool Bands, and Desk Bands". I have followed the instructions and installed the samplebar.dll and the...more >>

process id
Posted by Dave at 6/30/2006 3:30:02 PM
I know the name of a program, program1, that's running. In a second program how do I use this name to determine the id of the process for program1?...more >>



Atlas Refresh
Posted by Vai2000 at 6/30/2006 3:24:57 PM
Hi All, I have a grid which binds to a select on a SQL Db. New rows are constantly being added up to the table. How can I take adv. of Atlas to refresh on my page when the data changes...? For now I do a refresh every 5 seconds. TIA ...more >>

Reading / Writing Data into / out of a C# Structure
Posted by Zeke Zinzul at 6/30/2006 3:04:52 PM
Hi Guys & Geeks, What's the most elegant way of dealing with binary data and structures? Say I have this (which I actually do, a woo-hoo): struct Struct_IconHeader { byte width; byte height; byte colorcount; byte reserved; UInt16 planes; UInt16 bitcount; UInt64 sizeinbytes; ...more >>

xml control visibility
Posted by -D- at 6/30/2006 2:50:22 PM
How can I turn the visibility of the xml control on or off? <%@ Control Language="c#" AutoEventWireup="false" Codebehind="TopNavBar.ascx.cs" Inherits="compass.user_controls.TopNavBar" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%> <table cellSpacing="0" cellPadding="0" border="...more >>

I hate to ask, but...
Posted by james at 6/30/2006 2:40:39 PM
I'm used to windows forms programming. Just tackling something in asp.net as a web app - I have got to the point where I have a login form that works, and on the resulting page I have a loginview. That page has a design layout and a source layout, then I also have a code layout. In the code la...more >>

Inheriting forms
Posted by Ronald Hermans at 6/30/2006 12:46:37 PM
Hello, I have a Delphi background and just started with c#. I'm trying to inherited a form that has a MenuStrip on it with some basic items in it. I want to extend the menu in the intherid form but I'm not able to access the properties as they are disabled. Can someone tell me what it is th...more >>

Question about Generics
Posted by hammad.awan_nospam NO[at]SPAM gmail.com at 6/30/2006 11:49:22 AM
Hello, I'm wondering if it's possible to do the following with Generics: Let's say I have a generic member variable as part of a generic class like this: List<DLinqQuery<TDataContext>> _queries; where DLinqQuery is a generic class that takes a type parameter TDataContext. This membe...more >>

C# Opp
Posted by Greg.franklin at 6/30/2006 11:01:12 AM
Hello, I just had a job opp come across my desk. It is based in KC, and it looks like it can be a pretty lucrative position. If anyone is interested please contact me. greg.franklin ...more >>

RE: Suppress data in a datagrid cell
Posted by Antonio at 6/30/2006 10:59:02 AM
Ok, Peter, I set the Item_Bound in the Page_Load event private void Page_Load(object sender, System.EventArgs e) { dgSubs.ItemDataBound += new DataGridItemEventHandler(this.Item_Bound); bindGrid(); } The Item_Bound event is private void Item_Bound(Object sender, DataGridItemEventArgs e) ...more >>

how to load TAB files on opennetcf?
Posted by vaj NO[at]SPAM spaceair.co.uk at 6/30/2006 9:12:26 AM
Hi, Does anyone know how to load a *.Tab file on to a dataset using opennetcf? I tried doing it but it doesnt seem to work. Private da As OpenNETCF.Data.text.TextDataAdapter: .... .... da.delimitingcharacter = " " ... could anyone tell me how to do this. Would be much appreciated! -va...more >>

Suppress data from displaying in the cell in datagrid
Posted by Antonio at 6/30/2006 9:01:01 AM
Hello, everyone. Is there a way to not display a certain value in a datagrid cell? I have a datagrid for subscriptions and ebooks and if there isn't an e-book listed, the value from the database (SQL) is "Null/No Set Dummy Row". Is there a way I can suppress that data in the datagrid? ...more >>

Please confirm this is a MSFT bug
Posted by Jake Forson at 6/30/2006 8:50:42 AM
Hi there, Before I notify MSFT, can someone confirm this is in fact a compiler bug (it seems pretty obvious but I'm fairly new to C#). The following code (erroneously) generates compiler error CS0177 (The out parameter 'Whatever' must be assigned to before control leaves the current method)...more >>

Best coding style for c#( 3rd)
Posted by kiplring at 6/30/2006 7:40:29 AM
I made a input window derived from System.Windows.Forms.Form. What I use is just one property "inputWindow.Message". But System.Windows.Forms.Form has so many properties, functions, evnets. So I want to hide all things except the one property "inputWindow.Message". How can I do it? ...more >>

Simple Response. Redirect error in dll file! plz help
Posted by Shawn Convington at 6/30/2006 7:24:11 AM
Hey, I am facing a problem which seems srange to me. I have a simple dll class file i have created in its own projected, so it can be inherited and used by others (for example security.dll here). I have a method here whhich takes the sql statement the sql string and returns the result fro...more >>

Error 1053: The service did not respond to the start or control request in a timely fashion
Posted by magnus.s.olsson NO[at]SPAM gmail.com at 6/30/2006 6:38:59 AM
I have got a Windows Service application from a customer that I try to start. The customer can start it with no problem, but when I try to start it I get: "Could not start the GateWay service on Local Computer. Error 1053: The service did not respond to the start or control request in a timely f...more >>

Multiple Interface!!!!!!!
Posted by Wallace at 6/30/2006 6:28:24 AM
Hai All, I am having some query in the following sample code... On creating object for class1 and calling display function, it shows a message box with "Hai". My question is 1. Which interface's display is called? 2. If I want to give different implementation for each display(), how can...more >>

Using Excel functions in C#???
Posted by osmarjunior at 6/30/2006 6:09:07 AM
Is it possible to use an Excel function inside C# code? Regards. Junior. ...more >>

How to math string containing '+,()' in .net
Posted by archana at 6/30/2006 3:40:07 AM
Hi all, I want to apply regular expresion on string containing chatacters like '(,')',+' and many such which we are using while creating pattern for regulat expression. But when i am applying regular expression on input string containing abov character exception is getting raised. Can so...more >>

Passing delegates in structure to C dll
Posted by renjini at 6/30/2006 2:59:44 AM
I am a starter in C# ... I will present my problem : I am wrapping a C dll in C#. The C dll exports a function which takes a structure MYSTRUCT holding 2 function pointers(callback functions). struct MYSTRUCT { ontest1 t1; ontest2 t2 }; where ontest1 and ontest2 are two func...more >>

Real-time with encryption possible with browser-based app on an Intranet using .NET?
Posted by polaris431 NO[at]SPAM gmail.com at 6/30/2006 12:12:05 AM
I would like to obtain encypted data over a network in real-time. The nature of the data and process is as follows... A physical hardware device is located at some remote location. When the sensor gets activated, it must notify an operator at a remote facility within seconds (probably no less ...more >>

App.Config
Posted by Alan at 6/30/2006 12:00:00 AM
I create a solution composed of several projects but only have one project contains app.config. Why ? ...more >>

mail failed
Posted by Zeeway at 6/30/2006 12:00:00 AM
hi,everybody I use dotnet 2005 and c sharp to deliever a mail to a certain mail address,but it failed with messages such as "invalid parameter,the server response: decode failed". My codes is listed belowed: try { MailMessage mailObj = new MailMessage(); mai...more >>

PC login name
Posted by Alan T at 6/30/2006 12:00:00 AM
How do I find out the user login name ? eg. I got a XP has user profile name 'Alan' and log in, is there any function or API to find out that? ...more >>

SqlDataReader
Posted by Alan T at 6/30/2006 12:00:00 AM
How do I know how many records in SqlReader ? What I want to do is I would like to assign the field values in SQLReader to an array. eg. int i = 0; while (objReader.Read()) { string[i] = objReader.GetString(i); i++; } I need to define the lenght of the array beforehand. ...more >>

Video Conferencing Demo
Posted by Ahmad Jalil Qarshi at 6/30/2006 12:00:00 AM
Hi, I want to make a Video Conferencing Demo in C# or VB.NET. I have searched on the net but couldn't find proper information. Is there anybody to help me? Thanks in anticipation. Regards, Ahmad Jalil Qarshi ...more >>

Namespace
Posted by Alan at 6/30/2006 12:00:00 AM
I create a project defined all cs files in our namespace, eg. office.target.classlibrary office.target.classlibrary.client1 Then I added a new item, ie DatSet. Compile and got the error "The type or namespace name 'DataSet1' could not be found (are you missing a using directive or an assemb...more >>

System.Net.WebClient with Proxy and Credentials
Posted by TheMaxx at 6/30/2006 12:00:00 AM
I try getting response from web site through proxy in my domain: WebClient wc = new WebClient(); WebProxy wProxy = new WebProxy(); CredentialCache cc = new CredentialCache(); NetworkCredential nc = new NetworkCredential("myUsername", "myPassword", "myDomain"); cc.Add("myProxy.dom...more >>

Stored Procedure return records
Posted by Alan T at 6/30/2006 12:00:00 AM
I have a SP: CREATE PROCEDURE dbo.users_name as select name from users order by name Here's my C# code: public string[] GetUserNames() { SqlCommand objCommand = new SqlCommand("users_name", _Conn); objCommand.CommandType = CommandType.StoredProcedure; _Conn.Open(); objCommand.C...more >>

Bring hidden components to the front
Posted by Torben Laursen at 6/30/2006 12:00:00 AM
Hi In the dropdownbox in the properties window I have a lot of components that I cannot see in the designer. Is there a way to bring them to the front so I can delete them? PS they are set to Visible=true Torben ...more >>

Using Code to Call an exe - then get the status back?
Posted by Simon Harvey at 6/30/2006 12:00:00 AM
Hi all, I need to make a scheduling service that will call an exe file. As I understand it, the exe can return a status code from its Main method. My question is, how do I programmatically: a. Call the exe b. Get the status code returned from the exe I anyone could point me in the ...more >>

Stored procedure
Posted by Alan T at 6/29/2006 10:41:48 PM
Is there a sample code I can use to call a stored procedure which has input and output paramerts ? ...more >>

Tabcontrol Colors
Posted by Robert Bravery at 6/29/2006 10:06:33 PM
Hi all, I dropped a tabcontrol on my form. The forms background color is a pastel blue. I can get the tabpage to thesame pastel blue. Bt cannot get the tab nd tab border to the same color. it remains on the normal windows grey any help Thanks Robert ...more >>

IEnumerable is strange
Posted by Tin Gherdanarra at 6/29/2006 9:05:00 PM
Dear mpdls, here is a simple example of an IEnumerable that generates integers: It works, but I have only a vague idea of what's going on. I understand that /yield/ wraps the humble integer that comes from counter++ into an IEnumerator<int>. I don't understand why I have to implem...more >>

ASP.Net 2.0 CheckBox List Layout Issue?
Posted by Chaprasi at 6/29/2006 8:52:23 PM
Gurus of asp.net and C# Please Help! I have a checkbox list solution to implement. This is my code <asp:CheckBoxList ID="CheckBoxList1" runat="server" RepeatColumns="3" RepeatDirection="Vertical" RepeatLayout="table"> <asp:ListItem>Item 1</asp:ListItem> <asp:ListItem>Item 2</asp...more >>

Equality and generics
Posted by Giulio Petrucci at 6/29/2006 7:47:47 PM
Hi everybody, I'm implementing a sort of my own generic collection. It has a method that returns an int representing the index for a particular index. If I try to compile the code below: class MyCollection<T> : ICollection<T> { T[] array; MyCollection() { array = new T[]; } int Get...more >>

creating a type from a string
Posted by Dan Holmes at 6/29/2006 6:23:01 PM
If i have this value in a string "System.Int32", how can i get that into a variable with the type of Type? string s = "System.Int32"; Type t = //do something here so that t.ToString() == s is true dan...more >>

Knowing an object implements an Interface
Posted by Ron M. Newman at 6/29/2006 6:05:04 PM
Hi, Is there a quick way to know if a given object implements IComparable? (without casting or anything like that). Something that uses reflection? Thanks -Ron ...more >>

How to get SP params?
Posted by Brett Romero at 6/29/2006 5:27:18 PM
How do I get the names of parameters for a specific stored procedure. I just need a listing of the names and nothing else. Thanks, Brett ...more >>

animation in .net
Posted by Prashant M at 6/29/2006 4:58:57 PM
can anybody suggest me how to create a PAGE TURNING EFFECT IN .NET using C# ...more >>

error creating timer_elapsed handler.
Posted by hazz at 6/29/2006 4:25:38 PM
Why do I get this error for this simple console app. It is complaining about the 'timer1_Elapsed' argument in System.Timers.ElapsedEventHandler(timer1_Elapsed); An object reference is required for the nonstatic field, method, or property 'TestTimerIntervalFromConfig.Class1.timer1_Elapsed(ob...more >>

Down-casting of Typed Collection (Casting Generic Types?)
Posted by conchur at 6/29/2006 3:44:32 PM
Is there an elegant way to have a class utilise an inherited method to return a Typed Collection of itself? Example: class MyList<T> : List<T> where T : MyRoot { Add... Remove... } abstract class MyRoot { public static MyList<MyRoot> List(...) { // return MyList<M...more >>

REPEATER PROBLEM
Posted by Savas Ates at 6/29/2006 2:46:47 PM
It shows nothing . No error and nothing on the screen.There is no error too. Im sure sql query is returns some rows i tried it Sql query analyser ? what is the problem ? <asp:Repeater id="Repeater1" runat="server"> <ItemTemplate> <%# DataBinder.Eval(Container.DataItem,"urunadi")...more >>

IOException File used by another process
Posted by George at 6/29/2006 2:27:03 PM
Hi, I am re-writing part of my application using C#. This application starts another process which execute a "legacy" program. This legacy program writes to a log file and before it ends, it writes a specific string to the log file. My original program (MKS Toolkit shell program) which k...more >>


DevelopmentNow Blog