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# > september 2007 > threads for thursday september 20

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

Obtain parameter values from method
Posted by ME at 9/20/2007 8:35:34 PM
How would one obtain the parameter VALUES of a method that has already run? I can find the method using the StackTrace and StackFrame classes but once I find the method I would like to obtain the value of one of the parameters that were passed to the method. Is this possible? Even if I have ...more >>

Newbie - resizing datagrid columns programatically
Posted by Mamba at 9/20/2007 4:16:32 PM
Hi all Working on a winform app that will read a table structure and display the column names within a datagrid. I want to adjust the column widths to fit the control size where possible. Instead of attacking each column separately, I opted for a "higher level" fix for column widths, a...more >>

Using Word Interop Assembly
Posted by rwiegel NO[at]SPAM iastate.edu at 9/20/2007 2:11:48 PM
Hi All, I have created an ASP.NET project and for one of the pages I want to pop open a word template and fill in some info. In Visual Studio 2005, I added the COM reference Microsoft Office 11.0 Object library. This adds a few dll's to the \bin directory. When I run the code from visual st...more >>

Overline in label
Posted by Jon Slaughter at 9/20/2007 1:54:13 PM
is there a simple way to add an overline on the text in a label/checkbox/radiobutton? Any special chars that can do this similar to how & works with menus? Thanks, Jon ...more >>

Web Browser control - how to navigate to a local file.
Posted by timnels NO[at]SPAM gmail.com at 9/20/2007 1:27:56 PM
I have a web browser control that I'd like to point at a HTML file in my installation directory. I am doing something like: string path = Path.GetDirectoryName( Assembly.GetExecutingAssembly().GetModules() [0].FullyQualifiedName) + "\\howdoi.htm"; web...more >>

Can't run csc.exe?
Posted by tshad at 9/20/2007 12:31:59 PM
Can't seem to get csc.exe to run from my home machine which has asp.net 1.1 installed. I added the path variable and in the command prompt where I am running my make file I am getting the error: 'csc' is not recognized as an internal or external command,operable program or batch file. ...more >>

Assembly.Load() and updating DLLs on the fly
Posted by Dan Dorey at 9/20/2007 11:32:50 AM
Hi, I've successfully built an application that loads plugins dynamically at runtime. I now have the requirement that I update these DLLs while the program is still running. Our app is 24/7 and it would be beneficial if we could update functionality without restarting the services (this is ti...more >>

date formatting
Posted by rodchar at 9/20/2007 11:22:02 AM
hey all, how do i format my string that contains the date and time? c#: String dateValue; dateValue = 9/20/2007 10:00:00 AM but i'd like it to just contain the date: 9/20/2007 thanks, rodchar ...more >>



tables
Posted by at 9/20/2007 11:17:36 AM
Hi, Ive built an application that gets live data every 5 secs and sends it to excel. In excel Ive got 4 small tables (9x9), which I use vba to sort the data and allocate to the correct table. This works well, infact Im chuffed Ive managed to do this. The next stage is to bypass excel altogether...more >>

Import C++ DLL into C#
Posted by Michael Tissington at 9/20/2007 10:08:59 AM
I have a DLL written in C++. A number of the functions both expect a string (BSTR) and also return a string (BSTR) How do I define this in C# ? ...more >>

DataGridView
Posted by gtea at 9/20/2007 10:00:02 AM
Hi, I don’t want any rows in the DataGridView selected initially on the form programmed in C#. How can I do it? I have tried to set DataGridView.CurrentCell = null, but it doesn’t work for me. Any help is appreciated! ...more >>

Get color name from ARGB
Posted by Dan Reber at 9/20/2007 9:13:03 AM
I have a color that was derived from Color color = new Color(); color = Color.FromArgb(alpha, red, green, blue); and I want to get the name of the color if it is known. I tried 'color.IsNamedColor' but based on MSDN, IsNamedColor will return false if 'FromArgb' was used even if the ARGB...more >>

For future reference: nested classes and access modifiers (protected, protected internal)
Posted by raylopez99 at 9/20/2007 8:43:17 AM
The below source code is just for future reference, since I had problems understanding the use of access modifiers "protected" and "protected internal" with the examples on the net. Nothing beats doing a demonstration program yourself however. Actually the below example doesn't show how usin...more >>

Search with regular expression
Posted by sowen at 9/20/2007 7:14:23 AM
hi, folks I am doing a automate tool to remove a project reference from the VS.NET solution file. Suppose the sln file has this project definition Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Project", "..\.. \..\Project.csproj", "{9D8A6B4A-8B37-4C2E-80B9-0DA4C5EF33B1}" How exa...more >>

Newline and Return characters in app.config
Posted by Mike at 9/20/2007 5:41:12 AM
I seem to be having some troubles inserting newline and return characters into my app.config file (I have them there for serial port newline settings). I can add them as (ampersand)#xA; and (ampersand)#xD; directly in the app.config XML, but if I (or any future developer) launches the settings page ...more >>

copy constructor
Posted by Tarscher at 9/20/2007 5:32:30 AM
Hi all, I need to make a copy constructor for a collection class: public class KeywordCollection : BindingList<BaseKeyword> {} Class KeywordCollection is nothing more than a BindingList of BaseKeywod. I just don't see how I can make a copyconstructor in the KeywordCollection class. eg:...more >>

