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# > december 2003 > threads for thursday december 18

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 31

seeking solution for DataGrid, help, help, help, help
Posted by pei_world at 12/18/2003 11:54:54 PM
Hi, there; I have a problem with my datagrid control. I declared it in one of my form, set with DataGridTalbeStyle as well, and when I click on button, I would like to retrive Data from Database and bind these data to my datagrid in the form, when I click the button first time, it work fi...more >>

Cant Intercept DEL Key .. not recognized ...
Posted by daniel NO[at]SPAM oxigem.com at 12/18/2003 11:24:48 PM
Hi Folks, Problem is, that on one of my controls the DEL key wont work in textboxes. i have different controls of this kind in my app and this is the only one the DEL Key wont do his job. BACKSPACE and rightclick menu delete works either. seems the DEL Key fires no event ... i insert followin...more >>

how to capture AltH key
Posted by Ron Vecchi at 12/18/2003 10:18:41 PM
How can I capture the key press AltH in a button control. -- Ron Vecchi ...more >>

activex in activex event handling
Posted by indexnode NO[at]SPAM yahoo.com at 12/18/2003 9:31:30 PM
Hello group, I have the follwing problem with microsoft web browser activex control. I have a fileopendialog control. I open different files in the IEActivex control based on the filename in the fileopendialog control. When i open ppt or doc or pdf files it is nice that it opens them in its ...more >>

Using access key to navigate tabs in a tab control
Posted by cccedi NO[at]SPAM yahoo.com at 12/18/2003 8:54:57 PM
Hi, I'm new .NET & C#. I have to do a form which has a tab control with 4 tabs. I want to be able to switch between these tabs with an access key. MSDN says that the '&' in a text of a button or label will enable an access key. But MSDN says this is not allowed for tab control. Is there any...more >>

moving objects in a form.???
Posted by Serdar C. at 12/18/2003 6:59:22 PM
how can i move objects in a form?? i.e: i want to click on a picturebox and move it to another place?? ...more >>

Excel 2003 Automation (connect to a running instance)
Posted by cybertof at 12/18/2003 6:39:08 PM
Hello, Is there a way to connect (through automation) a c# application to a running Excel 2003 instance on a specific workbook ? In the past, i used to use GetObject(...) function in VB6. Regarding C#, I have heard about System.Runtime.InteropServices.marshal.GetActiveObject ("Excel.Ap...more >>

Binding a ComboBox in a Windows Form to a Hierarchical DataSet
Posted by Greg Dunn at 12/18/2003 6:26:58 PM
I have two tables in a parent-child relationship. Details on the tables are as shown below: Table1 ------- Item_ID (primary key) Item_Owner (foreign key to Table2) Table2 ------- Owner_ID (primary key) Owner_Name I wish to display, on a form designed for maintenance of the data in...more >>



Update database after dataset modification
Posted by Ahmed Zammar at 12/18/2003 6:24:48 PM
I'm using oledb. how do I update a database after a record has been modified in the data set? thanks. ...more >>

VB>C# Translation Help
Posted by Craig at 12/18/2003 6:17:53 PM
I'm trying to translate the CompareFileInfoEntries class from this page: http://aspnet.4guysfromrolla.com/articles/060403-1.2.aspx I have to just be missing punctuation or something dumb somewhere, but it won't work for me. Here's what I have: public enum CompareByOptions {FileName, LastWri...more >>

