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# > november 2006 > threads for friday november 10

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

Q: How to tell if a component function is executed at design time or runtime?
Posted by Martin Arvidsson at 11/10/2006 11:03:21 PM
Hi! I have developed a component that creates a lookup for selecting values. At designtime i want to display the windows as well but with certain criterias. is there a property or something to look at that tells mee if its designtime or runtime? Regards Martin ...more >>


tooltip hint
Posted by giddy at 11/10/2006 10:24:33 PM
hi , i'm somewhat new to C# .. so i might be asking a silly question.. but i have tried searching forums after reading msdn docs , for this. I have a column for dates in my datagridview. As soon as the user starts typing the date into it one of the cells. i want a tooltip to popup nearby ...more >>

richtextbox's scroll bar
Posted by dotnetnoob at 11/10/2006 9:49:02 PM
i have a Dialog form with richtextbox that basically display a legal agreement and when the user drag the scroll thumb down to the end of scrolling which suppose to mean the user have read it then the checkbox is enabled for the user to tick off (I agree) and the next button is enabled for u...more >>

Creating Bar Graphs
Posted by robert.q.johnson NO[at]SPAM anheuser-busch.com at 11/10/2006 9:40:45 PM
Help. I am trying to create a web page in C# to display a row of data with bar graphs (an image 1px). I get the max value of the row and use the following formula to size the height of the image, but the bar graphs are not sizing correctly. Can anyone provide me with a solution or any ideas. ...more >>

Exception Handling Scope
Posted by Fred Chateau at 11/10/2006 9:14:21 PM
Can exceptions only be handled in a protected block? For example, can I globally catch and handle any exception generated from an ASP.NET page without placing the entire Page_Load event handler code in a try-catch block? -- Regards, Fred Chateau fchateauAtComcastDotNet ...more >>

Difference between Select and Focus?
Posted by Jon Slaughter at 11/10/2006 8:53:43 PM
Whats the difference? Thanks, Jon ...more >>

Fixing a form on the screen
Posted by Adrian at 11/10/2006 8:40:47 PM
How do I fix a form on the screen using VS C# 2005. By "fixing" I mean that the user cannot move the form about on the display. Thanks, Adrian. ...more >>

disable popup blocker internet explorer at runtime
Posted by Frederik Vanderhaegen at 11/10/2006 8:18:40 PM
Hi, I'm writing an application which handles Internet Explorer Automation. Through the application I'm able to automate logon on a certain webpage. When I automate the click on the logon button, a new window should open but it's being block by the pop-up blocker of Internet Explorer. Does a...more >>



Topic Maps and C#/.NET
Posted by Martin Pöpping at 11/10/2006 7:54:52 PM
Hello, I´m planning to visualize the data of my program as topic maps. Does anybody know about a free (open source) framework for C#/.NET? It would be great if there would be a way to use an object like a "TopicMapBrowser" instead of the "WebBrowser" object in the Visual Studio .NET GUI D...more >>

Downgrading .Net 2 application to .Net 1.1
Posted by anonymous at 11/10/2006 4:49:01 PM
Hello all, I have a C# application written using Visual C# 2005 Express. I believe it uses some of the .Net 2 controls and so on. I want to run this application on Linux using mono 1.2 (supports .Net 1.1). What is the best approach to downgrade this application to use .Net 1.1 stuff? Th...more >>

Data types chart
Posted by Dylan Parry at 11/10/2006 3:26:59 PM
Hi, I'm looking for a reference chart that shows the .Net data types along with their equivalent names in C# (and possibly VB.Net). By this I mean something that has things like "Int32 -> int" and so on. Does anyone know of such a chart? Cheers, -- Dylan Parry http://electricfreedom...more >>

Q: Is it possible to tell the DataSet wizard where to put source files?
Posted by Martin Arvidsson (Visual Systems AB) at 11/10/2006 3:19:01 PM
Hi! When you use the DataSet wizard the .ds files are placed in the root of the project. Is there a way to direct them to a subdirectory? Regards Martin ...more >>