Problem with faking a progress bar / threading.
Posted by CCLeasing at 9/20/2007 5:02:34 AM
For an application I'm creating I want to create a 'fake' progress bar. By fake I mean a progress bar that looks like it's doing something but actually isn't. I know philosophically this isn't sound. But my little app is a 'fake' app and is designed to look like another - hence this seeming c...more >>

What is the meaning of the + in the declaration method?
Posted by Jolynice at 9/20/2007 4:14:01 AM
Hi everyone, I am learning c# and i don´t understand a piece of code , can anyone explain the meaning of this code please. public class vector { public double? R = null; //I suppose this is a Generic Type ??? .......... public static vector operator +(vector op1, ...more >>

convert word doc into PDF using c# code.
Posted by Lucky at 9/20/2007 2:31:11 AM
hi guys, i'm having very terrible problem. I need to print a word doc into pdf. for this i'm using gostscript to create a virtual printer (http:// www.stat.tamu.edu/~henrik/GSWriter/GSWriter.html). and using microsoft c# code to call this printer and print the document into pdf (http:// support...more >>

change properties of httpRequest object ?
Posted by kessnet at 9/20/2007 2:30:01 AM
Hi group ! How can I change the url paramters while processing a C# httpRequest object ? This particualr object holds encrypted url paramters which I need to decrypt so the application is able to serve out the page with the right data in it. Since I havent't found any way to manipulate the r...more >>

DateTime.Now Refresh Interval too granular!?
Posted by Gareth at 9/20/2007 1:50:32 AM
I am trying to use DateTime.Now to apply a frame limit to my 3d application. Below is the code involved. In this example I have hard coded it for 60 frames per second (1000 milliseconds / 60 fps). public void Execute() { while(!_close) { DateTime n=DateTime...more >>

Find string constant (and enventually replace with resources)
Posted by timor.super NO[at]SPAM gmail.com at 9/20/2007 12:47:07 AM
Hi group, in my C# program, I have code like this : ListItem item = new ListItem("Show All", string.Empty); ..... <asp:Literal ID="Literal14" runat="server" Text="Something" /> .... What I would like to do is (in a translation purpose) to replace constant string by resource, to optain s...more >>

A design issue
Posted by TonyJ at 9/20/2007 12:00:00 AM
Hello! I just want to have your opinion about the problem. We have two applications running on two different plattforms in the same LAN network. On the first plattform we have windows and on the second plattform we have something called OpenVMS. The application on the window side is based on ...more >>

need help for invoking unmanaged functions
Posted by philipqiu at 9/20/2007 12:00:00 AM
hi I want to call unmanaged functions that are implemented in a dll. The problem is about the method return values. for example #include "stdafx.h" typedef struct toOut { int (WINAPI* ONE)(int x, int y); char (WINAPI* TWO)(char a); }myToOut; myToOut x; BOOL APIENTRY DllMain( ...more >>

When do i have to open the connection ?!
Posted by Marine at 9/20/2007 12:00:00 AM
Hi, My project must connect to a Sql Server quite often to read/write datas. I am wondering : do i have to open the connection to the Sql Server at the beginning when the application loads, then leave the connection open and close it when the application closes ? Or is it more efficient too...more >>

Microsoft Visual C# 2005 - missing watch window
Posted by Alistair George at 9/20/2007 12:00:00 AM
Could anyone tell me why I cannot bring up the watch window. MS help says its there but no matter what I do, I cannot find any settings to enable this debug missing menu item. Searched Google, asked others and one other said he could not find it either. Usually MS says that you need enterpri...more >>

Why int remainder=(int)(Math.DivRem(MaxValue, 2, out remainder)) is 5 where int MaxValue = 10!!!;
Posted by Alexander Gorbylev at 9/20/2007 12:00:00 AM
Hi all! Test: ----------------------------------- int MaxValue = 10; // =current value int remainder=(int)(Math.DivRem(MaxValue, 2, out remainder)); RectangleF[] fillRectangles = new RectangleF[(int)(MaxValue / 2) + remainder]; --------------------------------- (int)(MaxValue ...more >>

He-he...
Posted by Alexander Gorbylev at 9/20/2007 12:00:00 AM
Because > int remainder= (int)(Math.DivRem(MaxValue, 2, out remainder)); Right is: Math.DivRem(MaxValue, 2, out remainder) RectangleF[] fillRectangles = new RectangleF[(int)(MaxValue / 2) + remainder]; Distraction on last degree and hurly-burly... :-) ...more >>

Detect user activity
Posted by RP at 9/20/2007 12:00:00 AM
I want to detect user activity (mouse move, key click). For certain critical areas (Form in my app.), I want to check whether there is any user activity for a certain interval. If not, then I want to log off the Form. I don't want to user Timer controls. Is there any build in .NET class that can...more >>

Using function keys to change Tabs ... and F8 kills it all ... AAAAAAAAAARGH
Posted by Sam Samson at 9/20/2007 12:00:00 AM
Greeetings All .. For my users convenience I have mapped function keys F2 .. F12 to change the tabs on the Tabcontrol. Works like a charm <ominous music> until one hits F8</ominous music> That particular tabpage has a webbrowser object embedded in it .. and after it flicks to that tabp...more >>


DevelopmentNow Blog