How to queue message to self? (C#)
Posted by Mountain Bikn' Guy at 12/18/2003 4:52:46 PM
What is the C# equivalent to calling PostMessage() in Win32 in order for an object to queue a message to itself? Thanks Mountain ...more >>

Asynchronous web service
Posted by Marty McDonald at 12/18/2003 4:40:57 PM
We call a web service with a method called "AddNewRecord". We call that method asynchronously via the "BeginAddNewRecord" method, specifying one of our methods as a callback to execute when "AddNewRecord" is done. The question is this... In our callback method, how can we tell if the "AddNewR...more >>

Casting in C#
Posted by Steven Bartley at 12/18/2003 4:39:08 PM
Error Message on execution: An unhandled exception of type 'System.InvalidCastException' occurred in CastObjectToDecimal.exe Additional information: Specified cast is not valid. The code in question is: object x = 15; decimal d = 0; d = (decimal)x; Any work arounds for this?? Thank...more >>

prevent user closing the application
Posted by alan at 12/18/2003 4:30:01 PM
Hello, When the user try the close the application (click the top right side button "X"), I would like to do a checking first. If the checking return false, prevent the application terminate. Anyone know how to do it? Thanks. ...more >>

C# example programs for accessing USB Devices
Posted by Bradley Grant at 12/18/2003 4:04:36 PM
Does anyone out there know of where I could find some C# example programs for accessing USB Devices. There just does not seem to be much out there on this subject. Even after doing a Google, Yahoo, Lycos search engines. Any feed back would be appreciate. Bradley...more >>

ERROR saving Grid as XML
Posted by Filippo Pandiani at 12/18/2003 3:58:21 PM
SCENARIO ======================================= I have a Grid and I want to save the values on an XML. Let me say that I am NOT using DataSet to load valus on my grid. PROBLEM ======================================= When I am saving a Grid to XML I get the following exception: "Token S...more >>

Dynamic Casting
Posted by Jeff Poste at 12/18/2003 3:41:00 PM
Hi, I'm developing software that requires business rules that constantly need new versions for different quarters, years, etc. I created a business rule factory that stores these different business rules in a hashtable indexed by the year, ie "3Q2003". Now based upon the key that I giv...more >>

How do I get part of the form outside my form ?
Posted by H at 12/18/2003 3:29:44 PM
So, I wanna have a panel with some buttons "outside" my mainform. How can this be done ? Do I have to make a new form, with the panel in it, and put it beside my mainwindow ? If I just can make a panel, is there some way to dock it outside my mainwindow ? Also, how can I get the coordinates f...more >>

why this does not work??
Posted by Tamir Khason at 12/18/2003 3:26:50 PM
Why this does not work? /*first option*/ String path = @"C:\TestMethod.dll"; //There is file named TestMethod.dll at C:\ /*second option*/ String path = "TestMethod.dll"; //There is file named TestMethod.dll at Current directory Assembly a = Assembly.Load(path);//File Not Found except...more >>

Combined interface inheritance
Posted by Donal McWeeney at 12/18/2003 3:10:59 PM
I was under the impression that in an interface declaration I could inherit another interface declaration and the result would be that the inheriting interface could include the methods and properties defined in the inherited interface. However when playing with this and defining a class to im...more >>

message box's
Posted by Mike at 12/18/2003 2:59:25 PM
I'm creating a windows app and i have some message boxes included in it for certain things. In VB I have icons and titles on the message box, how can i do the same in C#? ...more >>

Get DateTime.Now but exact 16 years ago..but how?
Posted by gicio NO[at]SPAM gmx.de at 12/18/2003 2:55:25 PM
Hi! I will get the date from now (DateTime.Now is 18.12.2003) but exact 16 years ago (18.12.1987). when I make something like this: //we set min. employee age to 16 years TimeSpan minEmployeeAge = new TimeSpan(5840,0,0,0); DateTime maxDate = DateTime.Now - minEmployeeAge; maxD...more >>

Why Doesn't this work
Posted by Jim at 12/18/2003 2:47:15 PM
<code> string x = "(813)999-9876"; string dialString = null; for(int i = 0; i < x.Length; i++) { if(x[i] != '-' || x[i] ! = '(' || x[i] != ')') dialString += x[i]; else MessageBox.Show(x [i].ToString()); } MessageBox.Show(dialString); </code>...more >>

WINDOWS SERVICE PARAMETERS
Posted by Shazad at 12/18/2003 2:37:48 PM
I am creating a windows service that requires parameters to start. The service Startup Type is set to automatic therefore it starts when the computer is started or rebooted. However the service fails because the parameters do not persist. If the service is started manually and the parameters e...more >>

Form TopMost just for application?
Posted by Jacob at 12/18/2003 2:14:10 PM
Is there a way to make a modeless dialog remain as a topmost window to your application, but not to all other applications. In other words, how can I keep a form(s) on top of my application all the time, but minimize when the main application minimizes? Thanks, Jacob ...more >>

Receiving the registry change notification in .NET
Posted by bruce.cottle NO[at]SPAM aspect.com at 12/18/2003 2:08:06 PM
The following message was a request made by sxbyl (sxbyl@netway.net.cn) on 2003-04-29 19:23:34 PST. I attempted to email this person but the email was non-delivered. >>>>>>>>> I have look at the framework about Microsoft.Win32 namespace and System.IO namespace, but I have not found any meth...more >>

Getting the current set TimeZone and Area code
Posted by Jim at 12/18/2003 2:03:53 PM
I need to access the system settings and return the current system Time Zone and Area Code. Can anyone help me here? ...more >>

Multi-Monitor Support?
Posted by Jacob at 12/18/2003 2:01:54 PM
What care should be taken when writing a C# application to ensure that it will support multiple monitors?...more >>

FEATURE REQUEST: Property set via ref parameter
Posted by discussion NO[at]SPAM discussion.microsoft.com at 12/18/2003 1:54:43 PM
Hi, It would be nice and a natural way to use a property set by permitting it to be set via a REF parameter on a method call. Why this isnt being allowed is beyond me, yes I know they are wrappers for get_ and set_ methods but if they are there to give the impression of a FIELD, then th...more >>

Global.asax
Posted by Ing. Leandro Pérez Guió at 12/18/2003 12:00:16 PM
Hello everybody: I'm getting trouble with global.asax. Inside it, i define a sqlconnection, a dataadapter and a dataset. In the Session_Start i declare the session variables calls conn, da and ds. Later, i make a webform and when i instante the session variable da, its point to null and t...more >>

vb .net to C#
Posted by Wajih-ur-Rehman at 12/18/2003 11:51:56 AM
Is there any way to convert a vb .net project to C# project? ...more >>

DLL and Shared Memory
Posted by Mark Wai at 12/18/2003 11:41:51 AM
Hi, I have two questions: 1) We can create DLL from C#. But does the resulting DLL requires the present of .NET runtime environment? 2) Can C# works with shared memory? Thanks...more >>