State machine in C#
Posted by nyhetsgrupper at 11/10/2006 3:12:00 PM
I have a C++ application which I am porting to C#. This application is controlling a transport belt. This transport belt is moving bins foreward and backward. I have a state machine controlling this transport belt. In c++ there is an integer named state which holds the state of the belt. Bit 0...more >>

Windows communication foundation
Posted by nyhetsgrupper at 11/10/2006 3:00:47 PM
Hi, I am about to start on a new project. It is a server app running as a win32 service. I was thinking about using remoting to create a user interface (web based) to this service. Now that WCF is released should I use that instead of .Net remoting? What is the advantages of switching from .n...more >>

How to spy into heap
Posted by Maxwell2006 at 11/10/2006 2:18:00 PM
Hi, I like to inspect what is inside the heap and how different objects are stored within heap. Is there any tool that helps me to spy within heap? Thanks, Max ...more >>

Revoke User Certificate
Posted by killbill at 11/10/2006 2:10:17 PM
Hi All, I am struggling with a problem but no fate till now. I have written a c# program which retrieve X509Certificates associated with Active Directory user. Now i want to revoke a selected certificate. I could not find anything which can give me idea about to revoke a certificate. Any...more >>

DataGridView - TextBoxColumn - background update to data source
Posted by John J. Hughes II at 11/10/2006 2:02:42 PM
I have a DataGridView with a TextBoxColumn. I setting the data source to a List<string> value in a static class. The list is filled from a background thread. So far all is fine and it works great, at least on my system. The reason I am doing this is some customers are pulling from VPN ...more >>

Problem injecting javascript in GridView
Posted by MJB at 11/10/2006 1:47:43 PM
I have a grid view that is databound to a table with 3 columns. One column contains a customer ID. I am trying to add a 4th unbound column that contains a button and has a javascript onclick event. I need the id from the cusomer id column to use my onclick event. but since my onclick e...more >>

TCP Send Timing Issue
Posted by Richard Charts at 11/10/2006 1:17:32 PM
I am building a simulator that needs to send out 2 messages on a tcp connection each at a rate of 1 packet / 50ms. Right now it kind of works in that it is sending 8 (4 of each) at 200ms. Is there a way to force the packets to at the least go out every 50 ms? If 1 of each is combined is fine, ...more >>

ArrayList BinarySearch vs Contains
Posted by tshad at 11/10/2006 12:56:27 PM
Which is better to use with an ArrayList: BinarySearch or Contains? The list is only going to have strings in it and it will be sorted. Thanks, Tom ...more >>

System.Configuration.ConfigurationManager.AppSettings
Posted by Peter Kirk at 11/10/2006 12:53:26 PM
Hi there is there any way to tell what .config file the property System.Configuration.ConfigurationManager.AppSettings is trying to access? I have a class which uses this property but no appSettings are being loaded, so I am guessing it is trying to access a different config file than I th...more >>

Sound Programming!
Posted by Vai2000 at 11/10/2006 12:45:37 PM
Hi All, If someone can guide me how to write code for capturing sound input from the PC Soundcard & storing it as mp3 I will sincerely appreciate it.. Basically I have external devices which are plugged into the Soundcard Line In port, I need to capture the iput from those devices. TIA ...more >>

Checking if USB device is plugged in
Posted by beaker at 11/10/2006 12:19:37 PM
Hi, I'm looking for a way of checking whether a specific USB device (a webcam) is plugged in. I have the Vendor and Product ID numbers for the device. I found an article (http://www.vsj.co.uk/articles/display.asp?id=600) with code sample that does the trick for human input devices (mo...more >>

lds
Posted by Luiz at 11/10/2006 11:46:01 AM
I'm constructing a class to database access using the following interface component : IDBDataAdapter my_i_DataAdapter; ...... The project has an instance of the class OdbcDataAdapter my_odbcDA, then I make this: my_i_DataAdapter = my_odbcDA; but when I try to set the parameters, the in...more >>

XML related question
Posted by Bruce C. Miller at 11/10/2006 11:34:02 AM
I'm working on an application that I'd like to add XML support to in order to communicate with another app on a remote server. The other side already has the data I need in XML files ready to be recieved by my end. The problem is that it's in a specific schema-type (cXML). So far, I have my en...more >>