Interfaces
Posted by Brett Hewitson at 12/18/2003 11:40:58 AM
I am new to C# and I am trying to implement a class that implements the System.Collections.IDictionary class. So far this is what I have. using System; namespace Test1 { public class Preferences: System.Collections.IDictionary { private System.Collections.SortedList mPref...more >>

Detecting Network Connections
Posted by Kunal at 12/18/2003 11:21:42 AM
I am developing a Windows Forms application that will need to check the status of the various network devices installed on the host machine. The machine in question is a Tablet PC (Tablet PC OS which is essentially XP with the whole ink superset etc), equipped with a sprint air card, a wireless ...more >>

Updating XMLDocument
Posted by Eva at 12/18/2003 10:59:28 AM
Hi, Could someone tell me what I'm making bad? I put a XML file in a XMLDocument using Load command. After I modify some values in nodes and use Save for solve changes. So, while I'm in the application I can look all the changes (they are made in the XMLDocument) but, really changes a...more >>

Compiling and Calling C# on-the-fly
Posted by Chris at 12/18/2003 10:57:46 AM
In my C# client-side application, I want to give the user the ability to run algorithms that they write. Given the rich features of VB and C# (and Java), I would like to enable the user to write their algorithms in these languages. My program should be able to interface to the algorithm ...more >>

C# on the Web
Posted by Chris at 12/18/2003 10:53:16 AM
I have developed a client-side C# application (based on System.Form objects, the Application object, etc). Is there any easy way to run a client-side application in a Web Browser? Can ActiveX do this easily? Are there newer technologies in .NET to do this? Thanks! ...more >>

Creating or Getting a Dataset from a grid
Posted by Filippo Pandiani at 12/18/2003 10:53:13 AM
I have a grid that shows the file list from a folder. On the postback, how do I get a Dataset from this grid? Thanks, Filippo. ...more >>

Mabry products
Posted by Marco Martin at 12/18/2003 10:36:40 AM
Anyone have any experience using Mabry products? ...more >>

directX 9
Posted by JessCurious at 12/18/2003 10:31:57 AM
1. does anybody have a discussion of pros and cons directx9 vs GDI+? is GDI+ simply last year's version and directx9 the future, or do they each have advantages? 2. does directx9 do everything gdi+ does (display jpegs, draw polygons, etc?). 3. where is the most current directx magaged d...more >>

treeview?
Posted by '[] WiRaN at 12/18/2003 10:24:22 AM
anywhere user drag and drop in treeview??? please, send me example... Wiran ...more >>