Reading Excel dates into C# come out as "weird" ints - help?
Posted by sherifffruitfly at 11/10/2006 9:01:08 AM
Hi, I'm using an adaptation of excel-reading code that's all over the internet - I don't much like or understand it, but it has worked for me in the past.... beggars can't be choosers... : Excel.Application excelObj = new Excel.Application(); Excel.Workbook theWorkbook = excelObj.Wo...more >>

webbrowser control in compact framework
Posted by Narasimham at 11/10/2006 8:36:01 AM
Hi, I am trying to use the webbrowser control in the compact framework. I am setting a URL to the webbrowser control and am able to see the page in my handheld device. I have two issues 1. I have a handheld device that scans items and does certain functions depending on the input. I am req...more >>

selecting a datatable
Posted by bbdobuddy at 11/10/2006 8:33:02 AM
I have two datatables in which I am looping through one table and selecting rows from the other tables that match and then deleting those matches. Once I delete a row and I try to select another row I get an error that says "This row has been removed from a table and does not have any data. ...more >>

GPU Processor Abstraction...
Posted by Paul Ericksen at 11/10/2006 8:17:46 AM
There's been increasing talk about how much better GPUs are at math-intensive apps. GPUs today rival supercomputers of 7 years ago. Example: http://hardware.slashdot.org/article.pl?sid=06/11/09/2056233 When the people over at the Folding@Home (protein folding distributed app like SETI@Home) ...more >>