Creating an XML from a Grid
Posted by Filippo Pandiani at 12/18/2003 10:16:51 AM
Hi there, I have a simple GENERIC grid that can load different type of data. I would like to be able to create an XML file based on the current values loaded and save it on the server as follow: ============================== for each column (these are the Tag names) for each row (these...more >>

C# calling GNU static library functions
Posted by Ray Mitchell at 12/18/2003 10:06:27 AM
Hello, I have a C console application that I'd like to convert to C# (Windows 2000). It currently calls some functions in a GNU static library (.lib) so I've been compiling it with GNU (for Windows) just to keep it simple. Is there a reasonable way I can call these library functions fro...more >>

A simple server question
Posted by Ray Mitchell at 12/18/2003 9:56:29 AM
Hello, I've inherited the following code and am trying to get it to work. As I understand it's purpose, it creates a server, listens for a client to connect, does some work with the client, then loops back around and listens for the client to reconnect again in case it should become di...more >>

Quick response somebody
Posted by Marinos Christoforou at 12/18/2003 9:45:59 AM
I have an application which is multi-tiered. I want to return a sqldatareader object from a function called in the data access tier. I know that the preferred way of transferring data through tiers is with a dataset but I want to use a datareader. My question is it possible to do this given that...more >>

Assembler in C# code?
Posted by dont_spam_daniel NO[at]SPAM yahoo.com at 12/18/2003 9:44:23 AM
Will Whidbey will include the ability to put inline assembler into C# code? I found a previous thread in which it was implied that a future version of .NET would support this. (http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=eDQxAcx3BHA.2224%40tkmsftngp02) My team is workin...more >>

VS.Net Question
Posted by John at 12/18/2003 9:34:23 AM
Hi, For some reason, the VS.Net IDE does not have a scroll bar at the buttom of the code editor page and it is wrapping the code not shown in the screen. I do not know why this is happening. How can I change this? Thanks ...more >>

Exposing internal classes as properties?
Posted by Dave Veeneman at 12/18/2003 9:29:36 AM
Is there a way to expose an internal class as a public property of its parent object? Let's say I have a Customer object with Public accessibility. It has an Addresses collection property that it populated with Address objects. This property has Public accessibility, as well. To keep the assem...more >>

How can I know if a Char is a digit?
Posted by Hector Martinez at 12/18/2003 9:21:23 AM
Is there any function to know if a char is a digit Thanks in advantage.......more >>

How can I create group logic with class?
Posted by Migrant at 12/18/2003 9:21:04 AM
Hi Friends; I want develop a group logic with C# (n tier refraction).I know I must create a Class and inherit it But I don't have enough know-how about develop classes. Somebody can help me? An Example For My Group Logic: 102 Banks 102.01 Credit Banks 102.01.01 Abn Ambro 10...more >>

How can I know if a char is a Digit?
Posted by Hector Martinez at 12/18/2003 8:56:38 AM
is there any function to know if a character is a Digit Thanks in advantage......more >>

how to get the callstack description w/o exception
Posted by Zeng at 12/18/2003 8:55:26 AM
Hello, In my code, when I run into an error, I would like to dump the callstack into error log, how do I do that w/o throwing an exception then catching it just to get the callstack? Exception structure has callstack information but I thought there must be a way to directly retrieve it. Than...more >>

Exception Line Number
Posted by Shawn B. at 12/18/2003 8:26:00 AM
Greetings, How do I get the line number that an exception ocurred in so I can format it or log it in my own way. The only way I know of at the moment is to call [ExceptionObject].ToStriong() and then RegEx it but there must be a more direct way. Thanks, Shawn ...more >>

Threading & Security Context question
Posted by Jerry Negrelli at 12/18/2003 8:22:53 AM
I'm running an ASP.NET application which uses impersonation & Windows authentication to set the current Principal. One of my methods was taking an awful long time to run, so I decided to launch it in a new thread using the following two lines of code: Thread bob = new Thread(new ThreadSt...more >>

DataGrid OnPaintBackground not working
Posted by Mark.Larsen NO[at]SPAM hill.af.mil at 12/18/2003 7:29:57 AM
My override of DataGrid's OnPaintBackground gets called, but the final display only shows whatever was set in BackgroundColor. Why is DataGrid repainting the background after my override?...more >>

pop3 password2
Posted by Kevin Beyers at 12/18/2003 7:20:00 AM
Hello Everyone. I am in the process of writing an Internet connection wizard program for the company I am working for. At present, I have all the pieces together beside the part of setting the email account password for outlook. If anyone have any ideas that could help. Please let me know Curr...more >>

Override Grid Lines on DataGrid
Posted by Mark.Larsen NO[at]SPAM hill.af.mil at 12/18/2003 7:05:19 AM
What object would I override in order to control painting of Grid Lines in a DataGrid?...more >>

ImageList
Posted by Tam Inglis at 12/18/2003 6:09:29 AM
I need to populate a ListView and associate its LargeIconImage list with a series of thumbnails. I have a created a method that returns an ImageList. That seems to work. The method takes a path and populates it with all the .jpg it finds there. All images are 16x16. Ive stepped through the cod...more >>

XML to Excel
Posted by Pratik at 12/18/2003 6:07:48 AM
Hi Everyone, How do you convert the XML to EXCEL SpreedSheat... Please give me example or something to help me out. Thank You...more >>

eval a String to have a type
Posted by Eva at 12/18/2003 3:22:41 AM
Hi, My problem is about I have a class name in a string=20 variable and I need create objects for that class. =BFHow am=20 I able to use the string variable for it? I have another problem. The class in the first problem is=20 a form that I'm try to open. The form is created=20 externally b...more >>

Open a excel file
Posted by Dimitris at 12/18/2003 2:53:42 AM
Hi. I want to use the following code in order to open a excel file through my program ( written in C# ). In my pc it is installed the excel 2000. Application excel = new Application(); excel.Workbooks.Open( ..... ); The problem is that I don't know what parameters to pass to...more >>

Collection Property
Posted by Chane at 12/18/2003 2:46:36 AM
hi Thanx to all, I'm created an usercontrol and writing my own properties its working fine. But whether i grouped my properties as unique it works but it won't assign values to the control Eg. MyUsercontrol having only one textBox. I'm writing two properties like FirstName and LastNa...more >>

Random() problem
Posted by steven.shingler NO[at]SPAM virgin.net at 12/18/2003 2:21:34 AM
why on earth does: for(int i =0;i<5;i++) { Response.Write(new Random().Next(0,1000).ToString() + "<br>"); } give me: (for example) 400 400 400 400 400 ?? (I was sort of expecting a different number each time) any ideas very gratefully received - apologies if I'm being thick...more >>

Problem when using class of dll (close program?)
Posted by palm.kevin NO[at]SPAM gmx.net at 12/18/2003 2:06:48 AM
Hello, I have a little problem when I try to use a class of a DLL. Example : I have a DLL with the object MTSync with a function Sync() I try in another program to use this dll like this : MTSync sync = new MTSync(); sync.Sync(); OK, now the problem: The problem is NOT that this does not w...more >>

Call a form form a form
Posted by Dmitri Shvetsov at 12/18/2003 1:57:52 AM
Hi, Can somebody give a quick advice? I call a new form from a main form, like: CNewForm nf = new CNewForm(); where I should insert a string into a TextBox.Text field. Then I should return this string to a main form to the place from where I created and called this child form. Everythi...more >>

Tag property of List View Item
Posted by Jax at 12/18/2003 1:25:34 AM
I understand that it's supposed to contain text, usually. But as it takes an object can you be really cheeky and put a very complex object in there instead? Would any problems come from doing that? jax...more >>

Sending output to a console window in Windows App
Posted by paul_bowman_3000 NO[at]SPAM yahoo.co.uk at 12/18/2003 1:11:36 AM
Hi All Java has a facility where you can send output to a DOS window using System.out.println. This is useful while developing as you can see what it going in your code. Does .Net provide a similar facility? I notice that when a Windows app runs there is an output window that contains messa...more >>

MVP
Posted by Patrick De Ridder at 12/18/2003 12:06:54 AM
"Rob Teixeira [MVP]" <RobTeixeira@@msn.com> wrote in message news:e2UoQqawDHA.3116@TK2MSFTNGP11.phx.gbl... > <snip> Sorry to be so blatantly ignorant, but what does MVP mean? Patrick. ...more >>


DevelopmentNow Blog