DrawImage question
Posted by Lev Elbert at 11/10/2006 7:30:54 AM
Using DrawImage I draw (in OnPaint) a bitmap on a form protected override void OnPaint(PaintEventArgs e) { if (_album.Count > 0) { // Paint the current image Photograph photo = _album.CurrentPhoto; Graphics g = e.Graphics; ...more >>

Handle the form closing when the user clicks on the "X" button (form caption bar)
Posted by polocar at 11/10/2006 6:59:37 AM
Hi, suppose that you have a C# form with two buttons, that are the classical "btnOk" and "btnCancel" (besides them, of course in the form there can be many other controls). When the user clicks on btnOk, the program makes some confirm operations and closes the form. When the user clicks on btn...more >>

Class instance not initialized, bug?
Posted by TEK at 11/10/2006 6:38:27 AM
Hello We're having a issue with a part of our app that is very strange, and I'm unable to see that it should be possible. We have: A collection (ActivityCollection) that is inherited from a general, abstract collection class that implements ITypedList and IBindingList When the program ex...more >>

How can I decrease size of mem usage.
Posted by Jesper, Denmark at 11/10/2006 5:49:02 AM
Hi, I've written a somewhat large program over the years (70.000 lines of code). When compiling the program I get a 2MB exe file. When running this program I get an corresponding image in the task manager showing a 40 MB memory allocation . Yes, the program allocates memory dynamicaly, but ...more >>

Internationalization & System.Resources
Posted by muzilli NO[at]SPAM sercomtel.com.br at 11/10/2006 5:37:45 AM
Howdy all, somebody used in the past the library System.Resources for internationalization purpose? I would like to develop an application multi-lingual (english and french) and I=B4m thinking to use this library. But the problem is that, I created the resources file (binary) normally but w...more >>

Screen capturing to video with DirectShow
Posted by Joachim at 11/10/2006 4:55:01 AM
Is it possible to write an application that captures screen happenings to a movie file of some format using MS DirectShow? If it is, where do I start?...more >>

Progress bar update on large files
Posted by Joachim at 11/10/2006 4:22:02 AM
Is there an efficient way of copying a file and at the same time updating a progress bar with short intervals to see how much is still to copy of the file? Like some FTP programs have for instance....more >>

How to redact image in web application
Posted by pappu at 11/10/2006 4:14:27 AM
Well i have number of images in my application which contains some document in it so i just want to mark some part of document in tht image which i think not of any use or i want to hide tht . so i want to mark tht area or i want to do black out tht area after tht i wann save tht iamge with t...more >>

How to make multiple datagrid rows invisible??
Posted by Nader at 11/10/2006 3:59:45 AM
It's easy to make the last row in a datagrid (filled with a table) invisible: datagridObject.Rows[i].Visible = false BUT if 'i' is not the last row then things go wrong. I even tried: for (int i = datagridObject.Rows.Count - 1; i >= 0; i-- ) { dgrDeelleveringen....more >>

Help with time format please
Posted by CCLeasing at 11/10/2006 3:56:38 AM
i'm currently using the following code without any problem. txtTime.Text = DateTime.Now.ToString("t") however, i want the time to be displayed with am or pm after it. so for instance instead of 15:32, 3:32 pm how do i do this? Many Thanks. ...more >>

Writing a DrawToBitmap function for the RichTextBox control
Posted by Technical at 11/10/2006 3:39:51 AM
Greetings, I am currently working on a project that requires that the contents of a RichTextBox control be drawn to a bitmap. I have attempted nearly everything including using calls into the Win32 API BitBlt function. Is t here a way to perform this feat without sifting through the contents ...more >>

XmlSerializer for class based on Interface
Posted by Tantr Mantr at 11/10/2006 3:28:01 AM
Hello , I have a class which I serialize using XMLSerializer. This class has public properties which are based on other interfaces. Because of this I am unable to serialize the object. Error : There was an error reflecting the type XXXX Is there any way to serialize this object w/o moving aw...more >>

how to add "Authorization: Basic" for a web service call
Posted by Ottavio at 11/10/2006 3:15:17 AM
Hello, I'm having some problems with the authentication during a web service call I know I have to add the "Authorization: Basic xxxxxxxx" in the http header (not soap header) but I can't find a way to add it. I've tryed to use ethereal to watch what I'm sending and I can see all the header (...more >>

how to check if a directory exists / and create it if it doesn't
Posted by CCLeasing at 11/10/2006 3:11:27 AM
If (Directory.Exists(@"c:\indigo\" + txtOfficial + @"\" + comOffice.Text + @"\" + numTerm.Value.ToString())) { storereport(); } else { Directory.CreateDirectory(@"c:\indigo\" + txtOfficial + @"\" + comOffice.Text ...more >>

Quick Newbie Inheritance Question
Posted by Mark at 11/10/2006 2:54:41 AM
Hi I was wondering if anyone could help me with the best approach for the following. I have an class called say BigClass with lots of bits and pieces in it. I currently have a data access object BigClassGetter which returns a new populated BigClass object. Now I create a class BiggerClas...more >>

difference between String and string
Posted by CCLeasing at 11/10/2006 2:32:19 AM
I notice in my code that is String is typed with an uppercase S it is coloured light blue in the IDE and if it is typed in the lowercase string then it is displayed in dark blue. Can someone explain why this is, and what the difference between these two versions of string is please. ...more >>

My Windows account do not have administrator priviliges anymore
Posted by Marcus at 11/10/2006 2:24:31 AM
Hi, My Windows account do not have administrator priviliges anymore even though the user account window accessible from the control panel claims I do. I did my first time programming with setting ACL:s. I thought I had completed my application since it seemed to work fine setting the ACL:s ...more >>

Problem Formatting A String
Posted by CCLeasing at 11/10/2006 1:35:38 AM
I'm trying to format a string, using placeholders. I have tried the following : - String Time = string.Format("Time: (({0 - {1}}))", txtDate.Text, txtTime.Text); MessageBox.Show(Time); The string i'm trying to achieve would look something like this : - Time: ((1/1/06 - 12:32)...more >>

Server-based timers working.
Posted by archana at 11/10/2006 1:33:18 AM
Hi all, can anyone tell me how server based timer in .net works? Which one of either system.timers.timer, system.threading.timer is better for use in windows service. How worker thread call elapsed event. Will it depend on any of system factors? If anyone can shed some light on i...more >>

Supergrid or WPF
Posted by Howie Meier at 11/10/2006 12:00:00 AM
Our company needs a grid control. The Window Forms Grid is not adequate. Is there an example how to use Windows Presentation Foundation with ..NET Framework 3.0 ? What do you use ? Thanks, Howie...more >>


DevelopmentNow Blog